/* ═══════════════════════════════════════════════════════
   Flatiron Blues — Main Stylesheet
   ═══════════════════════════════════════════════════════ */

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

/* ── Reset & Base ─────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: #080808;
    color: #d8d4cc;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

/* Film-grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.35;
}

a { color: #4a90d9; text-decoration: none; transition: color .2s; }
a:hover { color: #c8a850; }

img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────── */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 48px;
    width: auto;
    filter: invert(1);
    opacity: 0.9;
}

.site-logo__text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: #e8e2d6;
    line-height: 1.2;
}

.site-logo__text span {
    display: block;
    font-size: 0.65rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8a850;
    margin-top: 2px;
}

.site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin-left: 24px;
    transition: color .2s;
}
.site-nav a:hover { color: #c8a850; }

/* ── Hero / Banner ────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #1a1a1a;
}

.hero img {
    width: 100%;
    display: block;
    filter: brightness(0.85) contrast(1.05);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.0) 40%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 24px 32px;
}

.hero__tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
}

/* ── Section titles ───────────────────────────────────── */

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 400;
    color: #e8e2d6;
    margin-bottom: 10px;
}

.section-title em {
    color: #c8a850;
    font-style: italic;
}

.divider {
    width: 48px;
    height: 2px;
    background: #1e6cc7;
    margin: 12px 0 24px;
}

/* ── Intro / About block ──────────────────────────────── */

.intro {
    padding: 56px 0 40px;
    text-align: center;
}

.intro p {
    font-size: 1.08rem;
    color: #aaa;
    max-width: 560px;
    margin: 0 auto 18px;
}

/* ── Feature grid ─────────────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: #181818;
    border: 1px solid #1e1e1e;
    margin: 32px 0 56px;
}

.feature {
    background: #0d0d0d;
    padding: 28px 24px;
    text-align: center;
}

.feature__icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature__title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #c8a850;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.feature p {
    font-size: 0.85rem;
    color: #666;
}

/* ── CTA block ────────────────────────────────────────── */

.cta-block {
    background: linear-gradient(135deg, #0d1a2e 0%, #0a0a0a 60%);
    border: 1px solid #1a2e44;
    border-radius: 2px;
    padding: 48px 40px;
    text-align: center;
    margin: 0 0 56px;
}

.cta-block p {
    color: #888;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 13px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s, transform .1s;
    text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
    background: #1e6cc7;
    color: #fff;
}
.btn--primary:hover { background: #2478d8; color: #fff; }

.btn--gold {
    background: #c8a850;
    color: #000;
}
.btn--gold:hover { background: #d4b86a; color: #000; }

.btn--ghost {
    background: transparent;
    color: #c8a850;
    border: 1px solid #c8a850;
}
.btn--ghost:hover { background: #c8a850; color: #000; }

.btn--danger {
    background: #8b1a1a;
    color: #e8d4d4;
}
.btn--danger:hover { background: #a02020; color: #fff; }

.btn--sm {
    padding: 8px 18px;
    font-size: 0.75rem;
}

/* ── PayPal button wrapper ────────────────────────────── */

.paypal-wrap {
    margin-top: 10px;
}

.paypal-wrap form { display: inline; }

/* ── Video player ─────────────────────────────────────── */

.video-section {
    padding: 40px 0 56px;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid #1a1a1a;
}

.video-wrap iframe,
.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-meta {
    margin-top: 18px;
    padding: 18px;
    background: #0d0d0d;
    border-left: 3px solid #1e6cc7;
}

.video-meta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #e8e2d6;
}

.video-meta p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* ── Access gate ──────────────────────────────────────── */

.gate {
    padding: 64px 0;
    text-align: center;
}

.gate__icon {
    font-size: 3rem;
    margin-bottom: 18px;
    opacity: 0.4;
}

.gate h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #e8e2d6;
    margin-bottom: 10px;
}

.gate p { color: #666; margin-bottom: 28px; }

/* ── Cards / Panels ───────────────────────────────────── */

.card {
    background: #0e0e0e;
    border: 1px solid #1e1e1e;
    padding: 28px;
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #c8a850;
    margin-bottom: 14px;
}

/* ── Forms ────────────────────────────────────────────── */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #d8d4cc;
    padding: 10px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1e6cc7;
}

.form-group textarea { min-height: 90px; resize: vertical; }

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #555;
}

/* ── Alerts ───────────────────────────────────────────── */

.alert {
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    border-left: 3px solid;
}

.alert--success { background: #061a0f; border-color: #2a7a4b; color: #6ecba0; }
.alert--error   { background: #1a0606; border-color: #8b1a1a; color: #e08080; }
.alert--info    { background: #060f1a; border-color: #1e6cc7; color: #7ab4f0; }
.alert--warning { background: #1a140a; border-color: #c8a850; color: #e0c870; }

/* ── Admin layout ─────────────────────────────────────── */

.admin-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background: #060606;
    border-right: 1px solid #1a1a1a;
    padding: 28px 0;
}

.admin-sidebar nav a {
    display: block;
    padding: 10px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    border-left: 3px solid transparent;
    transition: all .2s;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: #c8a850;
    border-left-color: #c8a850;
    background: #0d0d0d;
}

.admin-sidebar nav .nav-section {
    padding: 18px 24px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #333;
}

.admin-main {
    padding: 36px 40px;
    overflow-x: auto;
}

.admin-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #e8e2d6;
    margin-bottom: 4px;
}

.admin-subtitle {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1a1a1a;
}

/* ── Table ────────────────────────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.data-table th {
    background: #0d0d0d;
    color: #888;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid #1e1e1e;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #131313;
    color: #aaa;
    vertical-align: top;
    word-break: break-all;
}

.data-table tr:hover td { background: #0a0a0a; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
}

.badge--green  { background: #0b2e1a; color: #4caf82; }
.badge--red    { background: #2e0b0b; color: #cf6868; }
.badge--yellow { background: #2e250b; color: #cfb04a; }

/* ── Login page ───────────────────────────────────────── */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    padding: 40px 36px;
}

.login-box__logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-box__logo img {
    height: 52px;
    filter: invert(1);
    opacity: 0.7;
    margin: 0 auto 10px;
}

.login-box__logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #c8a850;
    letter-spacing: 0.05em;
}

.login-box__logo p {
    font-size: 0.72rem;
    color: #444;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Processing / spinner ─────────────────────────────── */

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #1a1a1a;
    border-top-color: #1e6cc7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid #111;
    padding: 28px 0;
    text-align: center;
    font-size: 0.78rem;
    color: #333;
    letter-spacing: 0.06em;
    margin-top: 56px;
}

.site-footer a { color: #444; }
.site-footer a:hover { color: #c8a850; }

/* ── Utilities ────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted  { color: #555; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 700px) {
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: none; border-bottom: 1px solid #1a1a1a; padding: 14px 0; }
    .admin-sidebar nav a { display: inline-block; padding: 8px 14px; }
    .admin-main { padding: 24px 18px; }
    .site-logo__text { font-size: 1.1rem; }
    .cta-block { padding: 32px 20px; }
    .features { grid-template-columns: 1fr; }
}
