/* Fitness Club — Public CSS (supplements style.css) */

/* ── Member portal placeholders ────────────────────────────────── */
.fc-coming-soon {
    text-align: center;
    padding: 80px 24px;
    color: var(--fc-muted);
}
.fc-coming-soon .fc-coming-icon { font-size: 3rem; margin-bottom: 16px; }
.fc-coming-soon h2 { font-size: 1.5rem; color: var(--fc-dark); margin-bottom: 10px; }

/* ── Class timetable (placeholder) ────────────────────────────── */
.fc-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    overflow-x: auto;
}
.fc-schedule-day { background: var(--fc-bg); border-radius: var(--fc-radius); padding: 14px 10px; min-width: 120px; }
.fc-schedule-day-label { font-size: 12px; font-weight: 700; text-align: center;
    color: var(--fc-primary); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.fc-session-slot {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-left: 3px solid var(--fc-primary);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 12px;
}
.fc-session-time { font-weight: 700; color: var(--fc-dark); }
.fc-session-name { color: var(--fc-text); }

/* ── Notification bar ───────────────────────────────────────────── */
.fc-notif-bar {
    background: var(--fc-primary);
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.fc-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px;
    color: var(--fc-muted); padding: 14px 0; }
.fc-breadcrumb a { color: var(--fc-primary); text-decoration: none; }
.fc-breadcrumb a:hover { text-decoration: underline; }
.fc-breadcrumb-sep { color: var(--fc-border); }

/* ── Pagination ─────────────────────────────────────────────────── */
.fc-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.fc-page-link { padding: 8px 14px; border: 1px solid var(--fc-border); border-radius: 6px;
    font-size: 14px; font-weight: 600; color: var(--fc-primary); text-decoration: none; transition: .15s; }
.fc-page-link:hover, .fc-page-link.active { background: var(--fc-primary); color: #fff !important;
    border-color: var(--fc-primary); }

/* ══════════════════════════════════════════════════════════════
   PHASE 10 — MEMBER PORTAL
══════════════════════════════════════════════════════════════ */

/* ── Portal wrap ─────────────────────────────────────────────── */
.fc-portal-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: 60vh;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
    margin: 24px 0;
}
@media (max-width: 768px) {
    .fc-portal-wrap { grid-template-columns: 1fr; }
}

