/* Moonlit Hex Theme for Witchsong TTRPG Website - Combined from existing and new styles */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=IM+Fell+English:ital@0;1&family=Philosopher:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --color-background: #0f111a;
    --color-primary: #4a1942;
    --color-secondary: #2b1f45;
    --color-accent: #9b59b6;
    --color-accent-light: #b68fc9;
    --color-accent-dark: #7c3b97;
    --color-text: #e6e6e6;
    --color-text-muted: #a8a8b3;
    --color-border: rgba(155, 89, 182, 0.3);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Philosopher', sans-serif;
    --font-accent: 'IM Fell English', serif;
}

/* Base styles */
body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234a1942' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Star field background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Magical headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-accent-light);
    letter-spacing: 0.05em;
    position: relative;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Magical link styles */
a {
    color: var(--color-accent);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-light);
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
}

.nav-link {
    position: relative;
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced button styles */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
    font-family: var(--font-accent);
    border: 1px solid var(--color-accent);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(155, 89, 182, 0.3);
    border-color: var(--color-accent-light);
}

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

/* Card styles with magical borders */
.card {
    background-color: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(155, 89, 182, 0.2);
    border-color: var(--color-accent);
}

.card:hover::before {
    opacity: 1;
}

/* Navbar with glassmorphism */
.navbar {
    background-color: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

/* Mobile menu adjustments */
.mobile-menu-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
}

#mobile-menu {
    background-color: rgba(15, 17, 26, 0.95);
    border-top: 1px solid var(--color-border);
}

/* Magical dividers */
.divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 2rem 0;
    overflow: visible;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.divider::before {
    content: '✦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-background);
    padding: 0 10px;
    color: var(--color-accent);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Magical symbols and decorative elements */
.magical-symbol {
    position: absolute;
    color: var(--color-accent);
    opacity: 0.1;
    user-select: none;
    pointer-events: none;
}

.symbol-1 {
    top: 10%;
    left: 5%;
    font-size: 4rem;
    animation: rotateSlow 40s linear infinite;
}

.symbol-2 {
    bottom: 15%;
    right: 8%;
    font-size: 5rem;
    animation: rotateSlow 30s linear infinite reverse;
}

.symbol-3 {
    top: 40%;
    right: 15%;
    font-size: 3rem;
    animation: floatSymbol 8s ease-in-out infinite;
}

.symbol-4 {
    bottom: 30%;
    left: 12%;
    font-size: 4.5rem;
    animation: rotateSlow 35s linear infinite;
}

/* Quote styling */
.quote {
    font-family: var(--font-accent);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.quote::before {
    content: '"';
    position: absolute;
    left: -15px;
    top: -20px;
    font-size: 6rem;
    color: rgba(155, 89, 182, 0.1);
    font-family: var(--font-accent);
}

/* Hero section with magical elements */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-top: 4rem;
}

.hero-moon {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 0 40px rgba(226, 232, 240, 0.5), inset 0 0 50px rgba(226, 232, 240, 0.5);
    top: 100px;
    right: 10%;
    z-index: 1;
}

.hero-moon::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(155, 89, 182, 0.1);
    box-shadow: inset 0 0 10px rgba(155, 89, 182, 0.2);
}

.hero-moon::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 25%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(155, 89, 182, 0.1);
    box-shadow: inset 0 0 15px rgba(155, 89, 182, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-light);
    text-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-style: italic;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Categories/World Setting Section */
.categories-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background-color: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(155, 89, 182, 0.2);
    border-color: var(--color-accent);
}

.category-card:hover::before {
    opacity: 1;
}

.category-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    transition: all 0.5s ease;
}

.category-card:hover .category-image-placeholder {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.category-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-light);
}

.category-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-link {
    display: flex;
    align-items: center;
    margin-top: auto;
    font-weight: 500;
}

.category-link svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.category-link:hover svg {
    transform: translateX(5px);
}

/* Magic circle and witchcraft section */
.witchcraft-section {
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(74, 25, 66, 0.2), transparent 70%);
    position: relative;
    overflow: hidden;
}

.magic-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.magic-circle::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border: 1px solid rgba(155, 89, 182, 0.1);
    border-radius: 50%;
    animation: pulse 3s infinite alternate ease-in-out;
}

.magic-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 50%;
}

.witchcraft-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.magical-item {
    position: relative;
    border: 1px solid var(--color-border);
    background-color: rgba(15, 17, 26, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.magical-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.magical-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(155, 89, 182, 0.3);
    border-color: var(--color-accent);
}

.magical-item:hover::before {
    opacity: 1;
}

.item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: rgba(74, 25, 66, 0.2);
    border-radius: 50%;
    color: var(--color-accent-light);
    position: relative;
    z-index: 1;
}

.item-details {
    flex: 1;
    position: relative;
    z-index: 1;
}

.item-name {
    font-weight: bold;
    color: var(--color-accent-light);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

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

/* Call to action section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background-color: rgba(15, 17, 26, 0.5);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: rgba(15, 17, 26, 0.9);
    border-top: 1px solid var(--color-border);
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* Container utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Character sheet specific styling */
.character-sheet {
    background-color: rgba(15, 17, 26, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.character-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.character-header {
    background-color: rgba(43, 31, 69, 0.5);
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.character-portrait {
    width: 120px;
    height: 120px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
}

.attribute-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    background-color: rgba(74, 25, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent-light);
    transition: all 0.3s ease;
    position: relative;
}

.attribute-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-accent), transparent);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientBorder 5s ease infinite;
}

.attribute-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.attribute-box:hover::after {
    opacity: 0.6;
}

.attribute-name {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text);
}

/* Section titles with magical styling */
.section-title {
    font-family: var(--font-heading);
    color: var(--color-accent-light);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-accent);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
}

