/* youtube.css */
/* Philosophy: solid black buttons always — same as x.css */
/* YouTube branding color: #ef4444 (YouTube Red) */

/* --- Always Solid Black Buttons --- */

/* 1. Top Navigation Links (Home, About, Feedback, Hub) */
nav a {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    transition: all 0.2s ease-in-out;
}

/* 2. Control Buttons (Refresh & Theme Toggle) */
#refresh-btn, 
#theme-toggle {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    backdrop-filter: none !important;
}

/* 3. Primary "Share Video" Button – Black with YouTube Red */
#open-share-btn {
    background-color: #000000 !important;
    color: #ef4444 !important;          /* YouTube Red */
    border: 2px solid #ef4444 !important;
    background-image: none !important;   /* override any gradient */
    backdrop-filter: none !important;
    font-weight: 600;
}

/* --- Hover States --- */
nav a:hover, 
#refresh-btn:hover, 
#theme-toggle:hover {
    background-color: #1e293b !important;
    border-color: #ef4444 !important;     /* red highlight */
    color: #ffffff !important;
}

#open-share-btn:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* --- Dark Background Pattern (YouTube vibe) --- */
.bg-pattern-dark {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 35% 25%, hsla(0, 100%, 50%, 0.12) 0px, transparent 50%),
        radial-gradient(at 75% 15%, hsla(0, 90%, 45%, 0.10) 0px, transparent 55%);
    background-size: 120% 120%;
}

/* --- Glassmorphism for video cards / embeds (still dark) --- */
.glass-panel,
.embed-container {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(239, 68, 68, 0.14) !important;  /* faint red tint */
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
    border-radius: 1rem;
    overflow: hidden;
}

/* --- Embed / Video Container --- */
.embed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1rem;
    min-height: 360px;
    padding: 1.25rem;
    border: 1px solid rgba(239, 68, 68, 0.08);
}

.youtube-video,
iframe {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Animations (same as x.css) --- */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

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

.animate-fade-in-up {
    animation: fadeInUp 0.35s ease-out forwards;
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}