/*
Theme Name: Royal Purple Casino
Theme URI: https://example.com/royal-purple-casino
Author: Velvet Rooms Studio
Author URI: https://example.com
Description: A luxurious dark-violet casino theme with gold accents, gradient depth and starlit ornamentation. Centered crest, mega-menu navigation and a 4-column masonry news grid.
Version: 1.0.0
License: GPL v2 or later
Text Domain: royal-purple-casino
Tags: casino, betting, dark, luxury, masonry, four-columns, custom-menu, featured-images
*/

:root {
    --bg: #1a0f36;
    --bg-deeper: #110828;
    --surface: #2d1b69;
    --surface-soft: #371f7e;
    --violet: #7c3aed;
    --violet-soft: #a78bfa;
    --gold: #fbbf24;
    --gold-deep: #d97706;
    --cream: #fef3c7;
    --line: rgba(251, 191, 36, 0.18);
    --ink: #f8f7ff;
    --muted: #b4a3d4;
    --serif: "Cormorant Garamond", "Playfair Display", serif;
    --display: "Cinzel", "Cormorant Garamond", serif;
    --sans: "Jost", "Outfit", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 600px at 80% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(251, 191, 36, 0.08), transparent 60%),
        radial-gradient(circle at 50% 30%, rgba(167, 139, 250, 0.05) 0, transparent 60%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed; inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(251, 191, 36, 0.6), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(251, 191, 36, 0.4), transparent),
        radial-gradient(1px 1px at 90% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 10% 70%, rgba(251, 191, 36, 0.5), transparent);
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--cream); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); margin: 0 0 0.5em; line-height: 1.18; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1280px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* === HEADER === */
.site-header { position: relative; z-index: 30; padding-top: 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,8,40,0.95), rgba(26,15,54,0.85)); backdrop-filter: blur(12px); }

.header-top { font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--violet-soft); padding: 8px 0; border-bottom: 1px solid var(--line); }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header-top .crown { color: var(--gold); margin: 0 8px; }

.header-main { padding: 28px 0 20px; text-align: center; }
.site-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.site-logo .crest { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--gold); font-size: 22px; background: radial-gradient(circle, rgba(251,191,36,0.18), transparent 70%); position: relative; }
.site-logo .crest::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--line); }
.site-logo .name { font-family: var(--display); color: var(--cream); font-size: 1.6rem; letter-spacing: 0.4em; padding-left: 0.4em; }
.site-logo .tag { font-size: 10px; letter-spacing: 0.6em; color: var(--gold); text-transform: uppercase; }

.main-navigation { background: linear-gradient(90deg, transparent, rgba(124,58,237,0.18) 30%, rgba(124,58,237,0.18) 70%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-navigation .container { display: flex; justify-content: center; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-menu a { display: inline-flex; padding: 16px 22px; color: var(--cream); font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400; position: relative; }
.nav-menu a::before { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) scaleX(0); width: 24px; height: 1px; background: var(--gold); transition: transform 0.3s ease; }
.nav-menu a:hover::before { transform: translateX(-50%) scaleX(1); }
.nav-menu a:hover { color: var(--gold); }
.nav-login a { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--bg-deeper) !important; padding: 12px 26px !important; border-radius: 999px; margin-left: 12px; box-shadow: 0 14px 30px -10px rgba(251,191,36,0.6); }
.nav-login a:hover { background: linear-gradient(135deg, var(--cream), var(--gold)); }

/* === HERO CAROUSEL === */
.hero-section { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-frame { background: linear-gradient(135deg, rgba(45,27,105,0.85), rgba(124,58,237,0.4)); border: 1px solid var(--line); border-radius: 30px; padding: 70px 60px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(124,58,237,0.5); }
.hero-frame::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(251,191,36,0.18), transparent 40%), radial-gradient(circle at 80% 80%, rgba(124,58,237,0.4), transparent 50%); pointer-events: none; }
.hero-frame::after { content: ""; position: absolute; top: 30px; left: 30px; right: 30px; bottom: 30px; border: 1px solid var(--line); border-radius: 22px; pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); letter-spacing: 0.45em; font-size: 11px; text-transform: uppercase; margin-bottom: 20px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: "✦"; color: var(--gold); font-size: 9px; }
.hero-section h1 { font-family: var(--display); margin: 0 auto 20px; max-width: 18ch; }
.hero-section h1 em { color: var(--gold); font-style: italic; font-family: var(--serif); }
.hero-lead { color: var(--cream); font-size: 1.15rem; max-width: 56ch; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--bg-deeper); border-radius: 999px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12.5px; box-shadow: 0 18px 40px -12px rgba(251,191,36,0.5); }
.btn-primary:hover { background: linear-gradient(135deg, var(--cream), var(--gold)); color: var(--bg-deeper); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12.5px; font-weight: 500; }
.btn-ghost:hover { background: var(--gold); color: var(--bg-deeper); }

