/* ============================================
   JUST DEBATE ME - PREMIUM DESIGN SYSTEM
   "Built Different. Argue Better."
   ============================================ */

/* Premium Font Stack */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&f[]=clash-display@600,700&display=swap');

:root {
    /* The Palette of Champions */
    --bg-void: #000000;
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Text - Crystal Clear */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-ghost: rgba(255, 255, 255, 0.2);
    
    /* Accent - Electric */
    --accent-primary: #6366f1;
    --accent-primary-glow: rgba(99, 102, 241, 0.5);
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-success-glow: rgba(16, 185, 129, 0.5);
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-danger-glow: rgba(239, 68, 68, 0.5);
    
    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-fire: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-prominent: rgba(255, 255, 255, 0.15);
    
    /* Shadows - The Drama */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glow-success: 0 0 40px rgba(16, 185, 129, 0.3);
    --shadow-glow-danger: 0 0 40px rgba(239, 68, 68, 0.3);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Motion - Silky Smooth */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 800ms;
    
    /* Radius - Soft Power */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Fonts */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   FOUNDATION
   ============================================ */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* Premium Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(168, 85, 247, 0.1), transparent),
        radial-gradient(ellipse 40% 30% at 0% 100%, rgba(236, 72, 153, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Noise Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

.bg-dark {
    background: var(--bg-primary) !important;
}

/* ============================================
   TYPOGRAPHY - Words That Command
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION - The Command Center
   ============================================ */

.navbar {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 0.75rem 1.5rem;
    transition: all var(--duration-normal) var(--ease-out-expo);
    z-index: 1050;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.navbar-dark .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

.navbar-dark .navbar-nav .nav-link:hover::before {
    opacity: 1;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--gradient-subtle);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 1px;
}

/* ============================================
   BUTTONS - Weapons of Choice
   ============================================ */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
}

/* Shine effect on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--duration-slow) var(--ease-out-expo);
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 20px var(--accent-success-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-success-glow);
}

.btn-success:active {
    transform: translateY(0);
}

.btn-primary, .btn-info {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.btn-primary:hover, .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-primary-glow);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
    box-shadow: 0 4px 20px var(--accent-danger-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-danger-glow);
}

.btn-secondary, .btn-light {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover, .btn-light:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-prominent);
    color: var(--text-primary);
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--border-prominent);
    color: var(--text-primary);
}

.btn-outline-success {
    background: transparent;
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
}

.btn-outline-success:hover {
    background: var(--accent-success);
    color: white;
    box-shadow: 0 4px 20px var(--accent-success-glow);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* Disabled state */
.btn.disabled, .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   FORMS - Input Perfection
   ============================================ */

.form-control {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.form-control:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px var(--accent-primary-glow),
        var(--shadow-inset);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-ghost);
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* Custom Select */
.custom-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all var(--duration-fast);
}

.custom-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

/* Labels */
label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ============================================
   CARDS - Premium Containers
   ============================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 1.75rem;
    position: relative;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
}

.card-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 1.75rem;
}

/* ============================================
   MODALS - Dramatic Reveals
   ============================================ */

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.75rem;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.75rem;
    color: var(--text-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1.75rem;
    background: var(--bg-tertiary);
}

.close {
    color: var(--text-muted);
    opacity: 1;
    text-shadow: none;
    transition: all var(--duration-fast);
}

.close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ============================================
   AUTOPLAY TOGGLE - Clean & Modern
   ============================================ */

.autoplay-toggle {
    display: flex;
    align-items: center;
}

.autoplay-toggle input[type="checkbox"] {
    display: none;
}

.autoplay-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.autoplay-toggle label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-default);
}

.autoplay-toggle .toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all var(--duration-fast) var(--ease-out-expo);
    flex-shrink: 0;
}

.autoplay-toggle input:checked + label .toggle-track {
    background: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success-glow);
}

.autoplay-toggle .toggle-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-out-expo);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.autoplay-toggle input:checked + label .toggle-indicator {
    transform: translateX(16px);
}

.autoplay-toggle .toggle-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
    white-space: nowrap;
}

.autoplay-toggle input:checked + label .toggle-label {
    color: var(--text-primary);
}

/* ============================================
   DEBATE OPTIONS DROPDOWN - The Menu
   ============================================ */

#debateOptionsDropdown {
    position: relative;
    z-index: 1051;
}

.debate-menu-btn {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: var(--radius-md);
    color: var(--text-secondary) !important;
    transition: all var(--duration-fast) var(--ease-out-expo);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
}

.debate-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary) !important;
}

.debate-menu-btn::after {
    display: none !important; /* Hide default dropdown caret */
}

.debate-dropdown {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 180px;
    margin-top: 8px !important;
    z-index: 9999 !important;
    position: absolute;
}

.debate-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--duration-fast) ease;
}

.debate-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.debate-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
}

.debate-dropdown .dropdown-item:hover i {
    color: var(--accent-primary);
}

