/* ================================================
   RADIO LYNGDAL - ENHANCED HOMEPAGE STYLES
   ================================================ */

:root {
    --primary: #7F00FF;
    --primary-dark: #6600cc;
    --secondary: #cc00ff;
    --accent: #00d4ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #6c757d;
    --border: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #7F00FF 0%, #cc00ff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(127, 0, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ================================================
   NOW PLAYING HERO SECTION
   ================================================ */

.now-playing-hero {
    background: var(--gradient-dark);
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}

.now-playing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.now-playing-container {
    position: relative;
    z-index: 1;
}

.now-playing-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--danger);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.now-playing-content {
    text-align: center;
    color: var(--white);
}

.now-playing-title {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 400;
}

.now-playing-song {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.now-playing-song .artist {
    color: var(--accent);
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 25px;
}

.audio-visualizer .bar {
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: sound-wave 0.8s ease-in-out infinite;
}

.audio-visualizer .bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.audio-visualizer .bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.audio-visualizer .bar:nth-child(6) { height: 35px; animation-delay: 0.5s; }
.audio-visualizer .bar:nth-child(7) { height: 20px; animation-delay: 0.6s; }
.audio-visualizer .bar:nth-child(8) { height: 28px; animation-delay: 0.7s; }
.audio-visualizer .bar:nth-child(9) { height: 38px; animation-delay: 0.8s; }
.audio-visualizer .bar:nth-child(10) { height: 22px; animation-delay: 0.9s; }

@keyframes sound-wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.audio-visualizer.paused .bar {
    animation-play-state: paused;
    transform: scaleY(0.3);
}

/* Play Button */
.play-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.play-button-large {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(127, 0, 255, 0.5);
}

.play-button-large:active {
    transform: scale(0.95);
}

.play-button-large i {
    margin-left: 4px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
}

/* ================================================
   FEATURE CARDS SECTION
   ================================================ */

.feature-cards-section {
    padding: 60px 0;
    background: var(--light);
}

.feature-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .feature-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .feature-cards-row {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.1);
}

.feature-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.feature-card-highlight {
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.1) 0%, rgba(204, 0, 255, 0.1) 100%);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-card-highlight .amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.feature-card-highlight .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.feature-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.feature-card-btn.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.feature-card-btn.outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ================================================
   ACTION BUTTONS SECTION
   ================================================ */

.action-buttons-section {
    padding: 50px 0;
    background: var(--white);
}

.action-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.action-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.action-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.action-btn-primary i {
    font-size: 18px;
}

.action-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--light);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.action-btn-secondary .badge-new {
    background: var(--success);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ================================================
   CONTENT GRID SECTION (Program + News)
   ================================================ */

.content-grid-section {
    padding: 60px 0 80px;
    background: var(--light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Program Schedule Card */
.schedule-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.schedule-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 24px;
}

.schedule-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-header .date {
    font-size: 14px;
    opacity: 0.85;
}

.schedule-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: rgba(127, 0, 255, 0.03);
}

.schedule-item.is-live {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}

.schedule-time-indicator {
    position: relative;
    margin-right: 16px;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--border);
}

.schedule-item.is-live .schedule-dot {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success), 0 0 10px var(--success);
    animation: live-pulse 1.5s ease-in-out infinite;
}

.schedule-item.is-past .schedule-dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.schedule-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    min-width: 50px;
}

.schedule-program {
    flex: 1;
}

.schedule-program-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.schedule-item.is-live .schedule-program-name {
    color: var(--success);
    font-weight: 700;
}

.live-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* News Feed Cards */
.news-feed-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-feed-header {
    background: var(--dark);
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-feed-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.news-feed-header .feed-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.news-feed-content {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Override feedEk styles */
.news-feed-content .itemTitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    display: block;
    transition: color 0.2s ease;
}

.news-feed-content .itemTitle:hover {
    color: var(--primary) !important;
}

.news-feed-content .itemDate {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    display: block;
    margin-bottom: 12px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.news-feed-content li {
    margin-bottom: 0 !important;
}

/* Custom feed item styling */
.feed-item {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.feed-item:hover {
    background: var(--light);
    border-left-color: var(--primary);
}

.feed-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: block;
    text-decoration: none;
}

.feed-item-title:hover {
    color: var(--primary);
}

.feed-item-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 767px) {
    .now-playing-hero {
        padding: 30px 0 40px;
    }

    .now-playing-song {
        font-size: 20px;
    }

    .play-button-large {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .audio-visualizer {
        gap: 3px;
    }

    .audio-visualizer .bar {
        width: 3px;
    }

    .feature-cards-section {
        padding: 40px 0;
    }

    .feature-card {
        min-height: auto;
    }

    .action-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn-primary,
    .action-btn-secondary {
        justify-content: center;
    }

    .content-grid-section {
        padding: 40px 0 60px;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto !important; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
