/* =============================================================================
   ESTILOS DA ABA DE SÓCIOS DO CLUBE (ÁREA CLIENTE)
   Caminho: front/pages/club/css/socios.css
   ============================================================================= */

.club-socios-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 3rem 0;
    box-sizing: border-box;
}

/* 1. Cartão Virtual de Sócio */
.virtual-member-card-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

@media (max-width: 840px) {
    .virtual-member-card-wrapper {
        grid-template-columns: 1fr;
    }
}

.virtual-member-card {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-club-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.25rem;
}

.card-club-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.card-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
}

.card-middle-row {
    margin: 1.75rem 0;
}

.card-player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-player-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.card-member-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.15rem;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.validity-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
}

.validity-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.card-days-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Painel Lateral do Sócio */
.member-status-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-meta-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(120, 120, 128, 0.08);
}

.meta-item-label {
    color: var(--text-muted);
}

.meta-item-val {
    color: var(--text-main);
    font-weight: 500;
}

/* 2. Painel de Adesão a Sócio (Não-Sócio) */
.socio-subscription-panel {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .socio-subscription-panel {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 2rem;
    }
}

.socio-tag {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
}

.socio-plan-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.85rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    .socio-plan-title {
        font-size: 1.5rem;
    }
}

.socio-plan-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.75rem 0;
}

.socio-perks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perk-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.perk-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.perk-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-main);
}

.perk-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Card de Preço / Adesão */
.socio-pricing-card {
    background: rgba(120, 120, 128, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

@media (max-width: 768px) {
    .socio-pricing-card {
        padding: 1.75rem 1.25rem;
    }
}

.pricing-card-top {
    margin-bottom: 1.5rem;
}

.pricing-period-badge {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.pricing-value-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.pricing-value {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-unit {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-validity-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.pricing-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.pricing-action-wrap {
    margin-bottom: 1rem;
}

.btn-join-socio {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: var(--radius-button);
    box-sizing: border-box;
    cursor: pointer;
}

.pricing-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background: rgba(120, 120, 128, 0.08);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-guarantee-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* 3. Secção de Benefícios */
.membership-benefits-section {
    margin-top: 2rem;
}

.section-title-wrapper {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.35rem 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.benefits-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.benefit-display-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.benefit-display-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background-color: rgba(37, 99, 235, 0.015);
}

.benefit-display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.benefit-display-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-display-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.benefit-display-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.45rem 0;
}

.benefit-display-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* 4. Secção de Termos e Condições / Informação aos Sócios */
.membership-terms-section {
    margin-top: 3rem;
}

.membership-terms-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .membership-terms-card {
        padding: 1.25rem 1.5rem;
    }
}

.membership-terms-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(120, 120, 128, 0.08);
}

.terms-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.membership-terms-content {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    white-space: pre-line;
}

/* 5. Modal de Checkout de Adesão */
.front-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.front-modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.front-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.front-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.front-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-modal-body {
    padding: 1.5rem;
}

.checkout-summary-box {
    background: rgba(120, 120, 128, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.summary-label {
    color: var(--text-muted);
}

.summary-val {
    color: var(--text-main);
}

.summary-line.total-line {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-color);
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.payment-methods-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.payment-method-option.active,
.payment-method-option:hover {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.03);
}

.method-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.front-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(120, 120, 128, 0.02);
}
