/* ============================================ */
/* YOU THUMBLY - Complete Stylesheet v2.0       */
/* YouTube-friendly design with animations     */
/* All pages, blog, and tools styled           */
/* ============================================ */

:root {
    --yt-red: #FF0000;
    --yt-red-dark: #CC0000;
    --yt-red-light: #FF4444;
    --yt-black: #0F0F0F;
    --yt-dark: #1A1A1A;
    --yt-gray: #272727;
    --yt-light-gray: #3F3F3F;
    --yt-white: #FFFFFF;
    --yt-off-white: #F1F1F1;
    --yt-blue: #3EA6FF;
    --yt-green: #00E676;
    
    --primary: #FF0000;
    --primary-dark: #CC0000;
    --primary-light: #FF4444;
    --surface: #0F0F0F;
    --surface-light: #1A1A1A;
    --surface-lighter: #272727;
    --text: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #717171;
    --border: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(255,0,0,0.3);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--yt-black);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============ BACKGROUND EFFECTS ============ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: floatUp 8s infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 15s ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 0, 0.15);
    top: -100px;
    left: -100px;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(62, 166, 255, 0.1);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 68, 68, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 20px) scale(0.9); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============ NAVIGATION ============ */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-text .red {
    color: var(--yt-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-lighter);
}

.nav-links a.active {
    color: var(--text);
    background: var(--primary);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ============ HERO SECTION ============ */
.hero {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 0, 0.15);
    color: var(--yt-red-light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #FF0000, #FF4444, #FF0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--yt-red);
    color: var(--yt-white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--yt-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
}

.btn-secondary {
    background: var(--surface-lighter);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--yt-light-gray);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--yt-red);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ HERO PREVIEW CARD ============ */
.hero-preview {
    animation: fadeInUp 0.8s ease-out 0.3s both;
    perspective: 1000px;
}

.preview-card {
    background: var(--surface-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-3deg) rotateX(3deg) translateY(-10px); }
}

.preview-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.preview-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: var(--yt-dark);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #FF5F57; }
.preview-dot.yellow { background: #FEBC2E; }
.preview-dot.green { background: #28C840; }

.preview-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-input {
    background: var(--yt-black);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.8rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-thumb {
    background: linear-gradient(135deg, #1a1a2e, #2d1b69, #1a3a4a);
    border-radius: var(--radius-md);
    height: 200px;
    position: relative;
    overflow: hidden;
}

.preview-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.preview-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.preview-btn {
    background: var(--surface-lighter);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    animation: btnGlow 2s ease-in-out infinite;
}

.preview-btn:nth-child(2) { animation-delay: 0.3s; }
.preview-btn:nth-child(3) { animation-delay: 0.6s; }

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(255,0,0,0); }
}

.preview-btn.featured {
    background: var(--yt-red);
    color: var(--text);
}

/* ============ SECTIONS ============ */
.features {
    padding: 5rem 0;
    position: relative;
}

.how-it-works {
    padding: 5rem 0;
    background: var(--surface-light);
    position: relative;
}

.faq {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    background: rgba(255, 0, 0, 0.1);
    color: var(--yt-red-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yt-red), transparent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.6s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: 0.8s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: 1s; }

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ HOW IT WORKS STEPS ============ */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.step-card {
    background: var(--yt-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--yt-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--yt-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    margin: 0 auto 1.2rem;
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); }
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-connector {
    font-size: 2rem;
    color: var(--yt-red);
    font-weight: 900;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 0, 0, 0.3);
}

.faq-question {
    width: 100%;
    background: var(--surface-light);
    border: none;
    color: var(--text);
    padding: 1.3rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
}

.faq-question:hover {
    background: var(--surface-lighter);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--yt-black);
}

