/* =========================================
   Arquivo: filex/css/geral.css
   XONA — PÁGINA GERAL
   Requer main.css carregado antes.
   ========================================= */

/* =========================================
   BODY GERAL — sem sidebar direita
   ========================================= */
body.geral-body .main-content {
    margin-right: 0 !important;
    max-width: none !important;
}

.general-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 24px;
    margin-top: 7px;
}

/* =========================================
   HEADER DA PÁGINA
   ========================================= */
.general-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.general-title-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.general-title-block p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.general-search {
    /* usa .search-pill (main.css) */
    min-width: 280px;
}

/* =========================================
   SECÇÕES
   ========================================= */
.general-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.general-section.hidden { display: none; }

.general-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.general-section-header i {
    color: var(--accent-pink);
    font-size: 14px;
}
.general-section-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =========================================
   GRID DE CARDS — 3 colunas (desktop)
   ========================================= */
.general-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 1400px) {
    .general-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   CARD
   ========================================= */
.general-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
    min-width: 0;
}
.general-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-2px);
}

/* Card destrutivo (Sair, Encerrar conta) */
.general-card.danger:hover {
    border-color: #ef4444;
}
.general-card.danger:hover .general-card-arrow {
    color: #ef4444;
}

.general-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: #fff;
}

/* Cores dos ícones */
.icon-pink {
    background: rgba(240, 36, 110, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(240, 36, 110, 0.3);
}
.icon-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.icon-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.icon-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
}
.icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.general-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.general-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.general-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.general-card-arrow {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.general-card:hover .general-card-arrow {
    color: var(--accent-pink);
    transform: translateX(3px);
}

/* =========================================
   OCULTAR OPÇÕES DE CRIADOR PARA USUÁRIOS COMUNS
   (classe .is-creator é adicionada no <body> via JS/PHP)
   ========================================= */
body:not(.is-creator) .creator-only {
    display: none;
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {

    body.geral-body .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .general-page {
        padding: 0 10px 130px;
        gap: 20px;
    }

    .general-top {
        flex-direction: column;
        gap: 12px;
    }
    .general-title-block h1 { font-size: 22px; }
    .general-title-block p { font-size: 12px; }

    .general-search {
        min-width: 0;
        width: 100%;
        padding: 11px 16px;
    }

    /* Grid de cards — 1 coluna no mobile */
    .general-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .general-card {
        padding: 14px 14px;
        gap: 12px;
    }
    .general-card-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .general-card-title { font-size: 13.5px; }
    .general-card-desc { font-size: 11.5px; }
}