:root {
    --primary-color: #880e06; /* vermelho principal */
    --primary-dark: #5a0904;   /* vermelho escuro */
    --primary-light: #b02d27;  /* vermelho claro */
    --dark-bg: #1a1a2e;        /* fundo escuro */
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #333;
    --text-light: #f8f9fa;
    --gradient: linear-gradient(135deg, #880e06 0%, #b02d27 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;

    /* Cores adicionais para a seção de downloads */
    --fundo-container: rgba(0, 0, 0, 0.3);
    --borda-container: rgba(255, 255, 255, 0.1);
    --cor-texto-secundaria: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('../../../assets/images/login/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 1)
    );
    z-index: -1;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
    padding: 8px 15px !important;
}

.nav-link:hover, .nav-link.active {
    background: var(--gradient);
    color: white !important;
    transform: translateY(-2px);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 26%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: scale(1.03);
}

/* Estilos para a seção de downloads (adaptados do exemplo) */
.downloads-container {
    background: var(--fundo-container);
    backdrop-filter: blur(10px);
    border: 1px solid var(--borda-container);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.recommendation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.rec-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rec-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.rec-subtitle {
    font-size: 1.1rem;
    color: var(--cor-texto-secundaria);
    margin-bottom: 15px;
}

.rec-description {
    font-size: 1rem;
    color: var(--cor-texto-secundaria);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 20px;
}

.rec-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.btn-download {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-grow: 1;
    flex-basis: 10px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(136, 14, 6, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(136, 14, 6, 0.4);
    color: white;
}

.btn-download.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.btn-download.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-download.disabled {
    background: #444;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-download.disabled:hover {
    transform: none;
    background: #444;
}

/* Abas de navegação */
.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--borda-container);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--cor-texto-secundaria);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-button:hover {
    color: white;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lista de plataformas */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(136, 14, 6, 0.1);
    border: 1px solid rgba(136, 14, 6, 0.3);
    padding: 18px 22px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.platform-item[data-key="legacy"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borda-container);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.platform-info i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.platform-item[data-key="legacy"] .platform-info i {
    color: #888;
}

.platform-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.platform-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cor-texto-secundaria);
}

.platform-actions {
    display: flex;
    gap: 10px;
}

.btn-platform {
    padding: 10px 20px;
    font-size: 0.9rem;
    flex-grow: 0;
    flex-basis: auto;
    max-width: none;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borda-container);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.faq-item[open] {
    background: rgba(136, 14, 6, 0.15);
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.faq-question::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 10px 20px 20px 20px;
    border-top: 1px solid var(--borda-container);
    color: var(--cor-texto-secundaria);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 10px;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer code {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    color: #ffaa00;
    border: 1px solid var(--borda-container);
    display: block;
    white-space: pre-wrap;
    margin-top: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-title {
    margin-top: 0;
    font-size: 1.5rem;
    color: white;
}

.modal-text {
    line-height: 1.6;
    color: var(--cor-texto-secundaria);
    margin: 15px 0;
}

.modal-text strong {
    color: white;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-actions .btn-download {
    flex-grow: 0;
    flex-basis: auto;
    max-width: none;
}

.btn-close-modal {
    background: #4a4d55;
    box-shadow: none;
}

.btn-close-modal:hover {
    background: #5a5e68;
}

/* Social Section (mantida do original) */
.social-section {
    margin-top: 40px;
}

.social-section-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: white;
    font-size: 1.5rem;
}

.social-cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: all 0.3s ease;
    width: 220px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-icon-large {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.social-icon-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-icon-facebook {
    color: #1877F2;
}

.social-icon-whatsapp {
    color: #25D366;
}

.social-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.social-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-social {
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(136, 14, 6, 0.3);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(136, 14, 6, 0.4);
    color: white;
}

footer {
    margin-top: auto;
    background: #2e1a1ae6;
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 80%;
    }

    .rec-title {
        font-size: 1.5rem;
    }

    .platform-item {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-actions {
        flex-direction: column;
    }

    .btn-platform {
        width: 100%;
    }

    .tabs-nav {
        justify-content: center;
    }

    .social-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .social-card {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .rec-actions {
        flex-direction: column;
    }

    .btn-download {
        max-width: 100%;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn-download {
        width: 100%;
    }
}
