/* ============================================================
   ROYAL MINT THEME OVERRIDE — remove/comment the <link> tag
   in base.html to revert to the original theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Colour system ---------------------------------------- */
:root {
    --bg-dark:         #0b1727;
    --bg-panel:        rgba(255, 255, 255, 0.03);
    --bg-panel-strong: rgba(255, 255, 255, 0.07);

    --silver:          #ddd8cc;
    --silver-soft:     #b0a898;
    --silver-glow:     #f0ece3;

    --accent:          #c8a14a;
    --accent-strong:   #ddb85e;

    --border-light:    rgba(200, 161, 74, 0.12);
    --border-strong:   rgba(200, 161, 74, 0.28);

    --shadow:          rgba(0, 0, 0, 0.55);
}

/* ---- Global ---------------------------------------------- */
body {
    background: var(--bg-dark);
    background-image: none;
    font-family: 'Inter', sans-serif;
    padding-top: 0;
}

/* ---- Home page full-viewport flex layout ------------------ */
body.home footer {
    margin-top: 0;
}

body.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.home > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
}

/* ---- Header ----------------------------------------------- */
.site-header {
    background: #07101c;
    border-bottom: none;          /* nav carries the bottom border */
    padding: 0.9rem 2rem;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    color: #c8cdd2;
    letter-spacing: 1.5px;
}

.spot-label {
    font-size: 0.72rem;
    color: var(--silver-soft);
    letter-spacing: 0.3px;
}

#spot-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--silver-glow);
}

/* ---- Nav — same background as header so they read as one bar */
nav {
    background: #07101c;
    border-top: none;
    border-bottom: 1px solid var(--border-strong);
    padding: 0.5rem 2rem;
}

nav a {
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-transform: none;
    color: var(--silver-soft) !important;
}

nav a:hover {
    color: var(--silver-glow) !important;
}

/* "Logged in as" text */
nav p {
    font-size: 0.82rem;
    color: var(--silver-soft) !important;
}

/* Logout button */
nav button {
    font-size: 0.82rem;
    color: var(--silver-soft);
}

nav button:hover {
    color: var(--silver-glow);
}

/* Notification badge */
.badge {
    background: var(--accent);
    color: #07101c;
    font-weight: 600;
}

/* ============================================================
   MARKETPLACE — refined exchange listing entries
   ============================================================ */

.exchange-listings {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.exchange-listings li {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.exchange-listings li:first-child {
    border-top: 1px solid var(--border-light);
}

.exchange-listings li hr {
    display: none;
}

/* Photo */
.exchange-listings li img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}

/* Lot label — e.g. "Listing #12" */
.exchange-listings li > strong:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c8cdd2;
    display: block;
    margin-bottom: 0.35rem;
}

/* Offering / Wants labels */
.exchange-listings li p strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--silver-glow);
}

/* Status line — keep silver, not gold */
.exchange-listings li p:last-of-type {
    color: var(--silver-soft);
    font-size: 0.82rem;
}

/* Posted by line */
.exchange-listings li p em {
    font-size: 0.78rem;
    color: var(--silver-soft);
    font-style: normal;
}

/* View button */
.exchange-listings .btn {
    border: 1px solid #c8cdd2 !important;
    color: #c8cdd2 !important;
    background: transparent !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px !important;
    border-radius: 2px !important;
    transition: background 0.15s;
}

.exchange-listings .btn:hover {
    background: rgba(200, 205, 210, 0.08) !important;
}

/* ============================================================
   BUTTONS — global refinements
   ============================================================ */

.btn {
    border-radius: 2px !important;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   AUTH CHECKLIST — keep silver style consistent
   ============================================================ */

.auth-summary {
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   HOW IT WORKS — home page
   ============================================================ */

.how-it-works-section {
    display: none;
}

#how-it-works:target {
    display: block;
}

.how-steps li strong {
    color: var(--accent-strong);
}

/* ============================================================
   BUILT ON TRUST — home page
   ============================================================ */

.trust-section {
    background: #f2ede4;
    padding: 0;
    width: 100%;
    flex-shrink: 0;
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.25rem 2rem 1.5rem;
}

.trust-heading {
    color: #1a1a2e;
    margin-bottom: 0.4rem;
    font-size: 1.6rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid rgba(200, 161, 74, 0.2);
    border-radius: 4px;
}

.trust-icon {
    color: var(--accent);
    margin-bottom: 0.8rem;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.trust-item h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    text-transform: none;
}

.trust-item p {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid .trust-item:last-child {
        grid-column: auto;
    }
}

/* ============================================================
   MARKETPLACE LOCATION FILTER
   ============================================================ */

.location-filter-form {
    margin-bottom: 1.5rem;
}

.location-filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.location-input,
.radius-select {
    padding: 0.3rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(191, 195, 199, 0.45);
    border-radius: 4px;
    color: var(--silver);
    font-size: 0.82rem;
    width: auto;
    margin-bottom: 0;
}

.location-input {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.location-input::placeholder {
    color: var(--silver-soft);
    opacity: 0.7;
}

.location-input:focus,
.radius-select:focus {
    border-color: rgba(191, 195, 199, 0.75);
    box-shadow: 0 0 6px rgba(191, 195, 199, 0.2);
    outline: none;
}

.location-error {
    margin-top: 0.4rem;
    color: #e07070;
    font-size: 0.85rem;
}

.distance-badge {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.1rem 0.5rem;
    background: rgba(191, 195, 199, 0.1);
    border: 1px solid rgba(191, 195, 199, 0.35);
    border-radius: 3px;
    color: var(--silver-soft);
    font-size: 0.78rem;
    font-weight: 500;
    vertical-align: middle;
}