/* Talent cards with magical effects */
.talent-card {
    border: 1px solid var(--color-border);
    background-color: rgba(74, 25, 66, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.talent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(155, 89, 182, 0.3);
    border-color: var(--color-accent);
}

.talent-card:hover::before {
    opacity: 1;
}

.talent-card.selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
    background-color: rgba(74, 25, 66, 0.2);
}

.talent-name {
    font-weight: bold;
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.talent-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.talent-card:hover .talent-name::after {
    width: 100%;
}

.talent-card, .item-card {
  border: 1px solid var(--color-accent);
  background-color: rgba(155, 89, 182, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.talent-card:hover, .item-card:hover {
  background-color: rgba(155, 89, 182, 0.1);
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.talent-card.selected, .item-card.selected {
  background-color: rgba(155, 89, 182, 0.2);
  border-color: #9b59b6;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.talent-description {
    position: relative;
    z-index: 1;
}

/* Familiar card styling */
.familiar-card {
    border: 1px solid var(--color-accent);
    background-color: rgba(74, 25, 66, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.familiar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.familiar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(155, 89, 182, 0.3);
}

.familiar-name {
    font-weight: bold;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.familiar-type {
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.familiar-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-accent);
    opacity: 0.5;
    font-size: 1.5rem;
}

/* Animations */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
    }
    100% {
        text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent), 0 0 30px var(--color-accent);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatSymbol {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Character sheet skills section */
.skill-row {
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-row:hover {
    background-color: rgba(155, 89, 182, 0.1);
}

.skill-name {
    font-weight: bold;
}

.skill-type {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-style: italic;
}

/* Genesys Dice Pool styling */
.skill-rank {
    display: flex;
    gap: 4px;
}

.rank-diamond {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #666;
    background-color: transparent;
    transition: transform 0.2s ease;
}

.rank-diamond.filled {
    background-color: var(--color-accent);
    border-color: var(--color-accent-dark);
}

/* Green ability dice (from attribute) */
.rank-diamond.ability {
    background-color: #1d8a45;
    border-color: #0c6a31;
}

/* Yellow proficiency dice (from skill rank) */
.rank-diamond.proficiency {
    background-color: #f9d71c;
    border-color: #d4b600;
}

/* Animation for dice when hovered */
.skill-row:hover .rank-diamond {
    transform: scale(1.1);
}

/* Dice pool explanation box */
.dice-explanation {
    background-color: rgba(155, 89, 182, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.dice-explanation-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.dice-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dice-type {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sample-die {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.sample-die.ability {
    background-color: #1d8a45;
    border: 1px solid #0c6a31;
}

.sample-die.proficiency {
    background-color: #f9d71c;
    border: 1px solid #d4b600;
}

/* Character creation wizard */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-border);
    z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(74, 14, 84, 0.3);
  color: white;
  justify-content: center;
  font-weight: bold;
}

.step::before {
    content: '';
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(15, 17, 26, 0.8);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step::after {
    content: attr(id);
    position: absolute;
    top: 15px;
    font-weight: bold;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.step.active {
  background-color: #9b59b6;
}

.step.active::before {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.step.active::after {
    color: var(--color-accent-light);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-label {
  position: absolute;
  bottom: -1.5rem;
  white-space: nowrap;
  font-size: 0.8rem;
}

.step.active .step-label {
    color: var(--color-accent-light);
    font-weight: bold;
}

/* Attributes step styling */
.attribute-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.attr-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(155, 89, 182, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.attr-btn:hover {
  background-color: #9b59b6;
}

.attr-btn:hover:not(:disabled) {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

.attr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-tracker {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(155, 89, 182, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.threshold-box {
    border: 2px solid var(--color-border);
    background-color: rgba(74, 25, 66, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.threshold-box.wounds {
    border-color: #721c24;
    background-color: rgba(114, 28, 36, 0.1);
}

.threshold-box.strain {
    border-color: #1c6472;
    background-color: rgba(28, 100, 114, 0.1);
}

.threshold-box:hover {
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.threshold-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.threshold-value {
    font-size: 24px;
    font-weight: bold;
}

.soak-defense-box {
    border: 2px solid #6c5400;
    background-color: rgba(108, 84, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* Skills step styling */
.skill-category {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
    padding-bottom: 0.5rem;
}

/* Item cards styling */
.item-card {
    border: 1px solid var(--color-border);
    background-color: rgba(74, 25, 66, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(155, 89, 182, 0.3);
    border-color: var(--color-accent);
}

.item-card:hover::before {
    opacity: 1;
}

.item-card.selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
    background-color: rgba(74, 25, 66, 0.2);
}

.item-name {
    font-weight: bold;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.item-description {
    position: relative;
    z-index: 1;
}

/* Edit button */
.edit-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.edit-button:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prose styling for markdown content */
.prose {
    color: var(--color-text);
    max-width: 65ch;
    line-height: 1.6;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: var(--color-accent-light);
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
}

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

.prose blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose-invert {
    color: var(--color-text);
}

/* Authentication forms styling */
.auth-card {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(15, 17, 26, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

/* Dark overlay for modals */
.modal-backdrop {
    background-color: rgba(5, 6, 13, 0.8);
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-moon {
        width: 120px;
        height: 120px;
        top: 70px;
    }
    
    .witchcraft-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .attribute-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .character-portrait {
        width: 100px;
        height: 100px;
    }
    
    .dice-legend {
        flex-direction: column;
    }
    
    .step-indicator {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .step::before {
        width: 40px;
        height: 40px;
    }
    
    .step::after {
        top: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .magical-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-icon {
        margin-bottom: 1rem;
    }
    
    .character-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}