﻿/* =========================
   ACCOUNT PAGE
   ========================= */

.account-page {
    background-color: #f5e6c8; 
    padding: 60px 100px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Hero */
.account-hero {
    margin: 0 0 32px;
}

    .account-hero h1 {
        font-size: 2.3rem;
        font-weight: 800;
        margin: 0 0 0.4rem;
        color: #2f2b25;
    }

    .account-hero p {
        margin: 0;
        max-width: 1300px;
        line-height: 1.5;
        color: #443a32;
    }

/* Main 2-column layout */
.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 32px;
}

/* Generic card */
.account-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* PROFILE CARD */
.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.initials-circle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background-color: #315a35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.account-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.account-tagline {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Definition list (details) */
.account-details {
    margin: 0 0 18px;
}

.detail-row {
    display: grid;
    grid-template-columns: 130px minmax(0,1fr);
    column-gap: 24px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row dt {
        font-weight: 600;
        color: #555;
    }

    .detail-row dd {
        margin: 0;
        color: #333;
    }

/* Profile actions */
.account-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}


/* BOOKINGS CARD */
.account-bookings-header h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.account-bookings-header p {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.95rem;
}

/* Table */
.account-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 18px;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .account-table th,
    .account-table td {
        padding: 10px 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .account-table th {
        font-weight: 600;
        color: #555;
        background-color: #faf7f0;
    }

    .account-table tr:last-child td {
        border-bottom: none;
    }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #e0f2e4;
    color: #315a35;
}

/* CTA at bottom */
.account-bookings-cta {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

    .account-bookings-cta p {
        margin: 0;
    }

/* Logout button under the two-column layout */
.account-logout {
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
}

.account-logout-btn {
    min-width: 160px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1023px) {
    .account-page {
        padding: 40px 24px;
    }

    .account-layout {
        grid-template-columns: 1fr; /* stack profile + bookings */
    }

    .account-bookings-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .account-page {
        padding: 32px 16px;
    }

    .account-hero h1 {
        font-size: 1.9rem;
    }

    .detail-row {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .account-header {
        flex-direction: row;
        align-items: center;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .account-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .account-bookings-cta {
        align-items: stretch;
    }

        .account-bookings-cta .btn {
            width: 100%;
            justify-content: center;
        }

    /* Logout full-width-ish on mobile */
    .account-logout {
        margin-top: 24px;
    }

    .account-logout-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