.hero-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; position: relative; }
.hero-slide { background: rgba(17,8,40,0.6); border: 1px solid var(--line); border-radius: 18px; padding: 24px; backdrop-filter: blur(10px); text-align: left; transition: transform 0.4s ease; }
.hero-slide:hover { transform: translateY(-6px); border-color: var(--gold); }
.hero-slide .league { font-size: 11px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.hero-slide .matchup { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin: 8px 0 14px; }
.hero-slide .odds-row { display: flex; gap: 8px; }
.hero-slide .odds-pill { flex: 1; background: rgba(124,58,237,0.25); border: 1px solid var(--line); padding: 10px; border-radius: 10px; text-align: center; color: var(--cream); font-weight: 500; font-size: 13px; transition: all 0.25s ease; }
.hero-slide .odds-pill strong { color: var(--gold); display: block; font-size: 16px; font-family: var(--serif); }
.hero-slide .odds-pill:hover { background: var(--gold); color: var(--bg-deeper); }
.hero-slide .odds-pill:hover strong { color: var(--bg-deeper); }

/* === SECTION HEADER === */
.section-head { text-align: center; margin-bottom: 50px; }
.section-eyebrow { display: inline-block; letter-spacing: 0.45em; font-size: 11px; text-transform: uppercase; color: var(--gold); padding: 6px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head h2 { margin-top: 18px; font-family: var(--display); }
.section-head .meta { max-width: 56ch; margin: 6px auto 0; color: var(--violet-soft); }

/* === CONTENT === */
.content-area { padding: 30px 0 90px; }
.content-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }

/* === MASONRY GRID === */
.posts-grid { columns: 4; column-gap: 22px; }
.post-card { break-inside: avoid; background: linear-gradient(160deg, rgba(45,27,105,0.6), rgba(26,15,54,0.7)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 22px; transition: transform 0.3s ease, border-color 0.3s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card-thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover img { transform: scale(1.07); }
.post-card-thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 50px; color: var(--gold); background: radial-gradient(circle, rgba(124,58,237,0.5), transparent); }
.post-card-content { padding: 20px; }
.post-card-meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-card-title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; margin: 0 0 10px; }
.post-card-title a { color: var(--cream); }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { font-size: 0.9rem; color: var(--muted); }
.post-card-footer { padding: 0 20px 20px; }
.read-more { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 1100px) { .posts-grid { columns: 3; } }
@media (max-width: 800px) { .posts-grid { columns: 2; } }
@media (max-width: 520px) { .posts-grid { columns: 1; } }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: linear-gradient(160deg, rgba(45,27,105,0.6), rgba(26,15,54,0.7)); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.widget-title { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); text-align: center; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--cream); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--cream); display: flex; justify-content: space-between; gap: 10px; }
.widget li a span { color: var(--gold); font-weight: 500; }
.widget-bonus { background: linear-gradient(160deg, var(--violet), var(--surface)); text-align: center; }
.widget-bonus p { color: var(--cream); }
.widget-bonus .btn-primary { display: inline-flex; margin-top: 6px; }

/* === BREADCRUMB === */
.breadcrumbs { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 24px; text-align: center; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs .sep { margin: 0 10px; color: var(--gold); }

/* === SINGLE / PAGE === */
.single-post-content, .page-content { background: linear-gradient(180deg, rgba(45,27,105,0.5), rgba(26,15,54,0.4)); border: 1px solid var(--line); border-radius: 24px; padding: 50px; }
.post-feature { aspect-ratio: 16/8; border-radius: 18px; overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-title { font-family: var(--display); margin-bottom: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.post-meta a { color: var(--cream); }
.post-body { color: var(--cream); font-size: 1.02rem; line-height: 1.85; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.2em; color: var(--muted); }
.post-body a { color: var(--gold); border-bottom: 1px dotted var(--gold); }
.post-tags { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(124,58,237,0.3); color: var(--cream); margin-right: 6px; font-size: 12px; }

.related-posts { margin-top: 50px; }

/* === ARCHIVE === */
.archive-header { padding: 70px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.archive-header h1 { font-family: var(--display); }

.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--cream); font-weight: 500; letter-spacing: 0.16em; font-size: 12px; text-transform: uppercase; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gold); color: var(--bg-deeper); border-color: var(--gold); }

/* === COMMENTS === */
.comments-area { background: linear-gradient(180deg, rgba(45,27,105,0.5), rgba(26,15,54,0.4)); border: 1px solid var(--line); border-radius: 24px; padding: 40px; margin-top: 32px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px; background: var(--bg-deeper); border: 1px solid var(--line); border-radius: 10px; color: var(--cream); font-family: var(--sans); margin-bottom: 12px; }
.comment-form textarea { min-height: 130px; }
.comment-form .submit { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--bg-deeper); border: 0; padding: 12px 32px; border-radius: 999px; font-weight: 600; cursor: pointer; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; }

/* === 404 === */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 .num { font-family: var(--display); font-size: clamp(6rem, 16vw, 12rem); color: var(--gold); margin: 0; line-height: 1; letter-spacing: 0.1em; }

/* === FOOTER === */
.site-footer { background: linear-gradient(180deg, var(--bg-deeper), #0a041c); margin-top: 70px; padding: 80px 0 0; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; padding-bottom: 50px; }
.footer-widget h3 { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-widget a { color: var(--violet-soft); }
.footer-widget a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-soft); text-align: center; }

@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .hero-carousel { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-frame { padding: 40px 24px; }
    .footer-widgets { grid-template-columns: 1fr; }
    .single-post-content, .page-content { padding: 28px; }
}
