/* =================================== */
/* === Global Styles & Variables === */
/* =================================== */
:root {
    --primary-color: #8E44AD; /* A rich purple */
    --secondary-color: #E91E63; /* A vibrant pink/magenta */
    --accent-color: #00BCD4; /* A bright cyan */
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

/* Smooth page transitions */
main {
    transition: opacity 0.3s ease-in-out;
}

/* Optional: Add a loading indicator */
main.loading {
    opacity: 0.5;
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevent horizontal scroll from carousel */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.content-area>h1:first-child {
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--bg-color); padding-bottom: 0.5rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.logo img {
    display: block;
    width: auto;
    height: 80px;
    /* Match your header height exactly */
}

/* Global Utility Classes */
.section-padded {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn.secondary-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn.primary-btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.primary-btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* =================================== */
/* === Header & Footer === */
/* =================================== */
.site-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul { list-style: none; display: flex; }
.main-nav li { margin-left: 1.5rem; }
.main-nav a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active { /* Added active state for current page */
    color: white;
    border-bottom: 2px solid var(--accent-color);
}

.site-footer {
    background: #333;
    color: #aaa;
    padding: 1rem 0;
    text-align: center;
}
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 1rem; }
.footer-nav { margin-top: 0.2rem; }
.footer-nav a { color: #eee; margin: 0 0.5rem; }
.footer-nav a:hover { color: var(--accent-color); }


/* =================================== */
/* === Top Ad Carousel === */
/* =================================== */
.top-banner-container {
    max-width: 1300px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    position: relative;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.banner-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-carousel-slide {
    flex-shrink: 0;
    padding: 0.5rem;
    text-align: center;
    box-sizing: border-box;
}

/* CRITICAL FIX: Responsive widths */
/* Mobile: 1 slide visible */
.banner-carousel-slide {
    width: 100%;
}

/* Tablet: 2 slides visible */
@media (min-width: 768px) {
    .banner-carousel-slide {
        width: 50%;
    }
}

/* Desktop: 3 slides visible */
@media (min-width: 1024px) {
    .banner-carousel-slide {
        width: 33.333%;
    }
}

.banner-carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 5px;
    display: block; /* Prevent inline spacing issues */
    background: #f5f5f5;
}

.banner-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.banner-carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-carousel-button.prev { 
    left: 10px; 
}

.banner-carousel-button.next { 
    right: 10px; 
}

.banner-carousel-slide a {
    display: block;
    text-decoration: none;
}

/* =================================== */
/* === NEW: VIP Button Styles === */
/* =================================== */

.vip-button-container {
    text-align: center;
    /* This adds space between the button and the 'Advertisement' label */
    margin-bottom: 1.25rem;
}

.vip-btn {
    /* Use the theme's colors for a shiny gradient */
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));

    /* Override default button colors */
    color: white;
    border: none;

    /* Add depth */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Smooth transition for the hover effect */
    transition: all 0.3s ease;
}

.vip-btn:hover {
    /* Shift the gradient on hover for a cool effect */
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));

    /* Make the button "pop" */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    
    color: #FFD700;
}

/* =================================== */
/* === Page Layout (Shared) === */
/* =================================== */
.page-wrapper { /* Used for actor profile page main content */
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* =================================== */
/* === Breadcrumbs === */
/* =================================== */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}
.breadcrumbs a { color: var(--primary-color); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.5rem; }
.breadcrumbs .current { font-weight: 500; color: var(--text-color); }

/* =================================== */
/* === Main Content Area (Actor Profile Page) === */
/* =================================== */
.content-area {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.profile-header {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Image stacks on top */
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.profile-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
}

.actor-tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.profile-intro-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Bio stacks on Details */
    gap: 2rem;
}

.profile-bio p {
    margin-bottom: 1rem;
}

/* Actor Details List */
.actor-details {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
}
.actor-details h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.details-list {
    list-style: none;
    padding: 0;
}
.details-list li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.details-list li:last-child {
    border-bottom: none;
}
.details-list li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}
.details-list li a {
    word-break: break-all;
}

/* Filmography Section */
.filmography { margin-top: 2rem; }
.film-list { list-style: none; padding-left: 0; }
.film-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 5px;
    margin-bottom: 0.75rem;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.film-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.film-list .film-title { font-weight: 500; font-size: 1.1rem; color: var(--text-color); }
.film-list .film-year {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 1rem;
}

/* =================================== */
/* === NEW: Homepage Specific Styles === */
/* =================================== */
.homepage-content {
    max-width: 1300px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: url('./img/desistar-banner.webp') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 3rem;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    padding: 1rem;
    border-radius: var(--border-radius);
    max-width: 800px;
}

.hero-section h1 {
    font-size: 2.5rem; /* Reduced from 3.5rem */
    color: white;
    margin-bottom: 0.5rem; /* Reduced margin */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem; /* Reduced from 1.2rem */
    margin-bottom: 1rem; /* Reduced margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Actor Grid Section */
.actor-grid-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: none; /* Override general h2 border */
}

.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.actor-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.actor-card-image {
    width: 100%;
    height: 200px; /* Fixed height for image consistency */
    overflow: hidden;
    display: flex; /* For centering shorter images */
    align-items: center;
    justify-content: center;
}

.actor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if needed */
    transition: transform 0.3s ease;
}

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

.actor-card h3 {
    font-size: 1.1rem;
    margin: 1rem 0.5rem 1rem 0.5rem; /* Reduced bottom margin for cards */
    color: var(--primary-color);
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 1rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

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

.featured-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.featured-section p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Override button styles for featured section */
.featured-section .btn.primary-btn-outline {
    border-color: white;
    color: white;
}
.featured-section .btn.primary-btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}


/* =================================== */
/* === Responsive Design (Media Queries) === */
/* =================================== */

/* Tablet (e.g., iPads) */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    .hero-section h1 {
        font-size: 3.8rem;
    }

    .content-area {
        padding: 2.5rem;
    }
    
    .profile-header {
        grid-template-columns: 1fr 2fr; /* 1 part image, 2 parts text wrapper */
        align-items: flex-start;
    }

    .profile-intro-content {
        grid-template-columns: 2fr 1fr; /* 2 parts bio, 1 part details */
        align-items: flex-start;
    }

    /* Ad Carousel: 2 ads */
    .banner-carousel-slide {
        width: 50%;
    }

    /* Actor Grid */
    .actor-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    .actor-card-image {
        height: 280px;
    }

    .featured-section h2 {
        font-size: 3rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    /* Ad Carousel: 3 ads */
    .banner-carousel-slide {
        width: 33.333%;
    }

    /* Actor Grid */
    .actor-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .actor-card-image {
        height: 280px;
    }
}

/* Mobile Nav */
@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 0.25rem 0.5rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    .hero-section {
        height: 300px;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section p {
        font-size: 1rem;
		margin-bottom: 1rem;
    }
    .actor-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .actor-card-image {
        height: 280px;
    }
}