/* TubeMate Clone - main stylesheet */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#111827;background:#fff;line-height:1.6;transition:background-color .25s ease,color .25s ease}
img{max-width:100%;height:auto;display:block}
a{color:var(--tt-primary);text-decoration:none}
a:hover{opacity:.85}
.tt-container{max-width:1140px;margin:0 auto;padding:0 20px}

/* Header */
.tt-header{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50}
.tt-header-inner{display:flex;align-items:center;gap:20px;padding:14px 20px;position:relative}
.tt-branding{flex:0 0 auto}
.custom-logo{max-height:50px;width:auto}
.tt-site-title{font-weight:700;font-size:1.25rem;color:#111827}
.tt-nav{flex:1;display:flex;justify-content:center}
.tt-menu{list-style:none;display:flex;gap:24px;margin:0;padding:0}
.tt-menu a{color:#111827;font-weight:500}
.tt-menu .current-menu-item>a{color:var(--tt-primary)}
.tt-header-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.tt-theme-toggle,.tt-mobile-toggle{background:transparent;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:1rem;color:inherit;line-height:1}
.tt-theme-toggle{width:40px;height:36px;display:inline-flex;align-items:center;justify-content:center}
.tt-mobile-toggle{display:none}
.tt-toggle-dark{display:none}
body.tt-dark .tt-toggle-light{display:none}
body.tt-dark .tt-toggle-dark{display:inline}

/* Hero */
.tt-hero{padding:34px 0 24px;background:linear-gradient(180deg,#f9fafb,#fff)}
.tt-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:54px;align-items:center;justify-content:center}
.tt-hero-text{min-width:0}
.tt-hero-title{font-size:2.45rem;line-height:1.15;margin:0 0 10px}
.tt-hero-subtitle{font-size:1.12rem;color:#4b5563;margin:0 0 18px}
.tt-hero-badges{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:16px;align-items:center}
.tt-hero-badge{display:inline-flex;align-items:center;gap:7px;font-size:.95rem;font-weight:600;color:#374151;line-height:1.2}
.tt-hero-badge-icon{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,59,59,.1);color:var(--tt-primary);font-size:1rem;line-height:1}
.tt-hero-badge-icon img{width:18px;height:18px;object-fit:contain}
.tt-hero-image{display:flex;justify-content:center;align-items:center;min-width:0}
.tt-hero-image img{
	width:100%;
	max-width:310px;
	max-height:510px;
	height:auto;
	object-fit:contain;
	border-radius:26px;
	box-shadow:0 24px 48px -18px rgba(0,0,0,.4);
	border:6px solid var(--tt-hero-image-border, #111827);
	background:#000;
}

/* Buttons */
.tt-btn{display:inline-block;padding:12px 24px;border-radius:10px;font-weight:600;background:var(--tt-primary);color:var(--tt-btn-text);transition:transform .15s ease}
.tt-btn:hover{opacity:1;transform:translateY(-1px);color:var(--tt-btn-text)}
.tt-btn-large{padding:18px 36px;font-size:1.15rem}

/* Sections — generous spacing between blocks (≈ 3 blank lines) */
.tt-section{padding:20px 0}
.tt-section + .tt-section{padding-top:2rem}
.tt-hero + .tt-section{margin-top:4.5rem}
.tt-section + .tt-footer{margin-top:4.5rem}
.tt-section-title{text-align:center;font-size:2rem;margin:0 0 18px}
.tt-rich h1,.tt-rich h2,.tt-rich h3{margin:0 0 .55em}
.tt-rich p{margin:0 0 .85em}
.tt-rich > :last-child{margin-bottom:0}

/* Features */
.tt-features{background:#fafafa}
.tt-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.tt-feature{background:var(--tt-feature-bg);color:var(--tt-feature-text);padding:24px;border-radius:14px;text-align:center;border:1px solid rgba(0,0,0,.05)}
.tt-feature-link{color:inherit;display:block}
.tt-feature-icon{font-size:2.2rem;margin-bottom:10px;display:flex;justify-content:center}
.tt-feature-icon img{width:48px;height:48px}
.tt-feature-title{margin:6px 0 8px;font-size:1.15rem}
.tt-feature-text{margin:0;color:inherit;opacity:.85}

/* Info Boxes */
.tt-infoboxes-grid{display:grid;grid-template-columns:1fr;gap:24px;max-width:820px;margin:0 auto}
.tt-infobox{background:var(--tt-infobox-bg);color:var(--tt-infobox-text);padding:28px;border-radius:14px;text-align:center}
.tt-infobox,.tt-infobox *{text-align:center}
.tt-infobox-image{display:block;width:100%;max-width:310px;max-height:510px;height:auto;object-fit:contain;margin:0 auto 14px;border-radius:26px;box-shadow:0 24px 48px -18px rgba(0,0,0,.4);background:#000}
.tt-infobox-title{margin:0 0 10px;font-size:1.25rem;text-align:center}
.tt-infobox p,.tt-infobox-content,.tt-infobox ul,.tt-infobox ol,.tt-infobox li{text-align:center;list-style-position:inside}

/* FAQs */
.tt-faqs{background:var(--tt-faq-bg);color:var(--tt-faq-text)}
.tt-faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.tt-faq-item{border:1px solid color-mix(in srgb,var(--tt-faq-text) 12%,transparent);border-radius:10px;padding:14px 18px;background:var(--tt-faq-item-bg);color:var(--tt-faq-text)}
.tt-faq-item summary{cursor:pointer;font-weight:600;font-size:1.05rem;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tt-faq-item summary::-webkit-details-marker{display:none}
.tt-faq-item summary::after{content:"+";font-size:1.6rem;line-height:1;font-weight:400;flex:0 0 auto;width:24px;text-align:center;transition:transform .2s ease}
.tt-faq-item[open] summary::after{content:"−"}
.tt-faq-item[open] summary{margin-bottom:10px}
.tt-faq-answer{color:inherit;opacity:.9}

/* Footer */
.tt-footer{background:var(--tt-footer-bg);color:var(--tt-footer-text);padding:32px 0;margin-top:24px}
.tt-footer a{color:var(--tt-footer-text);opacity:.9}
.tt-footer-menu{list-style:none;display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin:0 0 18px;padding:0}
.tt-footer-text{text-align:center;opacity:.85}

/* Mobile */
@media (max-width: 820px){
	.tt-mobile-toggle{display:inline-block}
	.tt-header-inner{gap:12px}
	.tt-header-actions{margin-left:auto}
	.tt-nav{position:absolute;top:64px;left:0;right:0;background:#fff;flex-direction:column;display:none;border-bottom:1px solid #e5e7eb;padding:14px 20px}
	.tt-nav.is-open{display:flex}
	.tt-hero{padding:26px 0 18px}
	.tt-hero-inner{grid-template-columns:1fr;gap:0;text-align:center;justify-items:center}
	.tt-hero-text{order:1;width:100%;display:flex;flex-direction:column;align-items:center}
	.tt-hero-image{order:2;margin-top:34px;width:100%;justify-content:center}
	.tt-hero-image img{width:80%;max-width:280px;max-height:460px;border-radius:22px}
	.tt-hero-title{font-size:1.9rem}
	.tt-hero-subtitle{margin-bottom:16px}
	.tt-hero-badges{justify-content:center;margin-top:14px;gap:9px 12px}
	.tt-section{padding:18px 0}
}

/* Dark mode — comprehensive */
body.tt-dark{background:#0b0f17;color:#e5e7eb}
body.tt-dark .tt-header{background:#0f172a;border-bottom-color:#1f2937}
body.tt-dark .tt-site-title,
body.tt-dark .tt-menu a,
body.tt-dark .tt-hero-title,
body.tt-dark .tt-section-title,
body.tt-dark .tt-rich,
body.tt-dark .tt-rich h1,
body.tt-dark .tt-rich h2,
body.tt-dark .tt-rich h3,
body.tt-dark .tt-rich p{color:#e5e7eb}
body.tt-dark .tt-hero{background:linear-gradient(180deg,#0f172a,#0b0f17)}
body.tt-dark .tt-hero-subtitle{color:#9ca3af}
body.tt-dark .tt-hero-badge{color:#d1d5db}
body.tt-dark .tt-hero-badge-icon{background:rgba(255,255,255,.08)}
body.tt-dark .tt-features{background:#0f172a}
body.tt-dark .tt-feature{background:#111827;color:#e5e7eb;border-color:rgba(255,255,255,.06)}
body.tt-dark .tt-infobox{background:#111827;color:#e5e7eb}
body.tt-dark .tt-faqs{background:var(--tt-faq-bg);color:var(--tt-faq-text)}
body.tt-dark .tt-faq-item{background:var(--tt-faq-item-bg);border-color:color-mix(in srgb,var(--tt-faq-text) 16%,transparent);color:var(--tt-faq-text)}
body.tt-dark .tt-nav{background:#0f172a;border-bottom-color:#1f2937}
body.tt-dark .tt-theme-toggle,
body.tt-dark .tt-mobile-toggle{border-color:#334155;color:#e5e7eb}
/* hero image border color is controlled by --tt-hero-image-border (Customizer → Colors) */

/* Download page layout — text above, button centered, text below */
.tt-download-inner{max-width:760px;margin:0 auto;text-align:center}
.tt-download-header{margin-bottom:2.25rem}
.tt-download-title{font-size:2.4rem;line-height:1.15;margin:0}
.tt-download-text-above{margin-bottom:2.25rem;font-size:1.05rem;line-height:1.65}
.tt-download-button-wrap{margin:2.25rem 0;display:flex;justify-content:center}
.tt-download-button{display:inline-flex;align-items:center;gap:.6rem;font-size:1.15rem;padding:1rem 2.25rem;border-radius:999px;box-shadow:0 10px 24px rgba(0,0,0,.12);transition:transform .15s ease, box-shadow .15s ease}
.tt-download-button:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.16)}
.tt-download-icon{font-size:1.25rem;line-height:1}
.tt-download-text-below{margin-top:2.25rem;font-size:1rem;line-height:1.65;color:inherit;opacity:.92}
.tt-download-page-content{margin-top:3rem;text-align:left}
body.tt-dark .tt-download-button{box-shadow:0 10px 24px rgba(0,0,0,.45)}

/* Table of Contents */
.tt-toc-section{padding:0}
.tt-hero + .tt-toc-section{margin-top:2rem}
.tt-toc-section + .tt-section{padding-top:2rem;margin-top:0}
.tt-toc{
	background:var(--tt-toc-bg);
	border:2px solid var(--tt-toc-border);
	border-radius:12px;
	padding:18px 22px;
	max-width:820px;
	margin:0 auto;
	color:var(--tt-toc-text);
}
.tt-toc-summary{
	cursor:pointer;list-style:none;
	display:flex;align-items:center;justify-content:space-between;gap:14px;
	font-weight:700;font-size:1.15rem;color:var(--tt-toc-text);
}
.tt-toc-summary::-webkit-details-marker{display:none}
.tt-toc-icon{
	width:26px;height:26px;flex:0 0 auto;
	border:2px solid var(--tt-toc-border);border-radius:6px;
	position:relative;
}
.tt-toc-icon::before,.tt-toc-icon::after{
	content:"";position:absolute;background:var(--tt-toc-text);
	left:50%;top:50%;transform:translate(-50%,-50%);
}
.tt-toc-icon::before{width:12px;height:2px}
.tt-toc-icon::after{width:2px;height:12px;transition:transform .2s ease}
.tt-toc[open] .tt-toc-icon::after{transform:translate(-50%,-50%) scaleY(0)}
.tt-toc-list{list-style:none;margin:14px 0 0;padding:0;color:var(--tt-toc-text)}
.tt-toc-list li{margin:6px 0}
.tt-toc-list a{color:var(--tt-toc-text);text-decoration:none;border-bottom:1px solid transparent}
.tt-toc-list a:hover{border-bottom-color:var(--tt-toc-text);opacity:1}
.tt-toc-h2{font-weight:600}
.tt-toc-sub{list-style:none;margin:6px 0 8px 18px;padding:0;border-left:2px solid var(--tt-toc-border);padding-left:12px}
.tt-toc-h3{font-weight:400;font-size:.97rem}
body.tt-dark .tt-toc{background:var(--tt-toc-bg);border-color:var(--tt-toc-border);color:var(--tt-toc-text)}
