/* ─── Design tokens ───────────────────────────────────────────── */
:root {
    --navy:        #1d3557;
    --navy-dark:   #16324f;
    --navy-light:  #e8eef4;
    --text-muted:  #6b7280;
    --bg:          #f3f4f6;
    --white:       #ffffff;
    --success:     #198754;
    --radius-card: 14px;
    --radius-input: 8px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* ─── Global reset ────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: Arial, sans-serif;
    color: #1f2937;
}

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.card-img-top {
    border-top-left-radius: var(--radius-card);
    border-top-right-radius: var(--radius-card);
}

/* ─── Form controls ───────────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: var(--radius-input);
    font-size: 14px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgba(29, 53, 87, 0.2);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
    border-radius: var(--radius-input);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
}

.btn-outline-primary {
    color: var(--navy);
    border-color: var(--navy);
    border-radius: var(--radius-input);
}

.btn-outline-primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
}

/* ─── Auth pages (centered card layout) ──────────────────────── */
.auth-page-container {
    min-height: calc(100vh - 66px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.auth-form label {
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 6px;
    display: block;
}

.auth-form .btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

.switch-text {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #4b5563;
}

.switch-text a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 13px;
    text-align: right;
    margin-top: 4px;
}

.forgot-password a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Profile page ────────────────────────────────────────────── */
.profile-header {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    margin-bottom: 28px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-circle img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-stat {
    text-align: center;
    padding: 12px 16px;
    background: var(--navy-light);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-stat:hover {
    background: #d0dcea;
}

.stat-active {
    background: var(--navy) !important;
}

.stat-active .stat-value,
.stat-active .stat-label {
    color: var(--white) !important;
}


.profile-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.profile-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Listing cards ───────────────────────────────────────────── */
.listing-card {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--white);
}

.wl-status-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.listing-card .listing-img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.listing-img-placeholder {
    height: 160px;
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #aab4c0;
    flex-shrink: 0;
}

.listing-price {
    color: var(--success);
    font-weight: 700;
    font-size: 1.05rem;
}

.category-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: var(--navy-light);
    color: var(--navy);
    font-weight: 600;
}

/* ─── Section headings ────────────────────────────────────────── */
.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy-light);
}

/* ─── Empty state ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ─── Wishlist popup ───────────────────────────────────────────── */
.wishlist-popup {
    position: fixed;
    z-index: 99999;
    min-width: 210px;
    font-size: 0.9rem;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wishlist-popup .form-check-label {
    cursor: pointer;
}

.wishlist-popup .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}


body {
    background-color: #f3f4f6;
    color: #1f2937;
}

.page-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-card h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #1d3557;
}

.subtitle {
    text-align: center;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    margin-bottom: 8px;
    margin-top: 12px;
    font-weight: 600;
}

.auth-form input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.auth-form input:focus {
    border-color: #1d3557;
}

.forgot-password {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    text-align: center;
}

.forgot-password a {
    color: #1d3557;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.helper-text {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.auth-form input[type="submit"],
.auth-form button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #1d3557;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.auth-form input[type="submit"]:hover,
.auth-form button:hover {
    background-color: #16324f;
}

/* ─── Wishlist Header Controls ─────────────────────────────────── */
.accordion-header .header-controls {
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
    right: 5.25rem; /* Move further left from chevron (+20px) */
}

.accordion-header .wl-sort-select {
    border-radius: 4px;
    padding-right: 1.5rem !important;
    background-position: right 0.4rem center;
    background-size: 8px 8px;
    background-color: #ffffff !important; /* Force white background */
    color: #212529 !important; /* Force dark text */
    border: 1px solid #dee2e6;
}

/* Light mode (collapsed) */
.accordion-button.collapsed ~ .header-controls .wl-sort-select {
    border-color: #dee2e6;
}

/* Darker/Blue mode (expanded) */
.accordion-button:not(.collapsed) ~ .header-controls .wl-sort-select {
    border-color: rgba(255,255,255,0.5);
}


.accordion-button:not(.collapsed) ~ .header-controls .wl-rename-btn {
    background-color: rgba(255,255,255,0.9);
    border: none;
}

.accordion-button:not(.collapsed) ~ .header-controls .wl-delete-btn {
    background-color: rgba(255,255,255,0.9);
    border: none;
    color: #dc3545;
}


.switch-text {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #4b5563;
}

.switch-text a {
    color: #1d3557;
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-decoration: underline;
}
/* ─── Home page ───────────────────────────────────────────────── */

.home-testing-banner {
    background: #dc3545;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.35);
}

.home-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2a4f7a 100%);
    color: var(--white);
    border-radius: var(--radius-card);
    padding: 56px 40px;
    margin-bottom: 28px;
    text-align: center;
}

.home-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.home-hero-sub {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-search {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.home-hero-search .form-control {
    flex: 1;
    border-radius: var(--radius-input);
    border: none;
    font-size: 15px;
}

.home-hero-search .btn {
    border-radius: var(--radius-input);
    padding: 10px 20px;
    font-size: 15px;
    flex-shrink: 0;
}

.home-hero-ctas {
    margin-top: 12px;
}

.home-stats-bar {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px 0;
}

.home-stat {
    padding: 8px 16px;
}

.home-stat-divider {
    border-left: 1px solid var(--navy-light);
    border-right: 1px solid var(--navy-light);
}

.home-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.home-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.home-category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--navy-light) transparent;
    -webkit-overflow-scrolling: touch;
}

.home-category-strip::-webkit-scrollbar { height: 4px; }
.home-category-strip::-webkit-scrollbar-track { background: transparent; }
.home-category-strip::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }

.home-cat-card {
    flex: 0 0 auto;
    width: 115px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px 8px 14px;
    text-align: center;
    color: var(--navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: var(--navy);
}

.home-cat-icon { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.home-cat-label { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.home-cat-count { font-size: 11px; color: var(--text-muted); }

.home-sidebar-panel {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.home-event-card {
    padding: 12px 0;
    border-bottom: 1px solid var(--navy-light);
}

.home-event-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-event-date {
    background: var(--navy);
    color: var(--white);
    border-radius: 10px;
    min-width: 48px;
    text-align: center;
    padding: 8px 6px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-event-day { font-size: 1.3rem; font-weight: 800; line-height: 1; display: block; }
.home-event-mon { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
.home-event-body { min-width: 0; }

.home-event-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.home-event-organizer,
.home-event-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-sponsor-card {
    background: var(--navy-light);
    border-radius: 10px;
    padding: 12px 14px;
    transition: background 0.15s ease;
    color: var(--navy);
}

.home-sponsor-card:hover { background: #d0dcea; color: var(--navy); }

.home-sponsor-logo {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.home-sponsor-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.home-sponsor-tagline { font-size: 11px; color: var(--text-muted); }
