/**
 * Podcast Page Styles - Coran 3D
 * Islamic-inspired podcast experience
 * ===================================
 */

/* =============================================
   PODCAST PAGE CONTAINER
   ============================================= */

.podcast-page {
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
    position: relative;
    overflow: hidden;
}

/* Islamic Filigree Background */
.podcast-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(212, 175, 125, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF7D' stroke-opacity='0.025'%3E%3Crect x='25' y='25' width='50' height='50' transform='rotate(0 50 50)' stroke-width='0.5'/%3E%3Crect x='25' y='25' width='50' height='50' transform='rotate(45 50 50)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='15' stroke-width='0.3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   PODCAST HEADER
   ============================================= */

.podcast-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: var(--space-10);
    padding-top: var(--space-6);
}

.podcast-header__calligraphy {
    font-family: var(--font-arabic);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
    text-shadow:
        0 0 40px var(--accent-glow),
        0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    line-height: 1.2;
    animation: podcastGlow 4s ease-in-out infinite;
}

@keyframes podcastGlow {
    0%, 100% {
        text-shadow:
            0 0 40px var(--accent-glow),
            0 2px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow:
            0 0 60px var(--accent-glow),
            0 0 80px var(--accent-softer),
            0 2px 20px rgba(0, 0, 0, 0.3);
    }
}

.podcast-header__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-4) auto;
    max-width: 400px;
}

.podcast-header__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-primary) 50%,
        transparent 100%);
}

.podcast-header__ornament-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    animation: ornamentSpin 30s linear infinite;
}

@keyframes ornamentSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.podcast-header__title {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.podcast-header__subtitle {
    font-size: var(--text-base);
    color: var(--text-tertiary);
    max-width: 500px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* =============================================
   FEATURED PODCAST
   ============================================= */

.podcast-featured {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto var(--space-12);
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

/* Decorative corner */
.podcast-featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, var(--accent-soft) 50%);
    opacity: 0.5;
}

.podcast-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(-45deg, transparent 50%, var(--accent-soft) 50%);
    opacity: 0.3;
}

.podcast-featured__content {
    position: relative;
    z-index: 1;
}

.podcast-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-soft);
    border: 1px solid var(--accent-tertiary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
}

.podcast-featured__badge svg {
    width: 16px;
    height: 16px;
}

.podcast-featured__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-4);
}

.podcast-featured__meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.podcast-featured__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.podcast-featured__meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-tertiary);
}

.podcast-featured__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--ochre) 100%);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-default);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.podcast-featured__btn svg {
    width: 20px;
    height: 20px;
}

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

/* Featured Image */
.podcast-featured__image {
    position: relative;
    z-index: 1;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.podcast-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-featured__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-6);
}

/* Waveform Animation */
.podcast-featured__waveform {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.podcast-featured__waveform span {
    width: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: waveform 1s ease-in-out infinite;
}

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

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

/* =============================================
   PODCAST GRID
   ============================================= */

.podcast-grid-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.podcast-grid__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.podcast-grid__title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* =============================================
   PODCAST CARD
   ============================================= */

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

.podcast-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%, var(--ochre) 100%);
    border-radius: calc(var(--radius-xl) + 2px);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* Card Image */
.podcast-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.podcast-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-default);
}

.podcast-card:hover .podcast-card__image img {
    transform: scale(1.08);
}

/* Play Button */
.podcast-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    color: var(--bg-primary);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-default);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.podcast-card__play svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.podcast-card:hover .podcast-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Badge */
.podcast-card__badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
}

.podcast-card__badge svg {
    width: 18px;
    height: 18px;
}

/* Card Content */
.podcast-card__content {
    padding: var(--space-4);
}

.podcast-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.podcast-card__dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

/* =============================================
   EMPTY STATE
   ============================================= */

.podcast-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    position: relative;
    z-index: 1;
}

.podcast-empty__illustration {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-6);
    color: var(--accent-primary);
    opacity: 0.5;
}

.podcast-empty__illustration svg {
    width: 100%;
    height: 100%;
}

.podcast-empty__title {
    font-family: var(--font-arabic);
    font-size: var(--text-2xl);
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}

.podcast-empty__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.podcast-empty__hint {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* =============================================
   HOME PAGE PODCAST ROW
   ============================================= */

.podcast-row {
    position: relative;
    margin-bottom: var(--space-10);
}

.podcast-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding: 0 var(--space-6);
}

.podcast-row__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.podcast-row__title h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.podcast-row__title-arabic {
    font-family: var(--font-arabic);
    font-size: var(--text-lg);
    color: var(--accent-primary);
    margin-left: var(--space-3);
}

.podcast-row__title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.podcast-row__see-all {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.podcast-row__see-all:hover {
    color: var(--ochre);
}

.podcast-row__see-all svg {
    width: 16px;
    height: 16px;
}

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

@media (max-width: 768px) {
    .podcast-page {
        padding: var(--space-6) var(--space-4);
    }

    .podcast-header__calligraphy {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .podcast-featured {
        grid-template-columns: 1fr;
        padding: var(--space-6);
    }

    .podcast-featured__image {
        order: -1;
        aspect-ratio: 16/9;
    }

    .podcast-featured__title {
        font-size: var(--text-xl);
    }

    .podcast-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .podcast-featured__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .podcast-featured__btn {
        width: 100%;
        justify-content: center;
    }
}
