/* ============================================
   INDEX PAGE STYLES
   The Hall of BloodTie - Home Page
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding-top: 40px;
    min-height: calc(80vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(139, 26, 26, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(10, 10, 11, 1) 0%, transparent 70%),
        linear-gradient(180deg, #050506 0%, #0a0a0b 100%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, #050506 100%);
}

.filigree-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    pointer-events: none;
}

.filigree-corner svg {
    width: 100%;
    height: 100%;
}

.filigree-corner.top-left { top: 40px; left: 40px; }
.filigree-corner.top-right { top: 40px; right: 40px; transform: scaleX(-1); }
.filigree-corner.bottom-left { bottom: 40px; left: 40px; transform: scaleY(-1); }
.filigree-corner.bottom-right { bottom: 40px; right: 40px; transform: scale(-1, -1); }

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1rem 0.5rem 1rem;
}

.crest-container {
    position: relative;
    width: 420px;
    height: 480px;
    margin-bottom: 1.5rem;
    animation: crestReveal 2s ease-out forwards;
    opacity: 0;
}

@keyframes crestReveal {
    0% { opacity: 0; transform: scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.crest {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(139, 26, 26, 0.3));
}

.crest-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.15) 0%, transparent 50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.motto {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.5em;
    color: #8a8d93;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.5s forwards;
    text-transform: uppercase;
}

.motto-main {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    color: #c4c8d0;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2s forwards;
    text-transform: uppercase;
    position: relative;
}

.motto-main::before,
.motto-main::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a8d93, transparent);
}

.motto-main::before { right: calc(100% + 20px); }
.motto-main::after { left: calc(100% + 20px); }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.enter-btn {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #c4c8d0;
    background: transparent;
    border: 1px solid #8a8d93;
    padding: 1.2rem 3.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2.5s forwards;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.enter-btn:hover {
    border-color: #8b1a1a;
    color: #d4cdc4;
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.3), inset 0 0 20px rgba(139, 26, 26, 0.1);
    text-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 3.5s forwards;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, #8a8d93, transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 0.8; height: 80px; }
}

/* ============================================
   HALL INTERIOR
   ============================================ */
.hall-interior {
    position: relative;
    background: #0a0a0b;
}

.section-divider {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.divider-line {
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a8d93, #8b1a1a, #8a8d93, transparent);
    position: relative;
}

.divider-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.chamber {
    min-height: 80vh;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.chamber-header {
    text-align: center;
    margin-bottom: 4rem;
}

.chamber-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #d4cdc4;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.chamber-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b1a1a, transparent);
}

.chamber-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #8a8d93;
    letter-spacing: 0.1em;
}

/* Chronicles */
.chronicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.chronicle-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.9), rgba(10, 10, 11, 0.95));
    border: 1px solid rgba(138, 141, 147, 0.15);
    padding: 2.5rem;
    transition: all 0.5s ease;
    overflow: hidden;
}

.chronicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b1a1a, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.chronicle-card:hover {
    border-color: rgba(139, 26, 26, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 26, 26, 0.1);
}

.chronicle-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(139, 26, 26, 0.3);
    line-height: 1;
    margin-bottom: 1rem;
}

.chronicle-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #c4c8d0;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.chronicle-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #8a8d93;
}

/* Bloodline */
.bloodline-chamber {
    background: 
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139, 26, 26, 0.05) 0%, transparent 60%),
        #0a0a0b;
}

.bloodline-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
}

.bloodline-tier {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.bloodline-member {
    display: block;
    position: relative;
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(138, 141, 147, 0.1);
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 180px;
}

.bloodline-member::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background: #8a8d93;
    opacity: 0.3;
}

.bloodline-tier:last-child .bloodline-member::after {
    display: none;
}

.bloodline-member:hover {
    border-color: #8b1a1a;
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
}

.member-sigil {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a1111, #0a0a0b);
    border: 1px solid #8a8d93;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #c4c8d0;
}

.member-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #c4c8d0;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.member-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #8a8d93;
}

.chamber-cta {
    margin-top: 4rem;
}

/* CTA Chamber */
.cta-chamber {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
        #0a0a0b;
    min-height: 60vh;
}

.cta-content {
    text-align: center;
    max-width: 600px;
}

.cta-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #8a8d93;
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .crest-container {
        width: 300px;
        height: 345px;
    }

    .motto-main::before,
    .motto-main::after {
        display: none;
    }

    .filigree-corner {
        width: 60px;
        height: 60px;
    }

    .chamber {
        padding: 5rem 1.5rem;
    }
}
