/* Through The Charts - Base Styles */

/* CSS Variables for Color Palette - Through The Charts */
:root {
    --primary-lime: #c9fd06;
    --primary-lime-hover: #b5e600;
    --secondary-blue: #0171d3;
    --secondary-blue-hover: #005bb5;
    --accent-green: #0da84a;
    --accent-green-hover: #0b9142;
    --background-white: #ffffff;
    --background-light: #fafafa;
    --text-dark: #333;
    --text-medium: #666;
    --text-on-lime: #333;
    --text-on-blue: #ffffff;
    --border-light: #ddd;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--background-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

header.nav-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-blue);
    text-decoration: none;
}

.nav-logo {
    height: 75px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

/* Search */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--secondary-blue-hover);
}

/* Main Content */
main {
    min-height: 80vh;
    padding: 0;
}

/* Hero Section */
.hero {
    background: var(--primary-lime);
    color: var(--text-on-blue);
    text-align: center;
    padding: 0 0 0 0;
    overflow-x: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.container > h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-blue);
    text-align: center;
    margin: 3rem 0 2rem 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

.hero-card {
    background: var(--primary-lime);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.hero-card-image {
    background: var(--accent-green);
    color: white;
    height: 101px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-weight: bold;
    padding: 0.75rem;
    box-sizing: border-box;
    font-size: 0.85rem;
}

/* === HERO CARDS MOBILE RESPONSIVENESS START === */
/* Tablets and small laptops */
@media (max-width: 1024px) {
    /* Ensure consistent padding rules */
    main {
        padding-top: 0 !important;
    }
    
    .hero {
        padding-bottom: 0 !important;
    }
    
    .hero-cards {
        gap: 1rem;
    }
    
    .hero-card {
        padding: 0.75rem;
    }
    
    .hero-card-image {
        height: 85px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    /* Ensure consistent padding rules */
    main {
        padding-top: 0 !important;
    }
    
    .hero {
        padding-bottom: 0 !important;
    }
    
    .hero-cards {
        gap: 0.75rem;
        margin: 0 0.5rem;
    }
    
    .hero-card {
        padding: 0.5rem;
    }
    
    .hero-card-image {
        height: 70px;
        padding: 0.4rem;
        font-size: 0.75rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Ensure consistent padding rules */
    main {
        padding-top: 0 !important;
    }
    
    .hero {
        padding-bottom: 0 !important;
    }
    
    .hero-cards {
        gap: 0.5rem;
        margin: 0 0.25rem;
    }
    
    .hero-card {
        padding: 0.4rem;
    }
    
    .hero-card-image {
        height: 60px;
        padding: 0.3rem;
        font-size: 0.7rem;
    }
}
/* === HERO CARDS MOBILE RESPONSIVENESS END === */

.hero-card h3 {
    color: var(--secondary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    opacity: 1;
}

.card-meta {
    color: var(--text-medium);
    font-size: 0.8rem;
}

.hero-banner {
    width: 100vw;
    height: auto;
    display: block;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    border: none;
    outline: none;
}

/* Typography */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--background-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card a {
    text-decoration: none;
    color: inherit;
}

/* Meta Information */
.meta {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Badges */
.badge {
    background: var(--primary-lime);
    color: var(--secondary-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-lime);
    color: var(--text-on-lime);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.btn:hover {
    background: var(--primary-lime-hover);
    color: var(--text-on-lime);
}

.btn-secondary {
    background: var(--secondary-blue);
    color: var(--text-on-blue);
}

.btn-secondary:hover {
    background: var(--secondary-blue-hover);
    color: var(--text-on-blue);
}

.btn-accent {
    background: var(--accent-green);
    color: var(--text-on-blue);
}

.btn-accent:hover {
    background: var(--accent-green-hover);
    color: var(--text-on-blue);
}

/* Filter Bar */
.filter-bar {
    background: var(--background-white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-bar form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar input, 
.filter-bar select {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

/* Status Indicators */
.upcoming-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-booked { 
    background: var(--accent-green); 
    color: white; 
}

.status-recording { 
    background: var(--primary-lime); 
    color: white; 
}

.status-in_edit { 
    background: var(--secondary-blue); 
    color: white; 
}

.status-scheduled { 
    background: var(--accent-green); 
    color: white; 
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

/* Explore More Section */
.explore-more {
    text-align: center;
    margin: 4rem 0;
}

.explore-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Messages */
.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.message.success {
    background: var(--accent-green);
}

.message.error {
    background: var(--primary-lime);
}

/* Responsive Design */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation improvements */
    nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .search-box {
        order: 2;
    }
    
    .search-box input {
        min-width: 200px;
    }
    
    /* Hero section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Grid layout */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem;
    }
    
    /* Filter bar */
    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Explore section */
    .explore-more {
        margin: 3rem 0;
    }
    
    .explore-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .explore-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .newsletter-form {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Navigation */
    nav {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .search-box input {
        min-width: auto;
        flex: 1;
    }
    
    .search-box button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Main content */
    main {
        padding: 1.5rem 0;
    }
    
    /* Grid layout */
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
        display: block;
        text-align: center;
        margin: 0.25rem 0;
    }
    
    /* Filter bar */
    .filter-bar {
        padding: 0.75rem;
    }
    
    .filter-bar input,
    .filter-bar select {
        padding: 0.6rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    /* Explore section */
    .explore-more {
        margin: 2rem 0;
    }
    
    .explore-more h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .explore-buttons {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .explore-buttons .btn {
        max-width: none;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    /* Meta text */
    .meta {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Badge */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin-left: 0.25rem;
        display: inline-block;
        margin-top: 0.25rem;
    }
    
    /* Status indicators */
    .upcoming-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        margin-top: 0.25rem;
        display: inline-block;
    }
    
    /* Footer */
    footer {
        padding: 1.25rem 0;
        margin-top: 3rem;
    }
    
    footer h3 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-input {
        padding: 0.75rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    /* Messages */
    .messages {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .message {
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Host Bio Styling */
.host-bio p {
    margin-bottom: 1.2rem;
}

.host-bio ul, .host-bio ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0.5rem;
}

.host-bio ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.host-bio ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.host-bio strong {
    color: #222;
    font-weight: 600;
}

.host-bio em {
    font-style: italic;
}

.host-bio a {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.host-bio a:hover {
    color: var(--secondary-blue-hover);
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .card {
        padding: 0.875rem;
    }

    .filter-bar {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }
}