/* ── Sidebar nav ─────────────────────────────────────────────── */
.fc-portal-nav {
    background: var(--fc-dark,#111827);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}
.fc-portal-member-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 12px;
}
.fc-portal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.fc-portal-member-name { color: #fff; font-weight: 700; font-size: 14px; }
.fc-portal-member-num  { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }
.fc-portal-nav-links   { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.fc-portal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.fc-portal-nav-link:hover, .fc-portal-nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.fc-portal-logout { margin-top: auto; color: rgba(255,100,100,.8); }
.fc-portal-logout:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }

/* ── Main content area ────────────────────────────────────────── */
.fc-portal-main    { padding: 28px 32px; background: #F9FAFC; }
.fc-portal-section { max-width: 860px; }
.fc-portal-h2 { font-size: 22px; font-weight: 800; color: var(--fc-dark,#111827); margin: 0 0 20px; }
.fc-portal-h3 { font-size: 16px; font-weight: 700; color: var(--fc-dark,#111827); margin: 24px 0 12px; }

/* ── Membership card ──────────────────────────────────────────── */
.fc-portal-membership-card {
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--fc-primary,#1A56A0) 0%, #0E3A70 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,86,160,.3);
}
.fc-card-expired { background: linear-gradient(135deg, #595959 0%, #333 100%); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.fc-mc-gym   { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.fc-mc-plan  { font-size: 20px; font-weight: 800; margin: 4px 0; }
.fc-mc-num   { font-size: 13px; opacity: .8; font-family: monospace; }
.fc-mc-right { text-align: right; }
.fc-mc-expiry-label { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .8px; }
.fc-mc-expiry { font-size: 18px; font-weight: 700; }
.fc-mc-days   { font-size: 12px; opacity: .8; }
.fc-mc-days-warn { color: #FFD700; font-weight: 700; opacity: 1; }
.fc-mc-no-plan { font-size: 13px; opacity: .7; }

/* ── Quick stats ─────────────────────────────────────────────── */
.fc-portal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.fc-portal-stat {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.fc-ps-icon  { font-size: 22px; display: block; }
.fc-ps-val   { font-size: 28px; font-weight: 800; color: var(--fc-primary,#1A56A0); display: block; }
.fc-ps-label { font-size: 12px; color: var(--fc-muted,#6B7280); }

/* ── Booking items ────────────────────────────────────────────── */
.fc-portal-bookings-list { display: flex; flex-direction: column; gap: 10px; }
.fc-portal-booking-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    border-left: 4px solid var(--fc-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.fc-pbi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fc-pbi-class  { font-size: 15px; font-weight: 700; color: var(--fc-dark,#111827); }
.fc-pbi-time   { font-size: 12px; color: var(--fc-muted,#6B7280); margin-top: 3px; }
.fc-pbi-room   { font-size: 12px; color: var(--fc-muted,#6B7280); }
.fc-pbi-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fc-pbi-qr-details { margin-top: 10px; }
.fc-pbi-qr-details summary { cursor: pointer; font-size: 13px; color: var(--fc-primary,#1A56A0); }
.fc-ladies-badge { font-size: 12px; margin-left: 4px; }
.fc-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}
.fc-checkin-time { font-size: 11px; color: #1A7A4A; }

/* ── Portal filter tabs ───────────────────────────────────────── */
.fc-portal-filter-tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 2px solid #E5E7EB; }
.fc-filter-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-muted,#6B7280);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.fc-filter-tab.active { color: var(--fc-primary,#1A56A0); border-bottom-color: var(--fc-primary,#1A56A0); }

/* ── Invoices ─────────────────────────────────────────────────── */
.fc-portal-invoices { display: flex; flex-direction: column; gap: 6px; }
.fc-portal-invoice-row {
    background: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.fc-inv-num    { font-size: 13px; }
.fc-inv-amount { font-weight: 700; color: var(--fc-dark,#111827); }
.fc-inv-date   { font-size: 12px; color: var(--fc-muted,#6B7280); }

/* ── Empty state ─────────────────────────────────────────────── */
.fc-portal-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fc-muted,#6B7280);
}
.fc-pe-icon { font-size: 48px; margin-bottom: 14px; }

/* ── Portal forms ─────────────────────────────────────────────── */
.fc-portal-form-wrap {
    max-width: 460px;
    margin: 40px auto;
    padding: 36px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.fc-login-logo { text-align: center; margin-bottom: 24px; }
.fc-portal-form-wrap h2 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 24px; color: var(--fc-dark,#111827); }
.fc-portal-form { display: flex; flex-direction: column; gap: 0; }
.fc-pf-group { margin-bottom: 16px; }
.fc-pf-group label { display: block; font-size: 13px; font-weight: 700; color: var(--fc-dark,#111827); margin-bottom: 5px; }
.fc-pf-group input,
.fc-pf-group select,
.fc-pf-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fc-dark,#111827);
    box-sizing: border-box;
    transition: border-color .15s;
}
.fc-pf-group input:focus,
.fc-pf-group select:focus {
    outline: none;
    border-color: var(--fc-primary,#1A56A0);
    box-shadow: 0 0 0 3px rgba(26,86,160,.1);
}
.fc-pf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fc-pf-remember { display: flex; justify-content: space-between; align-items: center; }
.fc-pf-remember label { font-size: 13px; font-weight: 400; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fc-forgot-link { font-size: 13px; color: var(--fc-primary,#1A56A0); text-decoration: none; }
.fc-forgot-link:hover { text-decoration: underline; }
.fc-pf-login-link,
.fc-pf-signup-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--fc-muted,#6B7280); }
.fc-pf-terms label { font-size: 12px; font-weight: 400; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.fc-btn-full { width: 100%; }

/* ── Notices ─────────────────────────────────────────────────── */
.fc-portal-success {
    background: #D1FAE5;
    color: #065F46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 4px solid #059669;
}
.fc-portal-error {
    background: #FEE2E2;
    color: #7F1D1D;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 4px solid #DC2626;
}
.fc-portal-error-box {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── Timetable ───────────────────────────────────────────────── */
.fc-timetable-wrap { margin: 24px 0; }
.fc-tt-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.fc-tt-range { font-size: 16px; font-weight: 800; color: var(--fc-dark,#111827); }
.fc-tt-scroll { overflow-x: auto; }
.fc-tt-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 10px;
    min-width: 700px;
}
.fc-tt-day {
    background: #F9FAFC;
    border-radius: 10px;
    overflow: hidden;
}
.fc-tt-today .fc-tt-day-hdr { background: var(--fc-primary,#1A56A0); }
.fc-tt-today .fc-tt-day-name,
.fc-tt-today .fc-tt-day-num { color: #fff; }
.fc-tt-day-hdr { padding: 10px; text-align: center; background: #F1F5F9; }
.fc-tt-day-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--fc-muted,#6B7280); }
.fc-tt-day-num  { font-size: 22px; font-weight: 800; color: var(--fc-dark,#111827); }
.fc-tt-empty    { padding: 12px; text-align: center; color: var(--fc-muted,#6B7280); font-size: 12px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.fc-tt-slot {
    margin: 6px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid var(--fc-primary,#1A56A0);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.fc-tt-time    { font-size: 12px; font-weight: 700; color: var(--fc-dark,#111827); }
.fc-tt-class   { font-size: 12px; font-weight: 600; color: var(--fc-text,#374151); margin-top: 3px; }
.fc-tt-trainer { font-size: 11px; color: var(--fc-muted,#6B7280); margin-top: 2px; }
.fc-tt-slots   { font-size: 11px; color: #1A7A4A; margin-top: 4px; }
.fc-tt-full    { color: #B91C1C; }
.fc-tt-ladies  { font-size: 10px; margin-left: 3px; }
.fc-tt-book-btn { margin-top: 7px; font-size: 11px; padding: 4px 10px; }

/* ── Portal booking result toast ─────────────────────────────── */
.fc-toast-portal {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    animation: fc-toast-in .2s ease;
}
@keyframes fc-toast-in { from { opacity:0; transform:translateX(-50%) translateY(10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ── Buttons (portal xs variant) ─────────────────────────────── */
.fc-btn-xs { padding: 4px 10px; font-size: 11px; }

/* ── QR Scanner ─────────────────────────────────────────────── */
.fc-portal-qr-scanner { max-width: 480px; margin: 24px auto; }
.fc-portal-qr-scanner h2 { margin-bottom: 12px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fc-portal-main { padding: 20px 18px; }
    .fc-portal-membership-card { flex-direction: column; gap: 14px; }
    .fc-mc-right { text-align: left; }
    .fc-portal-stats { grid-template-columns: repeat(3,1fr); }
    .fc-pf-row-2 { grid-template-columns: 1fr; }
    .fc-portal-invoice-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
}
