@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
    /* Colors */
    --color-primary: #4A004A;
    --color-secondary: #DAA520;
    --color-accent: #8B008B;
    --color-background-main: #1A001A;
    --color-background-footer: #110011;
    --color-text-primary: #E0B0FF;
    --color-text-secondary: #A0522D;

    --color-section-1: #330033;
    --color-section-2: #220022;
    --color-section-3: #440044;
    --color-section-4: #290029;
    --color-section-5: #380038;

    /* Fonts */
    --font-family-headings: 'Cinzel Decorative', serif;
    --font-family-body: 'Merriweather', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --border-radius-sm: 0.3rem;
    --border-radius-md: 0.6rem;
    --border-radius-lg: 1rem;

    /* Shadows */
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glowing: 0 0 15px var(--color-accent), 0 0 25px var(--color-accent), 0 0 35px var(--color-accent);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-primary);
    background-color: var(--color-background-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%234A004A" opacity="0.3"/></svg>') repeat;
    background-size: 10px 10px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(218, 165, 32, 0.5);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
}

h4 {
    font-size: 1.8rem;
    font-weight: 400;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 5px var(--color-secondary);
}

strong {
    color: var(--color-secondary);
    font-weight: 700;
}

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

section.bg-variant-3 { background-color: var(--color-section-3); }
section.bg-variant-4 { background-color: var(--color-section-4); }
section.bg-variant-5 { background-color: var(--color-section-5); }


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: var(--color-text-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.7s ease-in-out;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glowing);
    color: var(--color-secondary);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-deep), var(--shadow-inset);
}

/* Cards */
.card {
    background: linear-gradient(145deg, rgba(74, 0, 74, 0.8), rgba(26, 0, 26, 0.7));
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glowing);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-family-headings);
    color: var(--color-secondary);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-radius: var(--border-radius-sm);
    background-color: rgba(74, 0, 74, 0.6);
    color: var(--color-text-primary);
    font-family: var(--font-family-body);
    font-size: 1rem;
    box-shadow: var(--shadow-inset);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.7);
}

/* Header & Navigation */
.header {
    background-color: var(--color-background-main);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: var(--shadow-deep);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.7);
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 15px var(--color-secondary), 0 0 25px var(--color-accent);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--color-text-primary);
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--color-background-footer);
    color: var(--color-text-secondary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid rgba(218, 165, 32, 0.1);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer a {
    color: var(--color-secondary);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* Custom Effects */
.glowing-text {
    text-shadow: 0 0 8px var(--color-secondary), 0 0 15px var(--color-accent);
}

.rune-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-secondary), transparent);
    margin: var(--spacing-xl) auto;
    position: relative;
    opacity: 0.7;
}

.rune-divider::before,
.rune-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-secondary);
}

.rune-divider::before {
    left: 10%;
}

.rune-divider::after {
    right: 10%;
}

.scroll-effect-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-effect-element.show {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .header .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

/* Utility classes for Tailwind complement */
.text-gold {
    color: var(--color-secondary);
}

.bg-dark-purple {
    background-color: var(--color-primary);
}

.border-gold {
    border-color: var(--color-secondary);
}

.shadow-glowing-gold {
    box-shadow: var(--shadow-glowing);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}