﻿/* Landing Page - DarkRPG */
@import './variables.css';

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: var(--bg-void);
    font-family: 'OpirusOpik', 'Georgia', serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
}

.sidebar {
    display: none;
}

/* ============================================
   LANDING CONTAINER
   ============================================ */

.landing-container {
    background: linear-gradient(180deg, 
            rgba(5, 5, 5, 0.95) 0%, 
            rgba(10, 9, 8, 0.85) 30%,
            rgba(18, 17, 15, 0.9) 70%,
            rgba(5, 5, 5, 0.98) 100%
        ),
        url('/assets/locations/DarkForest_DarkGrotto.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.landing-container::before {
    background: radial-gradient(ellipse at 50% 0%, var(--shadow-blood) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(92, 74, 31, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 100%, rgba(92, 74, 31, 0.1) 0%, transparent 40%);
    bottom: 0;
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.landing-container::after {
    background: radial-gradient(ellipse at center, transparent 40%, var(--bg-void) 100%);
    bottom: 0;
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.landing-content {
    margin: 0 auto;
    max-width: 1100px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    margin-bottom: 4rem;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-section::before {
    color: var(--gold-dark);
    content: '◆ ◆ ◆';
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1rem;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.hero-title {
    color: var(--bone);
    font-family: 'Hometown', 'Georgia', serif;
    font-size: 6rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    line-height: 1;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 40px var(--shadow-blood),
        0 4px 8px var(--shadow-void),
        2px 2px 0 var(--blood-dark);
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--gold);
    font-family: 'OpirusOpik', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.3em;
    margin: 0 0 2.5rem 0;
    text-shadow: 0 2px 4px var(--shadow-void);
    text-transform: uppercase;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0 auto 3.5rem;
    max-width: 680px;
    text-shadow: 0 1px 2px var(--shadow-void);
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-button {
    align-items: center;
    border: none;
    cursor: pointer;
    display: inline-flex;
    font-family: 'OpirusOpik', 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: normal;
    gap: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1.1rem 2.75rem;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button .btn-icon {
    height: 18px;
    opacity: 0.9;
    width: 18px;
}

/* Primary CTA (Blood red) */
.cta-primary {
    background: linear-gradient(180deg, var(--blood-light) 0%, var(--blood-dark) 100%);
    border: 2px solid var(--blood);
    box-shadow: 0 4px 15px var(--shadow-blood),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    color: var(--bone);
}

.cta-primary::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    content: '';
    height: 50%;
    left: 2px;
    pointer-events: none;
    position: absolute;
    right: 2px;
    top: 2px;
}

.cta-primary:hover {
    background: linear-gradient(180deg, var(--blood-glow) 0%, var(--blood) 100%);
    border-color: var(--blood-light);
    box-shadow: 0 6px 25px var(--shadow-blood),
        0 0 30px var(--shadow-blood),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* Secondary CTA (Gold outline) */
.cta-secondary {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--gold-dark);
    box-shadow: 0 4px 10px var(--shadow-void),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--gold-light);
}

.cta-secondary:hover {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border-color: var(--gold);
    box-shadow: 0 6px 20px var(--shadow-void),
        0 0 15px var(--shadow-gold);
    color: var(--gold-pale);
    transform: translateY(-2px);
}

/* Tertiary CTA (Subtle) */
.cta-tertiary {
    background: transparent;
    border: 1px solid var(--smoke);
    box-shadow: 0 2px 8px var(--shadow-void);
    color: var(--text-secondary);
}

.cta-tertiary:hover {
    background: var(--bg-elevated);
    border-color: var(--ash);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Quaternary CTA (Most subtle) */
.cta-quaternary {
    background: transparent;
    border: 1px solid var(--smoke);
    box-shadow: 0 2px 8px var(--shadow-void);
    color: var(--text-muted);
}

.cta-quaternary:hover {
    background: var(--bg-elevated);
    border-color: var(--ash);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

/* ============================================
   AUTH STATUS
   ============================================ */

.auth-status {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.auth-waiting {
    align-items: center;
    color: var(--gold);
    display: flex;
    font-size: 0.85rem;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-waiting::before {
    animation: pulse 1.5s ease-in-out infinite;
    background: var(--gold);
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 8px;
    width: 8px;
}

.auth-loading {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-size: 1rem;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 2rem;
}

.auth-loading .loading-spinner {
    animation: spin 1s linear infinite;
    border: 2px solid var(--smoke);
    border-radius: 50%;
    border-top-color: var(--gold);
    height: 20px;
    width: 20px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    margin: 4rem 0;
    padding-top: 2rem;
}

.features-section::before {
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    content: '';
    display: block;
    height: 1px;
    margin: 0 auto 3rem;
    width: 200px;
}

.section-title {
    color: var(--bone);
    font-family: 'OpirusOpik', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 4px var(--shadow-void);
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 4rem;
}

.feature-card {
    background: linear-gradient(180deg, 
        rgba(26, 24, 22, 0.9) 0%, 
        rgba(18, 17, 15, 0.95) 100%
    );
    border: 1px solid var(--smoke);
    overflow: hidden;
    padding: 2rem;
    position: relative;
    text-align: left;
    transition: all 0.4s ease;
}

.feature-card::before,
.feature-card::after {
    border-color: var(--gold-dark);
    border-style: solid;
    content: '';
    height: 20px;
    position: absolute;
    transition: all 0.4s ease;
    width: 20px;
}

.feature-card::before {
    border-width: 1px 0 0 1px;
    left: 8px;
    top: 8px;
}

.feature-card::after {
    border-width: 0 1px 1px 0;
    bottom: 8px;
    right: 8px;
}

.feature-card:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 8px 30px var(--shadow-void),
        inset 0 0 30px rgba(139, 115, 53, 0.03);
}

.feature-card:hover::before,
.feature-card:hover::after {
    border-color: var(--gold);
    height: 30px;
    width: 30px;
}

.feature-icon {
    color: var(--gold);
    display: block;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-title {
    color: var(--bone);
    font-family: 'OpirusOpik', 'Georgia', serif;
    font-size: 1.35rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.landing-footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    position: relative;
    text-align: center;
}

.landing-footer::before {
    background: linear-gradient(90deg, transparent, var(--smoke), transparent);
    content: '';
    display: block;
    height: 1px;
    margin: 0 auto 2rem;
    width: 100px;
}

.footer-text {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.9rem;
    gap: 0.5rem;
    justify-content: center;
    letter-spacing: 0.15em;
}

.footer-text .footer-icon {
    color: var(--blood);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE - Mobile (Portrait)
   ============================================ */

@media (orientation: portrait) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        letter-spacing: 0.15em;
    }
    
    .landing-content {
        padding: 1rem;
    }
}
