/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --brand-green: #227681;
    --brand-pink: #ED8068;
    --brand-gradient: linear-gradient(135deg, #227681 0%, #5b5df5 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--brand-gradient);
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
}

.top-announcement {
    background-color: var(--brand-pink);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;    
    position: sticky;
    z-index: 1001;    
    top:0;
}

/* Header */
.main-header {
    padding: 20px 40px;
    width: 100%;
    position: sticky;
    top: 30px;
    z-index: 1000;
    backdrop-filter: blur(60px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 10px 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 64px); 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background-color: #4354a5;
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #36448a;
    transform: translateY(-2px);
}

/* Media Placeholder */
.hero-media {
    width: 100%;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Footer */
.main-footer {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 50px 40px 20px;
    text-align: center;
}

.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-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: 30px; font-size: 12px; opacity: 0.5; }

/* Estilos da Seção de Ranking */
.ranking-section {
    padding: 60px 40px;
}

.ranking-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 25px;
    backdrop-filter: blur(10px);
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.ranking-header h2 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ranking-header h3 {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
}

.live-badge {
    background-color: #ff4b4b; 
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.ranking-list {
    display: flex;
    flex-direction: column;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 25px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.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;
}

.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;
}

/* Secção Bell Challenge */
.bell-info-container {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.bell-info-section {
    padding: 60px 40px;
}

.section-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 30px;
}

.section-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Estilo do Acordeão */
.accordion-container {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.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;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-content {
    padding: 0 25px 20px 25px;
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.5;
}

/* Ícones do Acordeão */
.accordion-header .icon {
    font-size: 14px;
    transition: transform 0.3s;
}


/* Secção da Galeria */
.gallery-section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center; 
}

.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 rgba(255, 255, 255, 0.2);
    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);
}


.contact-section {
    padding: 60px 40px;
}

/* Mapa */
.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Grid do Formulário e Info */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Estilo dos Inputs (Glassmorphism) */
.form-group {
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    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; /* Vermelho do Bell Challenge */
}

.cta-contact {
    background-color: #4354a5; /* O azul que usas no CTA */
    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: #36448a;
    transform: translateY(-2px);
}

/* Container da Pesquisa no Ranking */
.ranking-search-container {
    padding-bottom: 30px;
}

.ranking-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-group {
    flex: 1; /* Faz com que os inputs ocupem o espaço disponível equitativamente */
}

.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: #4354a5; /* O azul que usas no CTA */
    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: #36448a;
    transform: translateY(-2px);
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .ranking-search-form {
        flex-direction: column; /* Ficam uns por cima dos outros no telemóvel */
        align-items: stretch;
    }
    
    .search-button {
        width: 100%;
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1; /* Info aparece antes do form no mobile */
    }
}

/* Media Queries para Responsividade */
@media (min-width: 768px) {
    .gallery-item {
        width: calc(50% - 25px); /* Duas colunas em tablets */
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: calc(33.333% - 25px); /* Três colunas em desktops */
    }
}


/* Responsividade Ranking */
@media (max-width: 768px) {
    .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;}
}

/* Responsividade */
@media (max-width: 992px) {
    .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; }
}