/* style.css - JMU Podcasts Hub */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary-color: #FF751F;
    --primary-hover: #e05e10;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header img {
    height: 38px;
    width: auto;
    display: block;
}

.btn-back {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: white;
}

.btn-back:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background-color: #f1f5f9;
}

.btn-back svg {
    transition: var(--transition);
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Hero Section */
.hero {
    padding: 60px 20px 40px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(255, 117, 31, 0.05) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero img {
    max-width: 260px;
    height: auto;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Podcast List Section */
.podcasts-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    margin-bottom: 40px;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Podcast Card */
.podcast-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 117, 31, 0.3);
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%; /* Square aspect ratio 1:1 */
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.podcast-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.podcast-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
    transition: var(--transition);
}

.podcast-card:hover h3 {
    color: var(--primary-color);
}

.podcast-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    gap: 6px;
    margin-top: auto;
}

.card-footer svg {
    transition: var(--transition);
}

.podcast-card:hover .card-footer svg {
    transform: translateX(4px);
}

/* Upcoming Podcast Card */
.podcast-card.upcoming-show {
    opacity: 0.8;
}

.podcast-card.upcoming-show:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.podcast-card.upcoming-show .card-image-wrapper {
    filter: grayscale(1);
    opacity: 0.6;
}

.podcast-card.upcoming-show .card-category {
    color: #64748b;
}

.podcast-card.upcoming-show .card-footer {
    color: #64748b;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px 30px;
    }
    
    .hero img {
        max-width: 200px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