.faq-answer-inner {
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-answer-inner {
    padding: 1.2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ TOOL SECTION ============ */
.tool-section {
    padding: 4rem 0 5rem;
}

.tool-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 250px;
    background: var(--yt-black);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    padding: 1rem 1.5rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.url-input:focus {
    border-color: var(--yt-red);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.15);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.fetch-btn {
    background: var(--yt-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fetch-btn:hover {
    background: var(--yt-red-dark);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.fetch-btn:active {
    transform: scale(0.97);
}

.error-message {
    color: #FF4444;
    font-size: 0.9rem;
    min-height: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.preview-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbnail-display {
    background: var(--yt-black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.thumbnail-display img {
    width: 100%;
    height: auto;
    display: block;
}

.resolution-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.res-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.2rem;
    background: var(--surface-lighter);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.res-btn:hover {
    border-color: var(--yt-red);
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

.res-btn.featured {
    border-color: var(--yt-red);
    background: rgba(255, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.res-btn.featured::after {
    content: 'POPULAR';
    position: absolute;
    top: 8px;
    right: -25px;
    background: var(--yt-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 25px;
    transform: rotate(45deg);
}

.res-label {
    font-weight: 700;
    font-size: 1rem;
}

.res-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--yt-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ PAGE CONTENT (About, Contact, Privacy) ============ */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2.5rem;
}

.content-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.content-card h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
    color: var(--yt-red-light);
    scroll-margin-top: 100px;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p,
.content-card li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-card ul,
.content-card ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-card a {
    color: var(--yt-blue);
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.note-box {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    color: #FFC800;
    font-size: 0.9rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-method {
    background: var(--yt-black);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--yt-red);
    transform: translateY(-3px);
}

.contact-method h3 {
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: var(--yt-blue);
    text-decoration: none;
    font-weight: 500;
}

/* ============ TOOLS GRID ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
}

.tool-card-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    height: 100%;
}

.tool-card-link:hover .tool-card-item {
    transform: translateY(-5px);
    border-color: var(--yt-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.tool-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 0, 0, 0.15);
    color: var(--yt-red-light);
}

.tool-card-badge.new {
    background: rgba(0, 206, 201, 0.15);
    color: #00cec9;
}

.tool-card-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-card-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tool-card-cta {
    color: var(--yt-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.tool-card-item.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

/* ============ BLOG STYLES ============ */
.blog-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.blog-cat {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--surface-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-cat:hover,
.blog-cat.active {
    background: var(--yt-red);
    color: var(--text);
    border-color: var(--yt-red);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-category-tag {
    background: rgba(255, 0, 0, 0.15);
    color: var(--yt-red-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-read-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--yt-red);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--yt-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--yt-red-light);
}

/* Single Blog Post */
.blog-post {
    padding: 4rem 0;
}

.blog-post-header {
    margin-bottom: 2.5rem;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-post-featured {
    width: 100%;
    border-radius: var(--radius-xl);
    max-height: 450px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content code {
    background: var(--yt-black);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--yt-red-light);
}

.blog-post-content a {
    color: var(--yt-red);
    text-decoration: none;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-share {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--surface-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.blog-share h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter { background: #1DA1F2; border-color: #1DA1F2; color: white; }
.share-btn.facebook { background: #1877F2; border-color: #1877F2; color: white; }
.share-btn.linkedin { background: #0A66C2; border-color: #0A66C2; color: white; }

.related-posts {
    max-width: 800px;
    margin: 3rem auto 0;
}

.related-posts h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.related-posts .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--surface-light);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--yt-red);
    color: var(--text);
    border-color: var(--yt-red);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-posts a {
    color: var(--yt-red);
}

/* ============ FORM STYLES ============ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--yt-black);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--yt-red);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

.form-group textarea {
    min-height: 80px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--yt-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--yt-red);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-preview {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--yt-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .resolution-options {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title,
    .page-content h1 {
        font-size: 2rem;
    }
    
    .blog-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
    
    .tool-card,
    .content-card {
        padding: 1.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .fetch-btn {
        justify-content: center;
    }
}