.debate-dropdown .dropdown-item-danger {
    color: var(--accent-danger);
}

.debate-dropdown .dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.debate-dropdown .dropdown-item-danger i {
    color: var(--accent-danger);
}

.debate-dropdown .dropdown-divider {
    border-color: var(--border-subtle);
    margin: 6px 0;
}

/* ============================================
   LEGACY TOGGLE (keep for compatibility)
   ============================================ */

.switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all var(--duration-normal) var(--ease-out-back);
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: var(--gradient-success);
    border-color: transparent;
    box-shadow: 0 0 20px var(--accent-success-glow);
}

input:checked + .slider:before {
    transform: translateX(58px);
}

.slider.round {
    border-radius: var(--radius-full);
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-text-on, .toggle-text-off {
    padding-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.toggle-text-on { padding-left: 8px; }
.toggle-text-off { padding-left: 32px; }

/* ============================================
   GOOGLE SIGN-IN - Trust Badge
   ============================================ */

.google-sign-in-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: white;
    color: #1f1f1f;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.google-sign-in-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.google-sign-in-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   ALERTS - Attention Grabbers
   ============================================ */

.alert {
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.copiedLinkAlert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideDown var(--duration-slow) var(--ease-out-back);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   BADGES - Status Flex
   ============================================ */

.badge {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

/* ============================================
   UTILITIES
   ============================================ */

.hiddenEle { display: none; }
.noPadding { padding: 0; }

.verticallyCenteredItems {
    display: flex;
    justify-content: center;
    flex-flow: column;
}

.input-error {
    border-color: var(--accent-danger) !important;
    box-shadow: 0 0 0 4px var(--accent-danger-glow) !important;
}

.hoverable {
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

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

/* ============================================
   SCROLLBAR - Even the Details
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: var(--accent-primary);
    color: white;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--duration-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-light { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--accent-danger) !important; }
.text-success { color: var(--accent-success) !important; }

/* ============================================
   ANIMATIONS - The Magic
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-primary-glow); }
    50% { box-shadow: 0 0 40px var(--accent-primary-glow); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-in-up {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) forwards;
}

.animate-fade-in {
    animation: fadeIn var(--duration-normal) var(--ease-out-expo) forwards;
}

.animate-scale-in {
    animation: scaleIn var(--duration-normal) var(--ease-out-back) forwards;
}

/* Staggered animations */
.animate-fade-in-up:nth-child(1) { animation-delay: 0ms; }
.animate-fade-in-up:nth-child(2) { animation-delay: 100ms; }
.animate-fade-in-up:nth-child(3) { animation-delay: 200ms; }
.animate-fade-in-up:nth-child(4) { animation-delay: 300ms; }

/* ============================================
   CAROUSEL
   ============================================ */

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ============================================
   SPINNERS
   ============================================ */

.fa-spinner, .fa-circle-o-notch {
    color: var(--accent-primary);
}

/* ============================================
   AUDIO (fallback)
   ============================================ */

audio {
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

#createDebateAudioPreview {
    margin-top: 0.75em;
    width: 100%;
}

/* ============================================
   AUTOPLAY MODAL
   ============================================ */

#autoplayModal {
    top: 200px;
}

#autoplayModal .modal-content {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-default);
}

/* ============================================
   BORDER UTILITIES
   ============================================ */

.border-top { border-top: 1px solid var(--border-default) !important; }
.border-bottom { border-bottom: 1px solid var(--border-default) !important; }
.border-success { border-color: var(--accent-success) !important; }
.box-shadow { box-shadow: var(--shadow-md); }

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

/* ============================================
   FOCUS STATES - Accessibility Matters
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

/* ============================================
   HERO SECTION - The Statement
   ============================================ */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-title .text-gradient {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

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

/* Hero CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 1.1rem 2rem;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: 
        0 4px 30px var(--accent-primary-glow),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: gradient-shift 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 40px var(--accent-primary-glow),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:active {
    transform: translateY(0) scale(0.98);
}

.hero-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hero-cta:hover .hero-cta-icon {
    transform: translateX(4px);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge i {
    color: var(--text-ghost);
    font-size: 1rem;
}

/* Live Debates Card */
.live-debates-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.live-debates-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-hero);
}

.live-debates-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-success);
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* ============================================
   DEBATE CARD ENHANCEMENTS
   ============================================ */

.debateCard {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.debateCard:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-primary);
}

.debateCard.upNext {
    border-color: var(--accent-success);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.debateCard.isNotActive {
    opacity: 0.6;
}

/* ============================================
   CREATE DEBATE FORM ENHANCEMENTS
   ============================================ */

#createDebateForm {
    max-width: 600px;
    margin: 0 auto;
}

#createDebateForm label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#createDebateForm .form-group {
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE HERO
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-badges {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .live-debates-card {
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
    
    .hero-badges {
        gap: 1rem;
        justify-content: center;
    }
}
