/**
 * Theme Variant – Different look for second domain (same backend, no functionality changes).
 * Load this file AFTER styles.css on your new domain so Google sees a distinct frontend.
 *
 * Usage: <link rel="stylesheet" href="styles.css"><link rel="stylesheet" href="theme-variant.css">
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------------------
   Override CSS variables – different color scheme, typography, radii
   --------------------------------------------------------------------------- */
:root {
    /* New color palette – teal/slate (no blue) */
    --primary-blue: #0d9488;
    --primary-green: #0d9488;
    --primary-red: #dc2626;
    --dark-blue: #0f766e;
    --light-blue: #ccfbf1;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;

    /* Typography – different font family and sizes */
    --font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1.05rem;
    --font-size-lg: 1.15rem;
    --font-size-xl: 1.35rem;
    --font-size-2xl: 1.6rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.1rem;

    /* Slightly larger radius for a softer look */
    --radius-sm: 0.5rem;
    --radius-md: 0.65rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* Softer shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 12px 20px -4px rgb(0 0 0 / 0.08), 0 4px 8px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 24px 32px -6px rgb(0 0 0 / 0.08), 0 8px 12px -6px rgb(0 0 0 / 0.04);
}

/* ---------------------------------------------------------------------------
   Body – ensure variant font applies everywhere
   --------------------------------------------------------------------------- */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------------
   Header – different background and border
   --------------------------------------------------------------------------- */
.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--dark-blue);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--primary-blue);
}

.logo-icon {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.nav-links a {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* ---------------------------------------------------------------------------
   Hero – different gradient and title style
   --------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(145deg, #f0fdfa 0%, #e0f2fe 50%, #f8fafc 100%);
    padding: var(--spacing-20) 0;
}

.hero h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    font-weight: 450;
}

/* ---------------------------------------------------------------------------
   Input card & search box – clearly different shape and style
   --------------------------------------------------------------------------- */
.input-card,
.options-card,
.results-card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-6);
}

.input-card:focus,
.input-card:active,
.input-card:hover {
    border-color: var(--gray-300) !important;
    box-shadow: var(--shadow-md) !important;
}

.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

/* Drop zone – different border and hover color */
.drop-zone {
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    background-color: var(--gray-50);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary-blue);
    background-color: #f0fdfa;
}

.drop-zone p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 500;
}

.drop-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* Search / URL input – pill-style input and different button */
.input-group {
    display: flex;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.input-group input {
    flex: 1;
    padding: var(--spacing-4) var(--spacing-6);
    border: 2px solid var(--gray-300);
    border-radius: 999px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

/* Extract button – pill shape, teal, different style */
.extract-btn {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: 999px;
    font-weight: 700;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.extract-btn:hover {
    background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.extract-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

/* Type buttons (Videos / Shorts / Playlists) */
.type-btn {
    padding: var(--spacing-2) var(--spacing-4);
    border: 2px solid var(--gray-300);
    background-color: var(--white);
    border-radius: 999px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
}

.type-btn.active,
.type-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* ---------------------------------------------------------------------------
   Results section – selectors and download button
   --------------------------------------------------------------------------- */
.size-selector,
.format-selector {
    padding: var(--spacing-2) var(--spacing-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
}

.size-selector:focus,
.format-selector:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.download-all-btn {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-3) var(--spacing-5);
    border-radius: 999px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.download-all-btn:hover {
    background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.results-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* Thumbnail cards and resolution tags */
.thumbnail-card {
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.resolution-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.resolution-tag.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.download-resolution-btn {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-family);
}

.download-resolution-btn:hover {
    background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
}

/* Loading spinner uses new primary */
.thumbnail-loading-spinner {
    border-top-color: var(--primary-blue);
}

.thumbnail-loading-pulse {
    background: radial-gradient(circle at 30% 30%, rgba(13, 148, 136, 0.45), transparent 60%);
}

/* ---------------------------------------------------------------------------
   Feature cards & about section
   --------------------------------------------------------------------------- */
.feature-card {
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    font-family: var(--font-family);
}

.feature-card h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------------------
   Footer and misc
   --------------------------------------------------------------------------- */
.footer {
    border-top: 2px solid var(--gray-200);
    font-family: var(--font-family);
}

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: var(--gray-900);
}

::-moz-selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: var(--gray-900);
}

/* Language selector */
.language-selector select {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 500;
}

/* Theme toggle – match new palette */
.theme-switch-label {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

/* Dark mode overrides when variant is used */
[data-theme="dark"] .hero {
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

[data-theme="dark"] .drop-zone:hover {
    border-color: var(--primary-blue);
    background-color: var(--gray-100);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .about-link,
[data-theme="dark"] .domain-link {
    color: var(--primary-blue);
}

[data-theme="dark"] .about-section h3 {
    color: var(--primary-blue);
}

/* Profile & Banner pages – same primary buttons */
.btn-success,
#downloadAllProfiles,
.download-banner-btn,
.download-profile-btn {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%) !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-family);
}

.btn-success:hover,
#downloadAllProfiles:hover,
.download-banner-btn:hover,
.download-profile-btn:hover {
    background: linear-gradient(180deg, #0f766e 0%, #115e59 100%) !important;
}

/* Security warning – teal variant */
.security-warning {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    border: 2px solid #0d9488;
}

.warning-text h4,
.warning-text p,
.warning-text ul,
.warning-text li {
    color: #134e4a;
}

.close-warning {
    background: #0d9488;
}

.close-warning:hover {
    background: #0f766e;
}
