/* 
 * DESIGN SYSTEM: PREMIUM DARK
 * Colors: Deep Space, Electric Violet, Hot Pink
 */
:root {
    --bg-deep: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);

    --primary: #8b5cf6;
    /* Violet */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #db2777;
    /* Pink */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --font-main: 'Outfit', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    /* Parallax-like fix */
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 
 * UTILITIES & ANIMATIONS 
 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* 
 * NAV 
 */
nav {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo i {
    color: var(--secondary);
    font-size: 1.5rem;
    background: none;
    -webkit-text-fill-color: initial;
    transform: none;
    filter: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* 
 * HERO 
 */
.hero {
    padding-top: 180px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

/* Ambient Glow Behind Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Platform Pills */
.platforms {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: default;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pill.youtube {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    border-color: transparent;
}

.pill.shorts {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
    border-color: transparent;
}

.pill.livestream {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.pill:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Input Header above search */
.input-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.input-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.input-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Search Input Area */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    /* Full Pill Shape */
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.search-wrapper:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

.search-wrapper input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 140px 16px 50px;
    /* Space for icon and button */
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: white;
    outline: none;
}

.search-wrapper input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.extract-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 0 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extract-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.extract-btn:active {
    transform: scale(0.95);
}

.error-message {
    margin-top: 1rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
 * RESULTS 
 */
#results-area {
    display: none;
    padding-bottom: 4rem;
}

.results-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.thumb-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.thumb-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.img-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.thumb-card:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Overlay Button on Hover */
.overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: auto;
    cursor: pointer;
}

.thumb-card:hover .overlay-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.badge.hd {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    color: white;
}

.badge.sd {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.dl-btn:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

/* 
 * CONTENT SECTIONS 
 */
.content-section {
    margin-top: 4rem;
    padding: 4rem 3rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Include standard property as well */
}

.content-section p,
.content-section li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.content-section h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

/* FAQs */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Helpers */
.hidden {
    display: none !important;
}

/* 
 * ADS / SPONSORS 
 */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    width: 100%;
    overflow: hidden;
}

.ad-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.ad-slot::after {
    content: 'Advertisement';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    opacity: 0.5;
}

/* Responsive Sizes */
.ad-leaderboard {
    width: 728px;
    height: 90px;
}

.ad-rectangle {
    width: 336px;
    height: 280px;
}

@media (max-width: 768px) {
    .ad-leaderboard {
        width: 320px;
        height: 100px;
        /* Large Mobile Banner */
    }

    .ad-rectangle {
        width: 300px;
        height: 250px;
    }
}

/* Features Section */
.features-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    color: var(--text-muted);
}

.intro-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.feature-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--secondary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.check-list li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

/* Key Features Box Design */
.features-box {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-box h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 800;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.key-feature-card {
    background: transparent;
    border: none;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.key-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.key-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    opacity: 0.9;
}

.key-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 700;
}

/* Contact Form Styles */
.contact-form-container {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

textarea.contact-input {
    min-height: 150px;
    resize: vertical;
}
/* Thumbnail Card Actions */
.thumb-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Update Download Button to fit in flex */
.dl-btn {
    flex: 2; /* Download button takes more space */
    width: auto; /* Override 100% width if needed, but flex handles it */
}

/* Preview Button */
.preview-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; /* In case anchor */
    font-size: 0.9rem;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 
 * TOAST NOTIFICATIONS 
 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: rgba(16, 185, 129, 0.2); /* Emerald tint */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
    color: #10b981;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}
