@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Teko:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-main: #050608;
    --bg-dark: #000000;
    --bg-panel: #0f1115;
    --accent-gold: #f5b041;
    --accent-orange: #d35400;
    --accent-green: #27ae60;
    --text-primary: #e2e8f0;
    --text-muted: #8b9bb4;
    --border-color: #272a30;
    --mythic-color: #f39c12;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    /* Simple grid texture for game feel */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-orange); }

/* Clip Paths for Game Style Angled Corners */
.clip-angled {
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.clip-angled-sm {
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* Button Component */
.btn-primary {
    background: linear-gradient(180deg, #e67e22, var(--accent-orange));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 4px 10px rgba(211, 84, 0, 0.4);
    transition: all 0.2s ease;
    font-family: 'Teko', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.25rem 1.5rem;
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 0 6px 15px rgba(211, 84, 0, 0.6);
}
.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: linear-gradient(180deg, #1b1e25, var(--bg-panel));
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-secondary:hover:not(.active) {
    background: #181a1f;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.btn-secondary.active {
    background: linear-gradient(180deg, #f1c40f, var(--accent-gold));
    color: #000;
    border-color: #f1c40f;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 0 15px rgba(245, 176, 65, 0.3);
}

/* Card Styles */
.game-card {
    background: linear-gradient(135deg, var(--bg-panel) 0%, #0a0b0e 100%);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s ease;
    clip-path: inherit;
    z-index: 10;
}
.game-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}
.game-card:hover::before {
    border-color: var(--accent-gold);
}

/* Mythic Outline Container */
.mythic-border {
    position: relative;
    padding: 2px;
}
.mythic-border::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #f1c40f, #e67e22, #f1c40f);
    z-index: -1;
    clip-path: inherit;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Utility classes */
.bg-panel { background-color: var(--bg-panel); }
.text-gold { color: var(--accent-gold); }
.text-orange { color: var(--accent-orange); }
.border-game { border-color: var(--border-color); }
