/*
Theme Name: RoyalAce Casino
Theme URI: https://example.com/royalace
Author: Your Name
Description: An elegant emerald & gold casino WordPress theme with static hero, sticky header, and dynamic content area. Perfect for premium casino and brand protection sites.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: royalace
Tags: casino, gaming, dark-theme, one-column, custom-logo, luxury
*/

:root {
    --color-bg: #05100a;
    --color-bg-card: #0a1a12;
    --color-bg-elevated: #0d2318;
    --color-surface: #123524;
    --color-emerald: #10b981;
    --color-emerald-light: #34d399;
    --color-emerald-dark: #059669;
    --color-emerald-glow: rgba(16, 185, 129, 0.3);
    --color-gold: #f59e0b;
    --color-gold-light: #fbbf24;
    --color-gold-glow: rgba(245, 158, 11, 0.3);
    --color-text: #d1d5db;
    --color-text-muted: #9ca3af;
    --color-text-heading: #ffffff;
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --container-width: 1100px;
    --content-width: 820px;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

a { color: var(--color-emerald-light); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-gold-light); }
img { max-width: 100%; height: auto; }

/* HEADER */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(5, 16, 10, 0.95) 0%, rgba(5, 16, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 30px;
}

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

.logo-crown {
    width: 44px; height: 44px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--color-gold-glow);
}

.logo-crown svg { width: 26px; height: 26px; fill: var(--color-bg); }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-heading);
}

.logo-text span { color: var(--color-gold); }

.header-right { display: flex; align-items: center; gap: 20px; }

.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted); }
.nav-link:hover { color: var(--color-emerald-light); }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-emerald);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 6px 30px var(--color-emerald-glow);
    transition: all 0.3s ease;
}

.btn-play:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--color-emerald-glow); }
.btn-play svg { width: 18px; height: 18px; fill: currentColor; }

/* HERO */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 30px 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}

.hero-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    opacity: 0.15;
}

.hero-lines::before, .hero-lines::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 150%;
    background: linear-gradient(180deg, transparent, var(--color-emerald), transparent);
    animation: linePulse 8s ease-in-out infinite;
}

.hero-lines::before { left: 20%; top: -25%; transform: rotate(15deg); }
.hero-lines::after { right: 25%; top: -25%; transform: rotate(-10deg); animation-delay: -4s; }

@keyframes linePulse { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.3; } }

.floating-cards { position: absolute; width: 100%; height: 100%; pointer-events: none; }

.card-deco {
    position: absolute;
    width: 60px; height: 84px;
    background: var(--color-bg-card);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0.6;
    animation: floatCard 12s ease-in-out infinite;
}

.card-deco:nth-child(1) { top: 15%; left: 8%; }
.card-deco:nth-child(2) { top: 25%; right: 10%; animation-delay: -3s; }
.card-deco:nth-child(3) { bottom: 20%; left: 12%; animation-delay: -6s; }
.card-deco:nth-child(4) { bottom: 30%; right: 8%; animation-delay: -9s; }

@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(5deg); } }

.hero-content { position: relative; z-index: 10; max-width: 800px; }

.hero-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 10px 50px var(--color-gold-glow);
    animation: crownGlow 3s ease-in-out infinite;
}

.hero-crown svg { width: 45px; height: 45px; fill: var(--color-bg); }

@keyframes crownGlow { 0%, 100% { box-shadow: 0 10px 50px var(--color-gold-glow); } 50% { box-shadow: 0 10px 70px rgba(245, 158, 11, 0.5); } }

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-title em { font-style: italic; color: var(--color-emerald-light); }

.hero-description { font-size: 1.15rem; color: var(--color-text-muted); max-width: 580px; margin: 0 auto 45px; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 55px;
    background: var(--gradient-emerald);
    color: white !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 1px;
    border-radius: 60px;
    box-shadow: 0 10px 50px var(--color-emerald-glow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.hero-cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 60px var(--color-emerald-glow); }
.hero-cta:hover::before { left: 100%; }
.hero-cta svg { width: 22px; height: 22px; }

.bonus-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.bonus-item { text-align: center; }
.bonus-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--color-gold); line-height: 1; }
.bonus-label { font-size: 0.85rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.bonus-divider { width: 1px; height: 50px; background: rgba(16, 185, 129, 0.2); }

/* MAIN CONTENT */
.site-main { background: var(--color-bg); }
.content-area { max-width: var(--content-width); margin: 0 auto; padding: 100px 30px; }

.entry-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin: 3rem 0 1.5rem;
}

.entry-content h2:first-child { margin-top: 0; }

.entry-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    margin: 2.5rem 0 1rem;
}

.entry-content p { margin-bottom: 1.5rem; }
.entry-content strong { color: var(--color-text-heading); font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.8rem; }
.entry-content li::marker { color: var(--color-emerald); }

.entry-content a {
    color: var(--color-emerald-light);
    text-decoration: underline;
    text-decoration-color: rgba(16, 185, 129, 0.3);
    text-underline-offset: 4px;
}

.entry-content a:hover { color: var(--color-gold); text-decoration-color: var(--color-gold); }

.entry-content blockquote {
    margin: 2.5rem 0;
    padding: 25px 30px;
    background: var(--color-bg-card);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.entry-content hr, .wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    margin: 4rem 0;
}

.content-cta, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-gold);
    color: var(--color-bg) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    margin: 2rem 0;
    box-shadow: 0 6px 30px var(--color-gold-glow);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.content-cta:hover, .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--color-gold-glow);
}

/* FOOTER */
.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    padding: 70px 30px 30px;
}

.footer-inner { max-width: var(--container-width); margin: 0 auto; }

.responsible-gaming {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 50px;
    text-align: center;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

.responsible-gaming h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-gold); margin-bottom: 15px; }
.responsible-gaming p { color: var(--color-text-muted); font-size: 0.95rem; max-width: 550px; margin: 0 auto 25px; }

.responsible-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

.responsible-links a {
    padding: 10px 22px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 30px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.responsible-links a:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-emerald-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 45px;
    margin-bottom: 50px;
}

.footer-column h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--color-text-heading); margin-bottom: 25px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 14px; }
.footer-column a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-column a:hover { color: var(--color-emerald-light); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-legal-links { display: flex; gap: 30px; }
.footer-legal-links a { color: var(--color-text-muted); font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-right .nav-link { display: none; }
    .hero-section { padding: 120px 20px 80px; min-height: auto; }
    .hero-title { font-size: 2.4rem; }
    .hero-cta { padding: 18px 40px; font-size: 1rem; }
    .bonus-strip { flex-direction: column; gap: 25px; }
    .bonus-divider { display: none; }
    .floating-cards { display: none; }
    .content-area { padding: 60px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.3rem; }
    .btn-play { padding: 12px 24px; font-size: 0.9rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.hero-crown { animation-delay: 0s; }
.hero-tagline { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.4s; }
.bonus-strip { animation-delay: 0.5s; }
