/* ==========================================================================
   CSS VARIABLES - "CROWN OF EIRE" DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Base Palette */
    --bg-primary: #07130f;
    --bg-secondary: #0d1f17;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-elevated-hover: rgba(255, 255, 255, 0.08);
    
    /* Primary Accents */
    --accent-gold: #d4af37;
    --accent-gold-light: #f5d76e;
    --accent-emerald: #2ecc71;
    
    /* Secondary Accents */
    --mythic-green: #145a32;
    --forest-glow: #1abc9c;
    --copper: #b87333;
    
    /* Typography Colors */
    --text-main: #f3f0e6;
    --text-secondary: #d6cfbb;
    --text-muted: #8f8a7a;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;

    /* Layout & UI Elements */
    --max-width: 1320px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    
    /* Spacing System */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Shadows & Glows */
    --shadow-ambient: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-emerald: 0 0 20px rgba(46, 204, 113, 0.2);
    --glow-gold: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-gold-light);
}

/* Base Mythic Background */
.mythic-bg {
    background: radial-gradient(circle at top center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    min-height: 100vh;
}

.mythic-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10c2-2 5-2 7 0s2 5 0 7-5 2-7 0-2-5 0-7z" fill="%23d4af37" fill-opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons - "Royal Seals" */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--copper) 100%);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold-light);
    box-shadow: var(--glow-emerald);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    color: var(--bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 200%;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-elevated-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* Glass Containers (Celtic Stone + Glass Blend) */
.glass-container {
    background: var(--bg-elevated);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-ambient);
    position: relative;
    overflow: hidden;
}

.glass-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

/* Separator */
.title-separator {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
    box-shadow: var(--glow-gold);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.nav-container, .hero-container, .features-grid, .footer-container, .page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   HEADER - "CROWNED HALL NAV"
   ========================================================================== */
.crowned-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(7, 19, 15, 0.9), transparent);
}

.crowned-nav.scrolled {
    background: rgba(13, 31, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-ambient);
}

.crowned-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
    box-shadow: var(--glow-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.mobile-cta {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-gold);
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION - "THE KINGDOM AWAKENS"
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.gold-text {
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.image-mask {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-ambient);
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: block;
}

.floating-crown {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    animation: float 4s ease-in-out infinite;
}

/* ==========================================================================
   GAME SECTION - "THE ROYAL ALTAR"
   ========================================================================== */
.game-section {
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.royal-altar-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
    z-index: 2;
}

.altar-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 105%; height: 105%;
    background: radial-gradient(ellipse at center, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: breathingGlow 4s infinite alternate;
}

.altar-frame {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: var(--border-radius-lg);
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 30px rgba(212, 175, 55, 0.1);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.altar-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(46, 204, 113, 0.2);
}

.game-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--border-radius-md);
    background: #000;
    display: block;
}

.runes-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    opacity: 0.6;
    letter-spacing: 5px;
}

.runes-decoration span {
    animation: pulseGlow 3s infinite alternate;
}
.runes-decoration span:nth-child(even) {
    animation-delay: 1.5s;
}

/* ==========================================================================
   FEATURES SECTION - "LEGENDS OF EIRE"
   ========================================================================== */
.features-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, transparent, rgba(20, 90, 50, 0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 1px;
    background: var(--accent-gold);
    box-shadow: var(--glow-gold);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(46, 204, 113, 0.3);
    background: var(--bg-elevated-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.feature-card h3 {
    color: var(--accent-gold-light);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   INTERNAL PAGES (Lore, Rules, Privacy, etc.)
   ========================================================================== */
.page-content {
    padding: 150px 0 var(--space-xl);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.page-title {
    font-size: 3rem;
    color: var(--accent-gold);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.celtic-heading {
    color: var(--accent-gold-light);
    margin-top: 2.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.block-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.quote-block {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-emerald);
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(20, 90, 50, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-right: 4px solid var(--accent-gold);
    border-radius: var(--border-radius-sm);
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Lists */
.mythic-list {
    list-style: none;
    margin-bottom: 2rem;
}

.mythic-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.mythic-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* Rules Page Specific */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.symbol-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    text-align: center;
}

.symbol-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Responsible Gaming Specific */
.stone-tablet {
    border: 2px solid rgba(143, 138, 122, 0.3);
    background: linear-gradient(135deg, rgba(13, 31, 23, 0.8), rgba(7, 19, 15, 0.9));
}

.tablet-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shield-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--accent-emerald);
    text-align: center;
    margin-bottom: 2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.rule-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-emerald);
}

.rule-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold-light);
    font-family: var(--font-heading);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Legal Text (Terms/Privacy) */
.legal-text p {
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: rgba(7, 19, 15, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: var(--space-lg) 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.link-column a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-bottom {
    background: #040a08;
    padding: 2rem;
    text-align: center;
}

.social-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: rgba(20, 90, 50, 0.1);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.social-disclaimer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: left;
    margin: 0;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}