/* ========================================= */
/*          PÁGINA DE PARCERIAS              */
/* ========================================= */

.parcerias-page {
    padding: 4rem 0 5rem;
    margin-top: 0;
    min-height: 80vh;
    width: 100%;
    max-width: none;
    background: var(--bg-primary);
}

.page-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

/* ========================================= */
/*           GRELHA - 3 COLUNAS              */
/* ========================================= */

.parcerias-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .parcerias-grid-page {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 680px) {
    .parcerias-grid-page {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        padding: 0 1.25rem;
    }
}

/* ========================================= */
/*           DESIGN DOS CARTÕES              */
/* ========================================= */

.parceria-card {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: var(--bg-card, #232b30);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.parceria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover, rgba(255,255,255,0.12));
}

/* Imagem de fundo do cartão */
.card-bg-image {
    position: absolute;
    top: 0; right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 300ms ease;
}

.parceria-card:hover .card-bg-image {
    opacity: 0.28;
}

/* Botão de informação (ⓘ) */
.card-info-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-default, rgba(255,255,255,0.08));
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--text-muted, #71717a);
    cursor: pointer;
    transition: all 150ms ease;
}

.card-info-btn:hover {
    background: rgba(95, 74, 30, 0.15);
    border-color: rgba(95, 74, 30, 0.3);
    color: var(--text-primary, #f4f4f5);
}

/* Logótipo */
.card-logo-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1.75rem 0.75rem;
}

.card-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-surface, #1f262a);
    border: 2px solid var(--border-default, rgba(255,255,255,0.08));
    padding: 12px;
    flex-shrink: 0;
}

.card-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Descrição */
.card-desc {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1.75rem;
    color: var(--text-primary, #f4f4f5);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.5;
    flex-grow: 1;
}

/* Linha de informação (Depósito Mín. / Bónus / Código) */
.card-info-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    padding: 0 1.25rem;
    margin-bottom: 0.6rem;
}

.card-info-box {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.card-info-box:first-child {
    border-radius: var(--radius-sm, 8px) 0 0 var(--radius-sm, 8px);
}

.card-info-box:last-child {
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
}

.card-info-box:only-child {
    border-radius: var(--radius-sm, 8px);
}

.card-info-label {
    font-size: 0.65rem;
    color: var(--text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-info-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary, #f4f4f5);
}

/* Linha de badges */
.card-badges {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem 1.25rem;
}

.badge {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-new {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-18 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
    color: var(--text-muted, #71717a);
}

/* ========================================= */
/*       MODAL - OVERLAY E CAIXA             */
/* ========================================= */

.parceria-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.parceria-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.parceria-modal {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-elevated, #1a2024);
    border: 1px solid var(--border-default, rgba(255,255,255,0.08));
    border-radius: var(--radius-xl, 20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(12px);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.parceria-modal-overlay.active .parceria-modal {
    transform: scale(1) translateY(0);
}

/* Botão de fechar */
.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--text-muted, #71717a);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 150ms ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Conteúdo do modal */
.modal-content {
    padding: 2.25rem 1.75rem 1.75rem;
}

/* Logótipo do modal */
.modal-logo-wrap {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-logo {
    max-width: 220px;
    max-height: 80px;
    object-fit: contain;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #f4f4f5);
}

/* Badges do modal (KYC, VPN, +18) */
.modal-badges {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.modal-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.modal-badge.badge-ok {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.modal-badge.badge-no {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Grelha de métodos */
.modal-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-methods-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-methods-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.modal-methods-title svg {
    color: var(--text-muted, #71717a);
    opacity: 0.5;
}

.modal-method-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #a1a1aa);
    padding: 0.2rem 0;
}

/* Ícone do método */
.method-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Caixas de informação do modal */
.modal-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
    border-radius: var(--radius-md, 12px);
    padding: 0.85rem;
    text-align: center;
    margin-bottom: 0.6rem;
}

.modal-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.modal-info-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #f4f4f5);
}

/* Botão de ação (CTA) */
.modal-cta-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    background: var(--text-primary, #f4f4f5);
    color: var(--bg-primary, #151a1c);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-md, 12px);
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
}

.modal-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Scrollbar do modal */
.parceria-modal::-webkit-scrollbar {
    width: 4px;
}

.parceria-modal::-webkit-scrollbar-track {
    background: transparent;
}

.parceria-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ========================================= */
/*              RESPONSIVO                   */
/* ========================================= */

@media (max-width: 768px) {
    .parcerias-page {
        padding: 3rem 0;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .parceria-card {
        min-height: 300px;
    }

    .card-logo-wrap {
        padding: 1.5rem 1.25rem 0.5rem;
    }

    .card-logo {
        width: 76px;
        height: 76px;
    }

    .card-desc {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .card-info-row {
        padding: 0 1rem;
    }

    .card-badges {
        padding: 0.5rem 1rem 1rem;
    }

    /* Modal */
    .parceria-modal {
        width: 95%;
        max-height: 85vh;
    }

    .modal-content {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .modal-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-info-row {
        flex-direction: column;
        gap: 0;
    }

    .card-info-box {
        border-radius: 0 !important;
    }

    .card-info-box:first-child {
        border-radius: var(--radius-sm, 8px) var(--radius-sm, 8px) 0 0 !important;
    }

    .card-info-box:last-child {
        border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px) !important;
    }

    .card-info-box:only-child {
        border-radius: var(--radius-sm, 8px) !important;
    }
}
