/* Base Styles */
:root {
    --primary-color: #00c9a7;
    --primary-dark: #00a589;
    --primary-light: #e6fff9;
    --secondary-color: #c4fcef;
    --text-color: #2d3436;
    --text-light: #636e72;
    --white: #fff;
    --border-color: #eee;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

/* Image Styles */
.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.02);
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.card-title {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Celebrity Grid */
.celebrity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.celebrity-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.celebrity-item:hover {
    transform: translateY(-5px);
}

.celebrity-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Search Bar */
.search-bar {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: 60px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    height: 40px;
}

.burger-icon,
.burger-icon:before,
.burger-icon:after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.burger-icon:before,
.burger-icon:after {
    content: '';
    position: absolute;
    left: 0;
}

.burger-icon:before {
    top: -8px;
}

.burger-icon:after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }

    .main-nav {
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--white);
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        padding: 1rem 20px;
    }

    .main-nav ul li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    /* Burger animation */
    .burger-icon.active {
        background: transparent;
    }

    .burger-icon.active:before {
        transform: rotate(45deg);
        top: 0;
    }

    .burger-icon.active:after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--primary-color);
}

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

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #00b094;
}

.section-title {
    text-align: center;
    margin: 3rem 0;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
}

/* Celebrity Grid Layout */
.celebrity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.celebrity-card {
    display: block;
    text-decoration: none;
    color: inherit; /* Maintains the original text color */
    transition: transform 0.2s ease;
}

.celebrity-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.category {
    display: inline-block;
    padding: 4px 8px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .celebrity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.tv-shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tv-show-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.tv-show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.show-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.show-info {
    padding: 15px;
}

.show-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.show-info h2 a {
    color: #333;
    text-decoration: none;
}

.show-info h2 a:hover {
    color: #007bff;
}

.show-year {
    color: #666;
    margin: 5px 0;
}

.cast-count {
    color: #888;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Add these styles to your existing CSS */
.placeholder-poster {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

.show-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* Add these styles to your existing CSS */
.show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.seasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.show-year,
.show-seasons {
    color: #666;
    font-size: 0.9em;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.show-seasons {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.show-seasons:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Show Cast Page Styles */
.show-header {
    text-align: center;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.show-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.show-poster {
    max-width: 200px;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.seasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.show-seasons {
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.show-seasons:hover,
.show-seasons.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.cast-card {
    background: var(--white);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.cast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.cast-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.cast-card:hover .cast-photo {
    transform: scale(1.03);
}

.placeholder-photo {
    background-color: #f5f5f5;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 1rem;
}

.cast-info {
    padding: 0.75rem;
}

.cast-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.role {
    color: var(--primary-color);
    margin: 0.25rem 0;
    font-weight: 500;
    font-size: 0.85rem;
}

.character {
    color: var(--text-light);
    font-style: italic;
    margin: 0.25rem 0;
    font-size: 0.85rem;
}

.seasons {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

.no-cast-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    background: var(--white);
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .cast-photo, .placeholder-photo {
        height: 180px;
    }
    
    .cast-info {
        padding: 0.6rem;
    }
    
    .show-header {
        margin: 0.75rem 0 1rem;
        padding: 0.75rem;
    }
    
    .show-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .show-poster {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .cast-photo, .placeholder-photo {
        height: 160px;
    }
    
    .cast-info h3 {
        font-size: 0.95rem;
    }
    
    .role, .character {
        font-size: 0.8rem;
    }
    
    .seasons {
        font-size: 0.75rem;
    }
    
    .show-header {
        padding: 0.75rem;
    }
    
    .show-header h1 {
        font-size: 1.25rem;
    }
    
    .show-poster {
        max-width: 160px;
    }
    
    .show-seasons {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}



.wardrobe-page {
    padding: 2rem 0;
}

.wardrobe-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    text-align: center;
}

.wardrobe-header h1 {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.wardrobe-header .back-link {
    color: #4299e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wardrobe-header .back-link:hover {
    color: #2b6cb0;
}

.wardrobe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wardrobe-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.wardrobe-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wardrobe-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 2px;
    background: #f7f7f7;
}

.wardrobe-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.wardrobe-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wardrobe-info {
    padding: 0.5rem;
}

.wardrobe-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wardrobe-info p {
    margin: 0.15rem 0;
    color: #666;
    font-size: 0.8rem;
}

.wardrobe-info .brand {
    color: #888;
    font-style: italic;
    font-size: 0.75rem;
}

.wardrobe-info .price {
    color: #2c5282;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .wardrobe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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