/* ReelTour Client Portal — shared styles (matches marketing site tokens) */

:root {
    --cream: #2D2926;
    --gold: #9E7C4B;
    --gold-dark: #86693F;
    --warm-gray: #6B625A;
    --bg-base: #FAF8F5;
    --bg-secondary: #F3F0EB;
    --bg-tertiary: #EDE9E3;
    --border: #E0DBD4;
    --surface: #FFFFFF;
}

* { box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-base);
    color: var(--cream);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .headline {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
    margin: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.uppercase-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 600;
}

.text-warm-gray { color: var(--warm-gray); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 60px;
    margin: 1rem auto;
}

/* ——— Nav ——— */
.portal-nav {
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(158, 124, 75, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 24px;
}
.portal-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.portal-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.portal-logo .gold-accent { color: var(--gold); }
.portal-nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.portal-nav-links a { color: var(--warm-gray); }
.portal-nav-links a:hover { color: var(--gold); }
.portal-nav-links a.active { color: var(--cream); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.portal-user-chip {
    font-size: 13px;
    color: var(--warm-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-user-chip .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #5aa864;
}

/* ——— Shell layout ——— */
.portal-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 96px 24px;
}
.portal-hero {
    max-width: 520px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}
.portal-hero h1 { font-size: 40px; line-height: 1.1; margin-bottom: 12px; }
.portal-hero p { color: var(--warm-gray); font-size: 16px; line-height: 1.6; }

/* ——— Cards & surfaces ——— */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.card:hover { border-color: rgba(158, 124, 75, 0.35); }
.card.interactive:hover { box-shadow: 0 8px 24px rgba(158, 124, 75, 0.08); cursor: pointer; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(45, 41, 38, 0.06);
}

/* ——— Forms ——— */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label {
    font-size: 13px;
    letter-spacing: 0.4px;
    font-weight: 600;
    color: var(--cream);
}
.form-row .hint { font-size: 12px; color: var(--warm-gray); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    background: var(--surface);
    color: var(--cream);
    transition: border-color .25s ease, box-shadow .25s ease;
    width: 100%;
    font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(158, 124, 75, 0.12);
}
.form-row textarea { min-height: 96px; resize: vertical; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--cream);
    transition: all .2s ease;
    background: var(--surface);
}
.checkbox-grid label:hover { border-color: var(--gold); }
.checkbox-grid input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.checkbox-grid input[type="checkbox"]:checked + span { color: var(--gold); font-weight: 600; }
.checkbox-grid label:has(input:checked) { border-color: var(--gold); background: rgba(158,124,75,0.05); }

/* ——— Buttons ——— */
.btn-primary, .btn-secondary, .btn-text, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 26px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all .3s ease;
    text-decoration: none;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; box-shadow: 0 4px 14px rgba(158, 124, 75, 0.25); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.btn-secondary { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: #fff; }

.btn-text {
    background: none;
    color: var(--gold);
    padding: 6px 2px;
    border: none;
}
.btn-text:hover { color: var(--gold-dark); }

.btn-danger {
    background: transparent;
    color: #a5554e;
    border-color: rgba(165, 85, 78, 0.3);
}
.btn-danger:hover { background: rgba(165, 85, 78, 0.08); }

/* ——— Status pills ——— */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.submitted   { color: #6B625A; background: rgba(107, 98, 90, 0.1);  border-color: rgba(107, 98, 90, 0.2); }
.pill.in_progress { color: #8a6a2c; background: rgba(158,124,75, 0.12); border-color: rgba(158,124,75, 0.3); }
.pill.review      { color: #5e60c2; background: rgba(94, 96, 194, 0.1);  border-color: rgba(94, 96, 194, 0.25); }
.pill.delivered   { color: #3f7a4b; background: rgba(63, 122, 75, 0.1);  border-color: rgba(63, 122, 75, 0.3); }
.pill.cancelled   { color: #a5554e; background: rgba(165, 85, 78, 0.1);  border-color: rgba(165, 85, 78, 0.25); }

/* ——— Alerts ——— */
.alert {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert.info    { background: rgba(158,124,75, 0.07); border-color: rgba(158,124,75, 0.25); color: var(--cream); }
.alert.success { background: rgba(63, 122, 75, 0.07); border-color: rgba(63, 122, 75, 0.25); color: #2e5e38; }
.alert.error   { background: rgba(165, 85, 78, 0.07); border-color: rgba(165, 85, 78, 0.25); color: #7a3c37; }
.alert.warning { background: rgba(200, 150, 60, 0.08); border-color: rgba(200, 150, 60, 0.3); color: #8a6a2c; }

/* ——— Request card in dashboard list ——— */
.request-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transition: background .2s ease;
    cursor: pointer;
}
.request-row:last-child { border-bottom: none; }
.request-row:hover { background: var(--bg-secondary); }
.request-row .title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.request-row .meta { font-size: 13px; color: var(--warm-gray); }
.request-row .url-chip {
    display: inline-block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* ——— Deliverable grid ——— */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.deliverable-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.deliverable-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(158, 124, 75, 0.12);
}
.deliverable-card .media {
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
    width: 100%;
    object-fit: cover;
}
.deliverable-card video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.deliverable-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.deliverable-card .title { font-weight: 600; font-size: 15px; }
.deliverable-card .submeta { font-size: 12px; color: var(--warm-gray); }
.deliverable-card .actions {
    display: flex; gap: 8px; margin-top: 6px;
}
.deliverable-card .actions .btn-text { font-size: 13px; }

/* ——— Empty state ——— */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--warm-gray);
}
.empty-state h3 { color: var(--cream); font-size: 22px; margin-bottom: 8px; }
.empty-state p { max-width: 420px; margin: 0 auto 24px auto; font-size: 14px; line-height: 1.6; }

/* ——— Misc ——— */
.muted { color: var(--warm-gray); }
.small { font-size: 13px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
    .portal-nav-links { display: none; }
    .portal-hero h1 { font-size: 30px; }
    .auth-card { padding: 28px 22px; }
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: portal-spin 0.8s linear infinite;
}
@keyframes portal-spin { to { transform: rotate(360deg); } }
