/* ===========================================
   CCBready - Layout
   Header, Navigation, Containers, Pages
   =========================================== */

/* ----- Container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow {
    max-width: 800px;
}

.container-xs {
    max-width: 480px;
}

/* ----- Header ----- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.875rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-name {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ----- Page Structure ----- */
.page {
    display: none;
    padding: 1.5rem 0 6rem;
}

.page.active {
    display: block;
}

/* ----- Section Headers ----- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
}

.section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* ----- Back Button ----- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color var(--transition);
}

.back-btn:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ----- FAB (Floating Action Button) ----- */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.fab:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

/* ----- Auth Pages ----- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 50%, var(--primary-100) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* ----- Grid Layouts ----- */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
