/*
Theme Name: TikTok Downloader Theme
Theme URI: https://tiktokdownloader.local
Author: Antigravity Team
Description: Modern Two-Tone high-performance theme (Deep Navy Hero & Crisp Off-White Body) optimized for TikTok downloading tools, legal compliance, and 100 PageSpeed scores.
Version: 2.1.0
Text Domain: tiktok-downloader-theme
*/

/* Reset & Global */
html, body {
	margin: 0;
	padding: 0;
	background-color: #f8fafc;
	color: #334155;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: #0284c7;
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover {
	color: #fe2c55;
}

.site-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	padding-bottom: 60px;
}

/* Header (Tone 1 - Deep Navy) */
.site-header {
	background: #0f172a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 14px 0;
}

.header-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 21px;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.5px;
}

.site-logo .logo-icon {
	font-size: 24px;
}

.site-logo .logo-highlight {
	background: linear-gradient(135deg, #00f2fe, #fe2c55);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.header-nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nav-link {
	color: #94a3b8;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
	.header-nav .nav-link {
		display: none;
	}
}

/* Language Selector */
.lang-selector-wrap {
	position: relative;
}

.lang-select-btn {
	background: #1e293b;
	border: 1px solid #334155;
	color: #ffffff;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.lang-select-btn:hover {
	background: #334155;
}

.lang-dropdown {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.4);
	min-width: 200px;
	max-height: 380px;
	overflow-y: auto;
	z-index: 2000;
	padding: 6px;
}

.lang-dropdown.open {
	display: block;
}

.lang-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #94a3b8;
	font-size: 13px;
	border-radius: 6px;
}

.lang-option:hover, .lang-option.active {
	background: rgba(0, 242, 254, 0.12);
	color: #00f2fe;
}

/* Hero Section (Tone 1 - Deep Navy Container) */
.tt-hero-banner-wrapper {
	background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
	padding: 40px 20px 70px;
	color: #ffffff;
	text-align: center;
	position: relative;
	border-bottom: 1px solid #334155;
}

.tt-hero-container {
	max-width: 860px;
	margin: 0 auto;
}

/* Legal Pages & Static Page Content (Tone 2 - Crisp Modern White) */
.legal-page-container {
	max-width: 900px;
	margin: 40px auto 60px;
	padding: 0 20px;
}

.legal-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
	padding: 40px 48px;
	line-height: 1.75;
}

@media (max-width: 640px) {
	.legal-card {
		padding: 24px 20px;
	}
}

.legal-card h1 {
	font-size: clamp(26px, 4vw, 36px);
	color: #0f172a;
	margin: 0 0 16px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.legal-card h2 {
	font-size: 20px;
	color: #0f172a;
	margin: 28px 0 12px;
	font-weight: 700;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 8px;
}

.legal-card h3 {
	font-size: 16px;
	color: #0f172a;
	margin: 18px 0 8px;
	font-weight: 600;
}

.legal-card p {
	margin-bottom: 16px;
	font-size: 15px;
	color: #475569;
}

.legal-card p.lead {
	font-size: 16px;
	color: #334155;
	font-weight: 500;
	border-left: 4px solid #00f2fe;
	padding-left: 14px;
	margin-bottom: 24px;
}

.legal-card ul, .legal-card ol {
	padding-left: 24px;
	margin-bottom: 20px;
	color: #475569;
	font-size: 14.5px;
}

.legal-card li {
	margin-bottom: 8px;
}

/* About Us Grid */
.tt-about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.tt-about-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.tt-about-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #0f172a;
}

.tt-about-card p {
	margin: 0;
	font-size: 13.5px;
	color: #64748b;
}

/* Contact Us Grid & Form */
.tt-contact-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 30px;
	margin-top: 24px;
}

@media (max-width: 768px) {
	.tt-contact-grid {
		grid-template-columns: 1fr;
	}
}

.tt-contact-form-card, .tt-contact-info-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	box-sizing: border-box;
	outline: none;
	transition: all 0.2s;
}

.form-control:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.contact-info-block {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 12px;
	font-size: 13.5px;
}

.contact-info-block strong {
	color: #0f172a;
}

.contact-info-block span {
	color: #0284c7;
	font-weight: 600;
}

.contact-sla-badge {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	margin-top: 16px;
}

/* Footer (Deep Navy Tone) */
.site-footer {
	background: #0f172a;
	border-top: 1px solid #1e293b;
	padding: 50px 0 30px;
	font-size: 13px;
	color: #94a3b8;
}

.footer-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 30px;
	margin-bottom: 40px;
}

@media (max-width: 768px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.footer-col h4 {
	color: #ffffff;
	font-size: 15px;
	margin: 0 0 16px;
	font-weight: 700;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	color: #94a3b8;
}

.footer-links a:hover {
	color: #00f2fe;
}

.footer-languages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
	gap: 6px;
	margin-top: 8px;
}

.footer-lang-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid #1e293b;
	border-radius: 6px;
	font-size: 11.5px;
	color: #94a3b8;
}

.footer-lang-item:hover, .footer-lang-item.active {
	color: #00f2fe;
	border-color: #00f2fe;
	background: rgba(0, 242, 254, 0.08);
}

.footer-bottom {
	border-top: 1px solid #1e293b;
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.footer-legal-bar {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-legal-bar a {
	color: #cbd5e1;
	font-size: 12.5px;
	font-weight: 500;
}

.footer-legal-bar a:hover {
	color: #00f2fe;
}

.footer-disclaimer {
	font-size: 11.5px;
	color: #64748b;
	max-width: 850px;
	line-height: 1.6;
}
