/* OurEventsGrid - Main Stylesheet */
:root {
    --gold: #C9A84C;
    --gold-light: #F0D98A;
    --gold-dark: #9A7A2E;
    --cream: #FAF7F2;
    --white: #FFFFFF;
    --charcoal: #2C2C2C;
    --grey: #6B6B6B;
    --grey-light: #E8E8E8;
    --grey-bg: #F5F4F2;
    --success: #2D7D46;
    --success-bg: #EAF5EE;
    --danger: #C0392B;
    --danger-bg: #FDEDEC;
    --warning: #D4881A;
    --warning-bg: #FEF5E7;
    --info: #2471A3;
    --info-bg: #EBF5FB;
    --sidebar-width: 260px;
    --radius: 12px;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--grey-bg);
    color: var(--charcoal);
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--charcoal);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-icon { font-size: 24px; }
.brand-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--gold-light); }

.event-context {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(201,168,76,0.1);
}
.event-name { font-weight: 600; font-size: 14px; color: var(--gold-light); }
.event-date { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.event-date--tbc { color: var(--gold); }

.nav-links { list-style: none; padding: 12px 0; flex: 1; }
.nav-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
}
.nav-links li a:hover, .nav-links li a.active {
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.eco-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.eco-link { display: inline-block; font-size: 11px; color: rgba(255,255,255,0.5); margin-right: 8px; text-decoration: none; }
.eco-link:hover { color: var(--gold-light); }
.user-info { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; align-items: center; }
.logout-link { color: var(--gold); text-decoration: none; font-size: 12px; }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 32px; max-width: calc(100vw - var(--sidebar-width)); }

/* ===== PAGE HEADER ===== */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-title { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--charcoal); }
.wedding-title { font-size: 32px; }
.page-subtitle { color: var(--grey); margin-top: 4px; }
.section-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.section-link { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--gold-dark); text-decoration: none; }

/* ===== COUNTDOWN BANNER ===== */
.countdown-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.countdown-banner--tbc { background: linear-gradient(135deg, #555 0%, #333 100%); }
.countdown-banner--urgent { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
.countdown-number { font-family: var(--font-serif); font-size: 48px; font-weight: 700; line-height: 1; }
.countdown-label { font-size: 16px; opacity: 0.9; }
.countdown-date { margin-left: auto; font-size: 14px; opacity: 0.85; }

/* ===== FINANCIAL DASHBOARD ===== */
.financial-dashboard { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.finance-card {
    background: var(--grey-bg);
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid var(--grey-light);
}
.finance-card--budget { border-color: var(--info); }
.finance-card--saved { border-color: var(--success); }
.finance-card--income { border-color: var(--gold); }
.finance-card--spent { border-color: var(--warning); }
.finance-card--needed { border-color: var(--danger); }
.finance-card--clear { border-color: var(--success); background: var(--success-bg); }
.finance-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey); margin-bottom: 6px; }
.finance-value { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--charcoal); }
.finance-sub { font-size: 11px; color: var(--grey); margin-top: 4px; }
.finance-progress { height: 4px; background: var(--grey-light); border-radius: 2px; margin: 6px 0; overflow: hidden; }
.progress-bar { height: 100%; background: var(--success); border-radius: 2px; transition: width 0.3s; }

/* ===== QUICK STATS ===== */
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--charcoal);
    transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-family: var(--font-serif); font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--grey); margin-top: 2px; }
.stat-breakdown { font-size: 11px; color: var(--grey); margin-top: 6px; }
.stat-accepted { color: var(--success); }
.stat-pending { color: var(--warning); }
.stat-declined { color: var(--danger); }

/* ===== EVENTS GRID ===== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--charcoal);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card-header { display: flex; justify-content: space-between; align-items: center; }
.event-card-type { font-size: 12px; color: var(--grey); }
.event-card-name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.event-card-partners { color: var(--grey); font-size: 14px; }
.event-card-date, .event-card-location { font-size: 13px; color: var(--grey); }
.event-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--grey-light); }
.stat { text-align: center; }
.stat .stat-value { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.stat .stat-label { font-size: 10px; color: var(--grey); }

/* ===== STATUS BADGES ===== */
.status-planning { background: var(--info-bg); color: var(--info); border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.status-confirmed { background: var(--success-bg); color: var(--success); border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.status-complete { background: var(--grey-light); color: var(--grey); border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 600; }

/* ===== FORMS ===== */
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 800px; }
.form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--grey-light); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 16px; color: var(--charcoal); }
.form-section--highlight { background: var(--cream); border-radius: 10px; padding: 16px; margin-bottom: 28px; }
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.form-control {
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s;
    width: 100%;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-hint { font-size: 12px; color: var(--grey); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.15s; font-family: var(--font-sans);
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--grey); border: 1px solid var(--grey-light); }
.btn-ghost:hover { background: var(--grey-bg); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-white { background: white; color: var(--charcoal); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(192,57,43,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 40px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--grey); margin-bottom: 24px; }

/* ===== DASHBOARD SECTION ===== */
.dashboard-section { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.payment-list { display: flex; flex-direction: column; gap: 12px; }
.payment-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--grey-bg); border-radius: 8px; flex-wrap: wrap; gap: 8px; }
.payment-name { font-weight: 600; }
.payment-detail { font-size: 13px; color: var(--grey); }

/* ===== QUICK ACTIONS ===== */
.quick-actions { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 12px; background: var(--grey-bg); border-radius: 10px;
    text-decoration: none; color: var(--charcoal); font-size: 13px; font-weight: 500;
    text-align: center; transition: all 0.15s;
}
.action-btn:hover { background: var(--cream); color: var(--gold-dark); transform: translateY(-2px); }
.action-icon { font-size: 28px; }

