/* ============================================================
   Radelin Fantasy World - Homepage Styles
   Cinematic hero and featured sections
   ============================================================ */

/* ─── Hero Section ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--obsidian);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(13, 27, 42, 0.4) 0%, rgba(10, 10, 18, 0.9) 70%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(45, 155, 110, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(100, 100, 220, 0.03) 0%, transparent 50%);
    z-index: 2;
    animation: hero-ambience 15s ease-in-out infinite alternate;
}

@keyframes hero-ambience {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Fog overlay */
.hero-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--obsidian) 0%, transparent 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 900px;
}

/* Animated rune circle */
.hero-sigil {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.sigil-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
}

.sigil-ring:nth-child(1) {
    animation: sigil-rotate 20s linear infinite;
}

.sigil-ring:nth-child(2) {
    inset: 10px;
    border-style: dashed;
    border-color: rgba(201, 168, 76, 0.2);
    animation: sigil-rotate 30s linear infinite reverse;
}

.sigil-ring:nth-child(3) {
    inset: 20px;
    border-color: rgba(201, 168, 76, 0.15);
    animation: sigil-rotate 25s linear infinite;
}

.sigil-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
    animation: sigil-glow 3s ease-in-out infinite;
}

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

@keyframes sigil-glow {
    0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(201, 168, 76, 0.5); }
    50% { opacity: 0.7; text-shadow: 0 0 40px rgba(201, 168, 76, 0.8); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--silver);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ─── Featured Section ─── */
.featured-section {
    padding: var(--section-pad) 0;
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0.3;
}

.featured-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.featured-intro p {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--silver);
    line-height: 2;
    font-style: italic;
}

/* Featured Cards */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    position: relative;
    padding: 40px 30px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition);
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), var(--glow-gold);
}

.featured-card .card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--glass-border);
}

.featured-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.featured-card p {
    font-size: 0.95rem;
    color: var(--silver);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ─── Lore Teaser ─── */
.lore-teaser {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, var(--obsidian) 0%, var(--midnight) 50%, var(--obsidian) 100%);
    position: relative;
}

.lore-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
}

.lore-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.lore-quote blockquote {
    border: none;
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold);
    line-height: 1.8;
    font-style: italic;
    padding: 0;
    background: none;
}

.lore-quote .quote-ornament {
    display: block;
    margin: 20px auto 0;
    color: var(--gold-dim);
    font-size: 1.5rem;
    opacity: 0.4;
    letter-spacing: 0.3em;
}

/* ─── Explore Section ─── */
.explore-section {
    padding: var(--section-pad) 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.explore-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition);
    text-decoration: none;
}

.explore-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateX(6px);
    box-shadow: var(--glow-gold);
}

.explore-card .explore-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--glass-border);
}

.explore-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gold);
}

.explore-card p {
    font-size: 0.9rem;
    color: var(--silver);
    opacity: 0.7;
    margin-bottom: 0;
}

/* ─── Responsive Hero ─── */
@media (max-width: 768px) {
    .hero-sigil {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .sigil-center { font-size: 1.5rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .featured-grid,
    .explore-grid {
        grid-template-columns: 1fr;
    }
}
