/* File: /src/styles.css */
:root {
    --bg-color: #2a2a2a;
    --header-expanded: #a6192e; /* Brand red */
    --header-collapsed: #5a101d; /* Darker collapsed red */
    --footer-bg: #3c0b14;
    --text-light: #ffffff;
    --text-dark: #000000;
    --border-radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: 'Tomorrow', sans-serif;
    color: var(--text-dark);
    /* Lock the body to exact viewport height and prevent page-level scrolling */
    height: 100vh;
    padding: 40px 20px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    /* Container fills the locked body */
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden; 
}

/* Banner Styles */
.banner {
    margin-bottom: 8px;
    flex-shrink: 0; /* Prevents banner from being squished */
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: block;
    background-color: #000; 
}

/* Accordion Layout */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Consumes all remaining vertical space between banner and footer */
    flex: 1; 
    overflow: hidden; 
}

.accordion-item {
    background-color: var(--header-collapsed);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: flex;
    flex-direction: column;
    /* Changed to 1 so closed items stretch to evenly fill all empty space */
    flex: 1; 
    transition: flex 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
    overflow: hidden;
}

.accordion-item.expanded {
    background-color: var(--header-expanded);
    /* When expanded, take up 8x more space than a closed item */
    flex: 8; 
    min-height: 0; 
}

.accordion-header {
    width: 100%;
    /* Stretches the button to fill the item's height when collapsed */
    height: 100%; 
    background-color: transparent;
    color: var(--text-light);
    font-family: 'Tomorrow', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 20px 24px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0; 
}

.accordion-item.expanded .accordion-header {
    /* Returns to normal height when expanded so content gets the room */
    height: auto; 
}

/* SVG Arrow Icon */
.icon {
    width: 22px;
    height: 22px;
    transform: scaleX(-1); /* Flips the arrow horizontally */
    transition: transform 0.3s ease;
}

.accordion-item.expanded .icon {
    /* Keeps the horizontal flip and adds the rotation */
    transform: scaleX(-1) rotate(90deg); 
}

/* Content Area */
.accordion-content {
    background-color: #ffffff;
    height: 0; 
    flex: 1 1 auto;
    overflow-y: auto; 
    opacity: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.accordion-item.expanded .accordion-content {
    height: auto; 
    opacity: 1;
}

.content-inner {
    padding: 24px;
}

.content-inner h3 {
    font-family: 'Tomorrow', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.content-inner p {
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.content-inner ul {
    margin-left: 20px;
    margin-bottom: 16px;
    font-size: 0.75rem;
}

.content-inner li {
    margin-bottom: 8px;
}

/* Footer Styles */
.footer {
    margin-top: 8px;
    flex-shrink: 0; 
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 18px 24px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Tomorrow', sans-serif;
    font-weight: 600;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag {
    font-size: 1.2rem;
    line-height: 1;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 20px 16px; 
    }
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}