/* ==========================================================================
   1. Reset e Variáveis
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --brand-green: #227681;
    --brand-pink: #ED8068;
    --brand-blue: #4354a5;
    --brand-blue-hover: #36448a;
    --brand-gradient: linear-gradient(190deg, #227681 0%,#ED8068 25%, #5b5df5 100%);
    --brand-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; 
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: var(--brand-white);
    display: flex;
    flex-direction: column;
    background: var(--brand-gradient);
    background-attachment: fixed;
}

/* ==========================================================================
   2. Header e Navegação
   ========================================================================== */
.top-announcement {
    background-color: var(--brand-green);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;    
    position: sticky;
    top: 0;
    z-index: 1001;    
}

.top-announcement a { text-decoration: none; color: #fff; }

.main-header {
    padding: 20px 40px;
    width: 100%;
    position: fixed; 
    top: 35px; 
    left: 0;
    z-index: 1000;
}

.nav-container {
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-blue);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 25px;
    max-width: 100%;
    margin: 0 auto;
}

.logo img { height: 55px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 10px; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--brand-white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    transition: 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.social-icons a { color: white; margin-left: 15px; font-size: 18px; }

.lang-select {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.lang-select option { color: black; }

.menu-toggle { display: none; font-size: 24px; cursor: pointer; }

/* ==========================================================================
   3. Hero Slider Section
   ========================================================================== */
.hero-slider-section {
    padding: 130px 40px 40px;
    min-height: 85vh;
    display: flex;
    justify-content: center;
}

.hero-slider-container {
    max-width: 100%;
    width: 100%;
    position: relative;
    height: 550px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-container {
    text-align: center;
    padding: 40px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand-blue);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-3px);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px; height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active { background: white; transform: scale(1.3); }

/* ==========================================================================
   4. Ranking & Search
   ========================================================================== */
.ranking-section { padding: 60px 40px; }

.ranking-container {
    max-width: 100%;
    margin: 0 auto;
    background:var(--brand-blue);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    backdrop-filter: blur(10px);
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
}

.ranking-header h2 { font-size: clamp(2rem, 5vw, 64px); font-weight: 800; }
.ranking-header h3 { font-size: 24px; font-weight: 400; opacity: 0.9; }

.live-badge {
    background-color: #ff4b4b;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    gap: 20px;
}

.rank-number {
    width: 45px;
    height: 45px;
    background-color: white;
    color: #3d689e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}
.ranking-list { display: flex; flex-direction: column; }
.ranking-item:last-child { border-bottom: none; }
.rank-info { flex-grow: 1; display: flex; flex-direction: column; }
.user-name { font-size: 18px; font-weight: 600; }
.user-country { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.rank-score { font-size: 20px; font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   5. Acordeão & Galeria
   ========================================================================== */
.bell-info-section, .gallery-section, .contact-section {
    padding: 60px 40px;
}

.bell-info-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.accordion-container {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.section-title { font-size: clamp(2rem, 5vw, 64px); font-weight: 800; margin-bottom: 20px; color:var(--brand-white);}
.section-description { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; color:var(--brand-white); }
.accordion-item { border-bottom: 1px solid var(--brand-blue-hover); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s;
    background: var(--brand-blue);
}

.accordion-header:hover { background-color: var(--brand-blue-hover) }

.accordion-content {
    padding: 0 25px 20px 25px;
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.5;
    background: var(--brand-blue);
}

.accordion-header .icon { font-size: 14px; transition: transform 0.3s; }

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.gallery-item {
    position: relative;
    flex: 1 1 calc(33.333% - 25px); 
    min-width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--primary-color-rgb), 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: left;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }

.gallery-overlay h3 { font-size: 20px; margin-bottom: 5px; }

.gallery-overlay p { font-size: 14px; color: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   6. Contactos & Footer
   ========================================================================== */
.main-footer {
    background-color: var(--brand-blue);
    padding: 50px 40px 20px;
    text-align: center;
}
.footer-bottom .divider {
    height: 1px;
    background-color:rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.footer-bottom a { text-decoration: none; color: #fff; }

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 { margin-bottom: 15px; font-size: 16px; }
.footer-section p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.footer-section a { font-size:14px; text-decoration: none; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.footer-socials { display: flex; gap: 15px; margin-top: 10px; justify-content: center; }
.footer-socials a { color: white; font-size: 18px; }
.footer-bottom { text-align: center; margin-top: 40px; font-size: 12px; opacity: 0.5; }
.footer-bottom img { height: 30px; margin-top: 10px; }

.contact-section { padding: 60px 40px; }

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

.form-group { margin-bottom: 20px; }

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--brand-blue);;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    backdrop-filter: blur(10px);
    outline: none;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus, 
.contact-form textarea:focus { background: rgba(255, 255, 255, 0.1); border-color: #36448a; }

.cta-contact {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-contact:hover { background-color: var(--brand-blue-hover); transform: translateY(-2px); }
.ranking-search-container { padding-bottom: 30px; }
.ranking-search-form { display: flex; gap: 15px; align-items: center; }
.search-group { flex: 1; }

.search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-input:focus { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); outline: none; }

.search-button {
    background-color: var(--brand-blue-hover);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover { background-color: var(--brand-pink); transform: translateY(-2px); }

/* ==========================================================================
   7. Responsividade
   ========================================================================== */
@media (min-width: 1820px) {
    .hero-slider-container {height: 750px;}    

}   

@media (min-width: 1024px) {
    .gallery-item { width: calc(33.333% - 25px); }  
}

@media (max-width: 992px) {
    .main-header {padding: 20px 20px;}
    .hero-slider-section  { padding: 130px 20px 40px;}
    .bell-info-section, .ranking-section, .contact-section  { padding: 40px 20px;}
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .bell-info-container h2 {text-align: center; font-size: 40px;}
    .bell-info-container .section-description {text-align: center;}
    .hero-content p { margin-left: auto; margin-right: auto; }
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px; left: 0; right: 0;
        background-color: #4354a5; 
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 12px;
        padding: 20px;
        border-radius: 12px;
        z-index: 1002;
        text-align: center;
    }
    .nav-links.active { display: flex;}
    .social-icons { display: none; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { order: -1; }
}

@media (max-width: 768px) {
    .gallery-item { width: calc(50% - 25px); }
    .ranking-search-form { flex-direction: column; align-items: stretch; }
    .search-button { width: 100%; }
    .ranking-header { flex-direction: column; gap: 20px; align-items: flex-start; }
    .ranking-header h2 { font-size: 40px; }
    .ranking-container { padding: 20px; }
    .rank-score { font-size: 16px; }
    .ranking-section h2 {font-size: 40px;}
    .bell-info-section h2 {font-size: 40px;}
    .live-badge {width: 100%; text-align: center;}
    .main-header {padding: 20px 20px;}

}

@media (max-width: 418px) {
    .main-header {padding: 20px 20px;}
}