/* 
 * Miss Maharashtra - Main Stylesheet
 * Author: Design Team
 * Updated: June 2024
 */

/* ===== IMPORTS & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: #7B1F1F;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== VARIABLES & UTILITIES ===== */
:root {
    --primary-color: #7B1F1F;
    --secondary-color: #D4AF37; /* Gold accent */
    --light-bg: #FFF9F5; /* Light cream */
    --dark-text: #333;
    --light-text: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #5e1818;
    border-color: #5e1818;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.rounded-3 {
    border-radius: 12px !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.z-index-1 {
    z-index: 1;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Sticky scrolled navbar */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(123, 31, 31, 0.7));
}

.hero-logo {
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== FEATURES SECTION ===== */
.feature-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding: 4rem 0;
    background-color: var(--primary-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== CONTESTANT CARDS ===== */
.contestant-card {
    transition: var(--transition);
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contestant-img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.contestant-card:hover .contestant-img {
    transform: scale(1.05);
}

.contestant-info {
    padding: 1.5rem;
}

.contestant-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contestant-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.contestant-bio {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.view-profile-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== CASTING CALL CARDS ===== */
.casting-card {
    transition: var(--transition);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.casting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.casting-header {
    background-color: var(--light-bg);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.casting-location {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.casting-date {
    font-size: 0.9rem;
    color: #666;
}

.casting-body {
    padding: 1.5rem;
}

.casting-description {
    margin-bottom: 1.5rem;
    color: #555;
}

/* ===== MULTI-STEP FORM ===== */
.audition-form .form-step {
    display: none;
}

.audition-form .form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    opacity: 0.5;
    transition: var(--transition);
}

.step-indicator.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.step-divider {
    width: 40px;
    height: 2px;
    background-color: #ddd;
    margin: 0 1rem;
    align-self: center;
    transition: var(--transition);
}

.step-indicator.active ~ .step-divider {
    background-color: var(--primary-color);
}

.photo-preview-container {
    min-height: 100px;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-preview-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #333;
}

.review-section {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.review-info p {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

/* ===== CONTACT FORM ===== */
.captcha-container {
    border: 2px dashed #ddd;
}

/* ===== FOOTER ===== */
.footer {
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 8rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .step-indicator,
    .step-divider {
        padding: 0 0.5rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .hero-logo {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .step-indicator {
        padding: 0 0.25rem;
    }

    .step-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ===== ANIMATIONS ===== */
.toast {
    background-color: var(--primary-color);
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip to content link (for accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}