/* 
   Frontera Controls - Theater Automation Website Styles
   Color palette variables for easy theming
*/

/* =============================================================================
   COLOR PALETTES - Uncomment one to use
   ============================================================================= */

/* Default theme (Blue) */
:root,
body[data-theme="blue"] {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298; 
    --accent-color: #ffd700;
    --background-light: #f8f9fa;
    --text-dark: #333;
    --success-color: #28a745;
    --white: white;
    
    --hero-primary-overlay: rgba(30, 60, 114, 0.8);
    --hero-secondary-overlay: rgba(42, 82, 152, 0.8);
}

/* Purple theme */
body[data-theme="purple"] {
    --primary-color: #4a1a4a;
    --secondary-color: #6b2c6b; 
    --accent-color: #ff6b9d;
    --background-light: #e7e8fb;
    --text-dark: #2d1b2d;
    --success-color: #28a745;
    --white: white;
    
    --hero-primary-overlay: rgba(74, 26, 74, 0.8);
    --hero-secondary-overlay: rgba(107, 44, 107, 0.8);
}


/* =============================================================================
   BASE STYLES
   ============================================================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

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

/* =============================================================================
   HEADER STYLES
   ============================================================================= */

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🎭";
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    order: 1;
}

.language-toggle {
    order: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-toggle button {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

#theme-selector {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    min-width: 90px;
}

#theme-selector:hover {
    background: rgba(255,255,255,0.2);
}

#theme-selector option {
    background: var(--primary-color);
    color: var(--white);
}

.language-toggle button.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.language-toggle button:hover {
    background: rgba(255,255,255,0.1);
}

.language-toggle button.active:hover {
    background: var(--accent-color);
}

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

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

nav a:hover {
    color: var(--accent-color);
}

/* =============================================================================
   MAIN CONTENT STYLES
   ============================================================================= */

main {
    margin-top: 80px;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
    background: linear-gradient(var(--hero-primary-overlay), var(--hero-secondary-overlay)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23f0f2f5"/><circle cx="200" cy="150" r="3" fill="%23ddd"/><circle cx="400" cy="250" r="2" fill="%23ddd"/><circle cx="600" cy="100" r="3" fill="%23ddd"/><circle cx="800" cy="300" r="2" fill="%23ddd"/><circle cx="1000" cy="200" r="3" fill="%23ddd"/></svg>');
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* =============================================================================
   SERVICES SECTION
   ============================================================================= */

.services {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-left: 5px solid var(--secondary-color);
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */

.about {
    padding: 4rem 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-features {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */

.contact {
    padding: 4rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-item::before {
    content: "📧";
    margin-right: 0.5rem;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* =============================================================================
   MOBILE RESPONSIVE
   ============================================================================= */

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .language-toggle {
        order: 1;
    }

    nav {
        order: 2;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    nav ul.active {
        display: flex;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   LANGUAGE CONTENT VISIBILITY
   ============================================================================= */

.lang-en { 
    display: block; 
}

.lang-es { 
    display: none; 
}

body.spanish .lang-en { 
    display: none; 
}

body.spanish .lang-es { 
    display: block; 
}