/* =========================================
   Venradio - Global Styles (Spotify/Premium Style)
   ========================================= */

:root {
    /* Spotify-like Dark Theme Palette */
    --bg-base: #000000;
    --bg-main: #121212;
    --bg-card: #181818;
    --bg-card-hover: #282828;

    /* Premium Accent: A mix of Spotify Green and Cyberpunk Cyan for AI feel */
    --accent-color: #1ed760;
    /* #00e5ff could also work for AI, let's use a bright vibrant green/cyan */
    --accent-hover: #1fdf64;

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;

    --border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- App Container --- */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Background (Subtle Gradient for landing) --- */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #202020 0%, #000000 100%);
    z-index: -1;
}

/* --- Landing Page --- */
.landing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.landing-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeDown 1s ease-out;
}

.logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Role Cards (Spotify/Premium Card Style) --- */
.role-cards-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.role-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: var(--bg-card);
    border: none;
    border-radius: 8px;
    /* Sharper corners like modern apps */
    padding: 2.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    color: white;
    outline: none;
    animation: fadeUp 0.8s ease-out backwards;
}

.role-card:nth-child(1) {
    animation-delay: 0.1s;
}

.role-card:nth-child(2) {
    animation-delay: 0.2s;
}

.role-card:nth-child(3) {
    animation-delay: 0.3s;
}

.role-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Play/Action Button on Hover (Spotify style) */
.role-card::after {
    content: '→';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
}

.role-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    position: relative;
    z-index: 2;
}

.icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.role-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.role-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Specific Role Highlight --- */
.role-card.listener:hover h2 {
    color: #fff;
}

/* --- Animations --- */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .role-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .role-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Dropdown Option Fix */
select option, select.form-input option { background-color: #0f0f13; color: #00f0ff; font-weight: bold; }


[data-theme="light"] {
    /* Light Mode Variables */
    --bg-base: #f0f2f5;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;

    /* A refined teal/cyan for light mode to keep the signature vibe */
    --accent-color: #00b4d8;
    --accent-hover: #0096c7;
    
    /* Keep primary neon references but adapt for light mode readability */
    --primary-color: #0096c7;
    --grad-primary: linear-gradient(135deg, #00b4d8, #0077b6);
    --surface-color: #ffffff;

    --text-primary: #121212;
    --text-secondary: #555555;
    --text-muted: #888888;

    --border-light: rgba(0, 0, 0, 0.1);
}

/* Base adjustment for global transitions to make theme switching smooth */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Generic Glass Panel adjustments for Light theme */
[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .playlist-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .inbox-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid var(--border-light);
}

[data-theme="light"] .nav-menu ul li {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-menu ul li:hover,
[data-theme="light"] .nav-menu ul li.active {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary-color);
}

[data-theme="light"] .player-overlay {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

[data-theme="light"] .cyber-btn,
[data-theme="light"] .prime-btn {
    box-shadow: 0 4px 15px rgba(0, 150, 199, 0.3);
}

[data-theme="light"] .form-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary) !important;
}

[data-theme="light"] .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 150, 199, 0.1);
    background: rgba(0,0,0,0.01);
}

[data-theme="light"] .search-bar {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: #121212;
}

[data-theme="light"] .search-bar::placeholder {
    color: #888;
}

[data-theme="light"] .radio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

[data-theme="light"] .modal-box {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

[data-theme="light"] .modal-form {
    color: var(--text-primary);
}

[data-theme="light"] select option,
[data-theme="light"] select.form-input option {
    background-color: #ffffff;
    color: #121212;
}
