/* ========================================
   LOREBOOK ARCHIVES - Global Landing Page
   Industrial Terminal Design
   ======================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* -------------------- 
   Global Reset
   -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* Background circuit pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.01) 50px,
            rgba(255, 255, 255, 0.01) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.01) 50px,
            rgba(255, 255, 255, 0.01) 51px
        );
    pointer-events: none;
    z-index: 1;
}

/* -------------------- 
   Landing Container
   -------------------- */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* -------------------- 
   Header Section
   -------------------- */
.landing-header {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #ffffff 0%, #c41e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #808080;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.decorative-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c41e3a, transparent);
    margin: 30px auto 0;
}

/* -------------------- 
   Lorebooks Grid
   -------------------- */
.lorebooks-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* -------------------- 
   Lorebook Card
   -------------------- */
.lorebook-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #404040;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lorebook-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.lorebook-card:hover::before {
    transform: translateX(100%);
}

.lorebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
    border-color: #c41e3a;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #404040;
    transition: background 0.3s;
}

.lorebook-card[data-status="active"] .card-border {
    background: linear-gradient(180deg, #c41e3a, #ff6b6b);
}

.lorebook-card[data-status="development"] .card-border {
    background: linear-gradient(180deg, #ffa500, #ffcc00);
}

.lorebook-card[data-status="planned"] .card-border {
    background: linear-gradient(180deg, #404040, #606060);
}

.card-content {
    padding: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #404040;
    animation: pulse 2s infinite;
}

.lorebook-card[data-status="active"] .status-indicator {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.lorebook-card[data-status="development"] .status-indicator {
    background: #ffa500;
    box-shadow: 0 0 10px #ffa500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-label {
    font-size: 0.8rem;
    color: #808080;
    letter-spacing: 0.2em;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 15px;
}

.card-divider {
    width: 50px;
    height: 1px;
    background: #c41e3a;
    margin-bottom: 20px;
}

.card-description {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 80px;
}

.card-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c41e3a;
}

.card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid #c41e3a;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(196, 30, 58, 0.3);
    transition: left 0.3s;
}

.card-link:hover::before {
    left: 0;
}

.card-link:hover {
    transform: translateX(5px);
}

.card-link.disabled {
    background: rgba(64, 64, 64, 0.2);
    border-color: #404040;
    color: #606060;
    cursor: not-allowed;
    pointer-events: none;
}

.card-link span {
    position: relative;
    z-index: 1;
    letter-spacing: 0.1em;
}

.arrow {
    font-size: 1.2rem;
}

/* -------------------- 
   Footer
   -------------------- */
.landing-footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #404040;
    color: #606060;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* -------------------- 
   Responsive Design
   -------------------- */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .lorebooks-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .card-stats {
        flex-wrap: wrap;
    }
}