/* ========================================================= */
/* ==== MASTER STYLESHEET FOR FIXMYCASE (global.css) ==== */
/* ========================================================= */

/* ============== 1. THEME VARIABLES & GLOBAL RESET ============== */
:root {
    --bg-color: #f9fafb;
    --text-color: #111827;
    --text-muted: #6b7280;
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --input-bg: #f3f4f6;
    
    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on macOS/iOS */
}


/* ============== 2. SHARED LAYOUT & COMPONENTS ============== */

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.main-nav {
    display: flex;
    gap: 1.5rem;
}
.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-secondary {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}


/* ============== 3. NEW: PROFESSIONAL FOOTER STYLES ============== */
.site-footer {
    background-color: var(--input-bg);
    color: var(--text-muted);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-column h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 0.75rem;
}
.footer-column ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-column ul a:hover {
    color: var(--primary-color);
}
.footer-bottom-bar {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}


/* ============== 4. NEW: COLLAPSIBLE FAQ SECTION STYLES ============== */
.faq-section {
    margin-top: 4rem;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
}
.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}
.faq-answer {
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    line-height: 1.8;
}

/* Alpine.js will control this animation */
.faq-item[x-data].is-open .faq-icon {
    transform: rotate(45deg);
}

[x-cloak] {
    display: none !important;
}


/* Specific style for the email link */
.footer-email {
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-bottom-bar {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}



/* ======================================================== */
/* ==== LANGUAGE SWITCHER STYLES (in global.css) ==== */
/* ======================================================== */

.language-selector {
    position: relative; /* This is crucial for positioning the dropdown */
}

/* --- The Main Button --- */
.language-selector > button {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector > button:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
}

.language-selector > button svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* The SVG will take the color of the button text */
}

/* --- The Dropdown List --- */
.language-selector ul {
    position: absolute;
    top: calc(100% + 10px); /* Position it right below the button with some space */
    right: 0;
    
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    
    width: 180px; /* Give it a fixed width */
    list-style: none;
    z-index: 100; /* Make sure it appears above other content */
    overflow: hidden; /* For smooth animation */
}

/* --- List Items & Inner Buttons --- */
.language-selector li button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-selector li button:hover {
    background-color: var(--input-bg);
    color: var(--primary-color);
}