/* ==================== HEADER DA PÁGINA ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.page-subtitle {
    color: var(--gray-600);
    margin: 0;
}

/* ==================== SEÇÕES ==================== */
.communities-section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--yellow-500), var(--yellow-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.section-header h2 {
    margin: 0;
    color: var(--gray-900);
}

/* ==================== COMUNIDADES PENDENTES ==================== */
.pending-communities {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: start;
    transition: var(--transition);
}

.community-card.pending {
    border: 2px solid var(--yellow-200);
    background: linear-gradient(to bottom, #fffef0, white);
}

.community-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Ícone da Comunidade */
.community-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-icon i {
    font-size: 2rem;
    color: white;
}

/* Informações da Comunidade */
.community-info {
    flex: 1;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.community-header h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.community-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.community-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.community-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.community-meta i {
    color: var(--emerald-600);
}

/* Ações da Comunidade */
.community-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-reject {
    background: white;
    color: var(--red-600);
    border: 1px solid var(--red-300);
    padding: 0.75rem 1.5rem;
}

.btn-reject:hover {
    background: var(--red-50);
    border-color: var(--red-400);
}

.btn-approve {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    padding: 0.75rem 1.5rem;
}

.btn-approve:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

/* ==================== COMUNIDADES APROVADAS (GRID) ==================== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.community-card-small {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card-small:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.community-card-icon {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-card-icon i {
    font-size: 3rem;
    color: white;
}

.community-card-content {
    padding: 1.5rem;
}

.community-card-content h3 {
    margin: 0 0 0.75rem 0;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.community-card-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.community-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.member-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.member-count i {
    color: var(--emerald-600);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .community-card {
        flex-direction: column;
    }

    .community-actions {
        width: 100%;
    }

    .community-actions .btn {
        flex: 1;
    }

    .communities-grid {
        grid-template-columns: 1fr;
    }

    .community-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .community-actions .btn {
        width: 100%;
    }
}