@import url('define.css');

/* Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    line-height: 1.6; 
    padding-top: 80px; /* ADD THIS LINE: Prevents content from hiding under the fixed menu */
}

/* Navigation Base */
/* Navigation Base */
.top-menu { 
    background-color: rgba(11, 15, 25, 0.8); 
    backdrop-filter: blur(12px); 
    position: fixed; /* CHANGED from sticky */
    top: 0; 
    left: 0;         /* ADD THIS LINE */
    width: 100%;     /* ADD THIS LINE */
    z-index: 100; 
    border-bottom: 1px solid var(--border-color); 
}

.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-primary); font-size: 1.5rem; font-weight: 700; }

/* Right Side Actions (Always visible) */
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* Sidebar Links (Desktop) */
.menu-links { display: flex; align-items: center; gap: 2rem; }
.menu-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: var(--transition); }
.menu-links a:hover { color: var(--text-primary); }

/* Download Button & Pulse Animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 0, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(197, 160, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 0, 0); }
}

.btn-download { 
    background: var(--primary-gold); 
    color: #000 !important; 
    padding: 0.75rem 1.5rem; 
    border-radius: var(--radius-md); 
    font-weight: 600; 
    animation: pulseGlow 2s infinite; /* The animation */
    transition: transform 0.3s ease; 
    white-space: nowrap;
    text-decoration: none;
}

.btn-download:hover { 
    background: var(--primary-gold-hover); 
    transform: translateY(-2px); 
    animation-play-state: paused; /* Pauses animation when user hovers */
}

/* Mobile Sidebar Elements (Hidden on Desktop) */
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 101; }
.hamburger span { width: 25px; height: 3px; background-color: var(--text-primary); border-radius: 3px; }
.close-sidebar { display: none; }

/* FIX: Raised overlay z-index to 104 */
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.7); z-index: 104; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* Responsive View (Tablets & Mobile) */
@media (max-width: 900px) {
    .nav-container { padding: 1rem; }
    .hamburger { display: flex; }
    .menu-overlay { display: block; }
    .nav-actions { gap: 1rem; }
    .btn-download { padding: 0.6rem 1rem; font-size: 0.9rem; } 
    
    /* Fold into Sidebar */
    .menu-links { 
        position: fixed; 
        top: 0; 
        right: -300px; 
        width: 260px; 
        height: 100vh; 
        background: var(--surface-dark); 
        border-left: 1px solid var(--border-color);
        flex-direction: column; 
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem; 
        gap: 2rem;
        transition: right 0.3s ease-in-out; 
        
        /* FIX: Raised sidebar z-index to 105 so it covers the hamburger */
        z-index: 105; 
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .menu-links.active { right: 0; }
    
    /* Close Button (X) inside sidebar */
    .close-sidebar { 
        display: block; 
        position: absolute; 
        top: 20px; 
        right: 20px; 
        background: transparent; 
        border: none; 
        color: var(--text-primary); 
        font-size: 2.5rem; 
        cursor: pointer; 
        
        /* FIX: Keep close button highest so it remains clickable */
        z-index: 106; 
    }
}
/* Hero Section & Input */
.hero { text-align: center; padding: 4rem 1rem; max-width: 800px; margin: 0 auto; }
/*.hero h1 { font-size: 3rem; margin-bottom: 1rem; background: linear-gradient(to right, #FFF, var(--primary-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }*/
.hero p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2.5rem; }

