﻿/* ───────────────────────────────────────────────────
   CINEFEX ARCHIVE - DARK ARCHIVE THEME
   ───────────────────────────────────────────────────

Design tokens:
--bg-panel:    #0f1520  panel/card backgrounds
--bg-surface:  #141e2e  elevated surfaces
--bg-chrome:   #0d1829  nav bars / top bar
--border:      #1e2e44  default borders
--border-bright:#2a4060 brighter border on hover
--accent-amber:#e8a020  primary accent (film/print gold)
--accent-teal: #4fc97e  secondary accent (success/active)
--accent-blue: #5b7fd4  tertiary accent
--text-primary:#d8e8f0  main text
--text-muted:  #6a8aaa  muted/secondary text
--text-dim:    #3a5070  very dim text
──────────────────────────────────────────────────── */

:root {
    --bg-panel: #0f1520;
    --bg-surface: #141e2e;
    --bg-chrome: #0d1829;
    --border: #1e2e44;
    --border-bright: #2a4060;
    --accent-amber: #e8a020;
    --accent-teal: #4fc97e;
    --accent-blue: #5b7fd4;
    --text-primary: #d8e8f0;
    --text-muted: #6a8aaa;
    --text-dim: #3a5070;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #0a0e14;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
}

a {
    color: var(--accent-amber);
    text-decoration: none;
}

    a:hover {
        color: #fff;
    }

/* ── Navbar ──────────────────────────────────────── */
.navbar {
    background: var(--bg-chrome) !important;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 14px;
    transition: color 0.15s;
}

    .navbar .nav-link:hover {
        color: var(--accent-teal) !important;
    }

.navbar-toggler {
    border-color: var(--border) !important;
}

/* ── Page container ──────────────────────────────── */
.container {
    padding-top: 20px;
    padding-bottom: 60px;
}

h1, h2, h3, h4, h5 {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ── Hero / landing section ──────────────────────── */
.archive-hero {
    text-align: center;
    padding: 40px 16px 24px;
}

.archive-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.archive-hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Search box (Home / SearchResults) ───────────── */
.search-wrapper {
    position: relative;
}

.search-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 100%;
}

    .search-box::placeholder {
        color: var(--text-dim);
    }

    .search-box:focus {
        outline: none;
        border-color: var(--accent-teal);
        box-shadow: none;
    }

.search-submit-btn {
    background: var(--accent-amber);
    border: 1px solid var(--accent-amber);
    color: #0a0e14;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    padding: 10px 18px;
    transition: background 0.15s, border-color 0.15s;
}

    .search-submit-btn:hover {
        background: #ffb830;
        border-color: #ffb830;
        color: #0a0e14;
    }

/* ── Live search suggestions dropdown ─────────────── */
#searchSuggestions {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 4px;
    overflow: hidden;
}

    #searchSuggestions .list-group-item {
        background: var(--bg-panel);
        border: none;
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        padding: 10px 12px;
        transition: background 0.15s;
    }

        #searchSuggestions .list-group-item:last-child {
            border-bottom: none;
        }

        #searchSuggestions .list-group-item:hover {
            background: var(--bg-surface);
        }

        #searchSuggestions .list-group-item strong {
            color: var(--text-primary);
        }

        #searchSuggestions .list-group-item .text-muted {
            color: var(--text-muted) !important;
        }

/* ── Issue / result cards ─────────────────────────── */
.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

    .card:hover {
        border-color: var(--border-bright);
        background: var(--bg-surface);
        transform: translateY(-2px);
    }

    .card img.card-img-top {
        border-bottom: 1px solid var(--border);
        object-fit: cover;
        height: 320px;
        background: #05070a;
    }

    .card-title {
        color: var(--text-primary);
        font-weight: 700;
    }

    .card-text {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

.btn-outline-primary {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

    .btn-outline-primary:hover {
        background: var(--accent-teal);
        border-color: var(--accent-teal);
        color: #0a0e14;
    }

.btn-primary {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: #0a0e14;
    font-weight: 600;
}

    .btn-primary:hover {
        background: #ffb830;
        border-color: #ffb830;
        color: #0a0e14;
    }

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-muted);
}

    .btn-secondary:hover {
        background: var(--border);
        color: var(--text-primary);
        border-color: var(--border-bright);
    }

/* ── Issue detail page ─────────────────────────────── */
.detail-cover img {
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
}

.detail-section-title {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.detail-articles {
    list-style: none;
    padding: 0;
}

    .detail-articles li {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 8px 12px;
        margin-bottom: 6px;
        color: var(--text-primary);
        font-size: 0.9rem;
    }

.movie-list-item {
    background: var(--bg-panel);
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

    .movie-list-item strong {
        color: var(--accent-amber);
    }

    .movie-list-item p {
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-bottom: 0;
    }

/* ── Footer ───────────────────────────────────────── */
.footer {
    background: var(--bg-chrome);
    border-top: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
    padding: 16px 0;
}

/* ── Ownership badges ─────────────────────────────── */
.card {
    position: relative;
}

.owned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.owned-badge--yes {
    background: rgba(79, 201, 126, 0.15);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.owned-badge--no {
    background: rgba(224, 80, 80, 0.12);
    border: 1px solid #e05050;
    color: #e05050;
}

.card-unowned img.card-img-top {
    opacity: 0.45;
    filter: grayscale(60%);
}

.card-unowned {
    border-color: rgba(224, 80, 80, 0.3);
}

.owned-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

    .owned-toggle-btn:hover {
        border-color: var(--accent-teal);
        color: var(--accent-teal);
    }
}