/* ===== FAMILY IMPORT ===== */
.family-import-list { display: flex; flex-direction: column; gap: 8px; }
.family-import-item {
    background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px;
    padding: 12px 16px; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: center;
    transition: border-color 0.15s;
}
.family-import-item:hover { border-color: var(--gold); background: var(--cream); }
.family-import-item span { font-size: 12px; color: var(--grey); }

/* ===== BUDGET PREVIEW ===== */
.budget-preview { background: var(--cream); border: 1px solid var(--gold-light); border-radius: 8px; padding: 12px 16px; margin-top: 8px; }
.budget-preview-total { font-size: 14px; color: var(--charcoal); }

/* ===== AUTH ===== */
.auth-body { background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 420px; padding: 24px; }
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.auth-brand-name { font-family: var(--font-serif); font-size: 28px; color: var(--gold-light); }
.auth-brand-tagline { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 6px; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 4px; }
.auth-sub { color: var(--grey); font-size: 13px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

/* ===== PUBLIC PAGES ===== */
.public-body { background: var(--cream); margin: 0; display: block; }
.public-header { background: var(--charcoal); padding: 16px 24px; }
.public-brand { color: var(--gold-light); font-family: var(--font-serif); font-size: 18px; }
.public-main { max-width: 700px; margin: 40px auto; padding: 0 24px; }
.public-footer { text-align: center; padding: 32px; font-size: 12px; color: var(--grey); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 16px; }
    .form-grid--2 { grid-template-columns: 1fr; }
    .finance-grid { grid-template-columns: 1fr 1fr; }
    .quick-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== VENUE SEARCH ===== */
.venue-search-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.venue-search-grid { display: flex; flex-direction: column; gap: 28px; }

.venue-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}
.optional { font-weight: 400; color: var(--grey); font-size: 12px; }

/* Venue type grid */
.venue-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.venue-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    background: var(--grey-bg);
}
.venue-type-option input { display: none; }
.venue-type-option:hover { border-color: var(--gold); background: var(--cream); }
.venue-type-option.selected { border-color: var(--gold); background: linear-gradient(135deg, #FAF7F2, #F5EDD8); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.vt-emoji { font-size: 26px; }
.vt-label { font-size: 11px; font-weight: 600; color: var(--charcoal); line-height: 1.3; }

/* Region select */
.venue-select-group { display: flex; flex-direction: column; gap: 10px; }
.venue-select, .venue-input, .venue-textarea {
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s;
    width: 100%;
}
.venue-select:focus, .venue-input:focus, .venue-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.venue-textarea { resize: vertical; }

/* Half-width fields */
.venue-field--half-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Pill selectors */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid var(--grey-light);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--grey-bg);
    white-space: nowrap;
}
.pill input { display: none; }
.pill:hover { border-color: var(--gold); background: var(--cream); }
.pill--active { border-color: var(--gold); background: var(--gold); color: var(--white); }

/* Search footer */
.venue-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--grey-light);
    flex-wrap: wrap;
    gap: 16px;
}
.ai-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grey);
    font-size: 13px;
}
.ai-badge-icon { font-size: 18px; }

/* ===== VENUE RESULTS ===== */
.venue-results { margin-top: 8px; }
.venue-results-header { margin-bottom: 24px; }
.venue-results-header h2 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 6px; }
.venue-results-sub { color: var(--grey); font-size: 14px; }

.venue-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.venue-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--gold);
    transition: box-shadow 0.15s;
}
.venue-card:hover { box-shadow: var(--shadow-lg); }

.venue-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.venue-card-num {
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.venue-card-main { flex: 1; }
.venue-card-name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.venue-card-location { color: var(--grey); font-size: 13px; }
.venue-card-price {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
    background: var(--cream);
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.venue-card-why {
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 14px;
    font-style: italic;
}

.venue-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.venue-meta-tag {
    background: var(--grey-bg);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--charcoal);
}
.venue-search-hint {
    cursor: help;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.venue-features li { font-size: 13px; color: var(--charcoal); padding-left: 20px; position: relative; }
.venue-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.venue-consider {
    display: flex;
    gap: 10px;
    background: var(--warning-bg);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--charcoal);
    margin-bottom: 18px;
}
.venue-consider-icon { flex-shrink: 0; }

.venue-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tips box */
.venue-tips {
    background: linear-gradient(135deg, var(--cream), #F0E8D0);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.venue-tips-title { font-family: var(--font-serif); font-size: 18px; margin-bottom: 14px; }
.venue-tips-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.venue-tips-list li { font-size: 14px; padding-left: 20px; position: relative; }
.venue-tips-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

.venue-search-again { text-align: center; padding: 16px 0; color: var(--grey); font-size: 14px; }

/* Nav badge + divider */
.nav-badge {
    background: var(--gold);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
.nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 20px; }

/* Save toast */
.save-toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--charcoal);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 9999;
}
.save-toast--visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .venue-type-grid { grid-template-columns: repeat(3, 1fr); }
    .venue-search-footer { flex-direction: column; align-items: stretch; }
    .venue-card-header { flex-wrap: wrap; }
    .venue-card-price { margin-left: auto; }
}

.action-btn--ai { border: 2px solid var(--gold-light); position: relative; }
.action-btn--ai:hover { background: linear-gradient(135deg, var(--cream), #F5EDD8); color: var(--gold-dark); }
.action-ai-badge {
    position: absolute; top: 6px; right: 6px;
    background: var(--gold); color: var(--white);
    font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 6px;
}