/* --- Text Slide Animation --- */
@keyframes colorSlide {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Apply to the Hero H1 */
.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    /* Gradient: White -> Gold -> White -> Gold */
    background: linear-gradient(90deg, #FFFFFF 0%, var(--primary-gold) 25%, #FFFFFF 50%, var(--primary-gold) 75%, #FFFFFF 100%);
    background-size: 200% auto;
    color: transparent; 
    -webkit-background-clip: text; 
    background-clip: text; 
    animation: colorSlide 5s linear infinite;
}

/* Apply to a span inside the submit button */
.text-shine {
    /* Gradient: Black -> White -> Black (Contrasts well on the gold button) */
    background: linear-gradient(90deg, #000000 0%, #FFFFFF 50%, #000000 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: colorSlide 3s linear infinite;
    font-weight: 800;
}

/* Advanced Input Box */
.input-group { display: flex; background: var(--surface-dark); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: var(--transition); }
.input-group:focus-within { border-color: var(--primary-gold); box-shadow: var(--shadow-glow); }
.input-group input { flex: 1; background: transparent; border: none; padding: 1rem; color: var(--text-primary); font-size: 1rem; outline: none; }
.input-group button { background: var(--primary-gold); color: #000; border: none; padding: 0 1rem; border-radius: var(--radius-md); font-weight: 600; font-size: 2rem; cursor: pointer; transition: var(--transition); }
.input-group button:hover { background: var(--primary-gold-hover); }


/* --- Clipboard Input Overlay Styles --- */
.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 3rem 1rem 1rem; /* Extra right padding so text doesn't hide under the icon */
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

button.btn-paste {
    position: absolute;
    right: 10px;
    /*background: rgba(255, 255, 255, 0.1);*/
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

button.btn-paste:hover {
    color: var(--primary-gold);
    background: rgba(197, 160, 0, 0.1);
    transform: scale(1.05);
}


/* Results Area */
#result-container { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; display: none; }
.result-card { background: var(--surface-light); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--border-color); }
.result-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: var(--radius-md); }
.result-actions { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.btn-format { display: flex; justify-content: space-between; background: var(--surface-dark); padding: 1rem; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; border: 1px solid var(--border-color); transition: var(--transition); }
.btn-format:hover { border-color: var(--primary-gold); background: rgba(197, 160, 0, 0.05); }

/* Status Text */
#status-text { color: var(--text-secondary); margin-top: 1rem; font-size: 0.9rem; }
.error-text { color: var(--error-red) !important; }

/* Result Card Enhancements */
.result-data { flex: 1; display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.result-title { font-size: 1.1rem; line-height: 1.4; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.formats-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; overflow-y: auto; padding-right: 5px; }

/* Scrollbar for Formats List */
.formats-list::-webkit-scrollbar { width: 6px; }
.formats-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* Interactive Format Buttons */
.btn-format { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: var(--surface-dark); 
    padding: 1rem; 
    border-radius: var(--radius-md); 
    color: var(--text-primary); 
    border: 1px solid var(--border-color); 
    cursor: pointer;
    transition: var(--transition); 
    text-align: left;
    width: 100%;
}

.btn-format:hover:not(.disabled-state) { 
    border-color: var(--primary-gold); 
    background: rgba(197, 160, 0, 0.05); 
}

.format-info { display: flex; flex-direction: column; gap: 0.2rem; }
.format-details { font-size: 0.8rem; color: var(--text-secondary); }
.dl-text { color: var(--primary-gold); font-weight: 600; font-size: 0.9rem; }

/* Processing State */
.disabled-state { opacity: 0.5; pointer-events: none; }
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .result-card { flex-direction: column; align-items: center; text-align: center; }
    .result-thumb { width: 100%; height: auto; max-height: 200px; }
    .btn-format { flex-direction: column; gap: 0.8rem; text-align: center; }
}

/* --- SEO Sections Layout --- */
.seo-section { padding: 4rem 1rem; }
.bg-alt { background-color: var(--surface-dark); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.container { max-width: 1000px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: var(--primary-gold); }
.text-center { text-align: center; }

/* Grid Systems */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* Cards */
.step-card, .feature-card { background: var(--surface-light); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--border-color); transition: transform 0.3s ease; }
.step-card:hover, .feature-card:hover { transform: translateY(-5px); border-color: var(--primary-gold); }
.step-number { width: 40px; height: 40px; background: var(--primary-gold); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; margin-bottom: 1rem; }
.step-card h3, .feature-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.step-card p, .feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Floating Service Links Base */
.floating-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.float-btn { padding: 0.8rem 1.8rem; border-radius: 50px; text-decoration: none; font-weight: 600; color: #fff; transition: all 0.3s ease; animation: float 6s ease-in-out infinite; border: 1px solid rgba(255,255,255,0.1); }
.float-btn:hover { transform: scale(1.1); filter: brightness(1.2); animation-play-state: paused; z-index: 10; }

/* Specific Brand Colors & Staggered Animation Delays */
/* Tier 1 Brands */
.ig-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); animation-delay: 0s; }
.tt-btn { background: #000000; border-color: #00f2fe; box-shadow: -2px 2px 0px #ff0050, 2px -2px 0px #00f2fe; animation-delay: 1.2s; }
.yt-btn { background: #FF0000; animation-delay: 2.4s; }
.fb-btn { background: #1877F2; animation-delay: 0.6s; }
.tw-btn { background: #000000; border: 1px solid #333; animation-delay: 1.8s; } 

/* Tier 2 Brands */
.vi-btn { background: #1AB7EA; animation-delay: 0.3s; } /* Vimeo */
.twc-btn { background: #9146FF; animation-delay: 2.1s; } /* Twitch */
.scld-btn { background: #FF5500; animation-delay: 0.9s; } /* SoundCloud */
.th-btn { background: #000000; border: 1px solid #FFF; animation-delay: 1.5s; } /* Threads */
.rd-btn { background: #FF4500; animation-delay: 2.7s; } /* Reddit */
.pi-btn { background: #E60023; animation-delay: 0.2s; } /* Pinterest */
.li-btn { background: #0A66C2; animation-delay: 1.6s; } /* LinkedIn */
.sc-btn { background: #FFFC00; color: #000; border-color: transparent; animation-delay: 2.3s; } /* Snapchat */
.tg-btn { background: #26A5E4; animation-delay: 0.7s; } /* Telegram */
.ru-btn { background: #85C742; color: #000; animation-delay: 1.9s; } /* Rumble */
.dm-btn { background: #0066DC; animation-delay: 0.5s; } /* Dailymotion */
.tu-btn { background: #36465D; animation-delay: 1.1s; } /* Tumblr */
.vk-btn { background: #0077FF; animation-delay: 2.5s; } /* VK */
.im-btn { background: #1BB76E; animation-delay: 1.4s; } /* Imgur */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* App Promo Section */
.app-promo { padding: 5rem 1rem; background: linear-gradient(to bottom, var(--bg-main), rgba(197, 160, 0, 0.1)); border-top: 1px solid var(--border-color); }
.app-promo h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.app-promo p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem auto; font-size: 1.1rem; line-height: 1.8; }
.promo-btn { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* Footer */
.site-footer { background: var(--surface-dark); padding: 3rem 1rem 1rem 1rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; max-width: 1000px; margin: 0 auto 2rem auto; }
.footer-brand .logo-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-gold); }
.footer-brand .disclaimer { color: var(--text-secondary); font-size: 0.85rem; max-width: 300px; margin-top: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-gold); }
.copyright { text-align: center; color: var(--text-secondary); font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); max-width: 1000px; margin: 0 auto; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
    .footer-grid { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
    .app-promo h2 { font-size: 1.8rem; }
}

/* --- FAQ Accordion Styles --- */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary-gold); }

/* The clickable question */
.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

/* Custom dropdown icon */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

/* Change icon to minus when open */
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

/* Hide default webkit triangle */
.faq-item summary::-webkit-details-marker { display: none; }

/* The answer text */
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.7; border-top: 1px solid transparent; }
.faq-item[open] .faq-content { border-top-color: var(--border-color); padding-top: 1.5rem; }



/* SEO Sites Page Layout */
#full-sites-list {
    column-count: 3; /* Automatically creates 3 columns */
    column-gap: 2rem;
    list-style: none;
    padding: 0;
}

#full-sites-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

#full-sites-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

#full-sites-list li a:hover {
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    #full-sites-list { column-count: 2; }
}

@media (max-width: 480px) {
    #full-sites-list { column-count: 1; }
}