@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;600;700&display=swap');
@import url("https://www.darkrune.dk/css/global.css");
@import url("variables.css");

body {
    background-color: #0f0f12;
    background: radial-gradient(circle at top, #1a1a1e 0%, #0f0f12 70%);
    font-family: "Spectral", serif;
    line-height: 1.65;
    font-size: 1.05rem;
    color: #e6e6e6;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 60%, #000 100%);
    opacity: 0.4;
    pointer-events: none;
}

section {
    background: rgba(26, 26, 30, 0.6);
    border: 1px solid #2a2a30;
    margin: var(--size-300-r) 0;
    border-radius: 6px;
}

section h2 {
    font-size: 2rem;
    margin: var(--size-050-r) 0;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
    color: #c9a86a;
}

footer .small a, section p a {
    position: relative;
    color: #e6e6e6;
    text-decoration: none;
    padding-bottom: 2px;
}

footer .small a:after, section p a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(to right, #b48d52, transparent);
    transition: width 0.3s ease;
}

footer .small a:hover::after, section a:hover::after {
    width: 100%;
}

.global-menu {
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #b48d52;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    color: #c9a86a;
}

.global-menu .login {
    padding: 0.4rem 0.8rem;
    border: 1px solid #2a2a30;
    background: rgba(26,26,30,0.4);
    border-radius: 4px;
    color: #e6e6e6;
    transition: 0.2s ease;
}

.global-menu .login:hover {
    border-color: #c9a86a;
    color: #c9a86a;
    background: rgba(26,26,30,0.7);
}

.title { margin: var(--size-300-r); }
.section-padding { padding: var(--size-300-r); margin: var(--size-300-r); }
.section-padding + .section-padding { border-top: 1px solid #222; }
footer { padding: var(--size-500) 0; }

/* Main menu */
.main-nav {
    background: #111;
    padding: 0.75rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;      /* Stack button and menu on mobile */
    align-items: center;
}

/* Hamburger button (mobile only) */
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    display: block;
}

/* Menu list (mobile-first: hidden until toggled) */
.menu {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: none;
    flex-direction: column;      /* Column on mobile */
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.menu li a {
    display: block;
    padding: 0.75rem;
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.menu li a:hover {
    background: #333;
}

/* When menu is open */
body.menu-open .menu {
    display: flex;
}

/* --- Desktop layout --- */
@media (min-width: 768px) {
    .main-nav {
        flex-direction: row;     /* Button + menu in a row */
        justify-content: center;
    }

    .menu-toggle {
        display: none;           /* Hide burger */
    }

    .menu {
        display: flex !important;
        flex-direction: row;     /* Horizontal menu */
        width: auto;
        gap: 2rem;
        margin: 0;
    }

    .menu li a {
        padding: 0.5rem 1rem;
    }
}

.category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: var(--category-grid-columns);
}

.category-card {
    display: block;
    padding: 1.5rem;
    background: #161616;
    border: 1px solid #222;
    border-radius: 6px;
    text-decoration: none;
    color: #eee;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    background: #1e1e1e;
    border-color: #444;
    transform: translateY(-4px);
}

.category-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-card p {
    margin: 0;
    opacity: 0.85;
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card .card-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%; /* or 40% if you want it narrower */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover .card-bg {
    opacity: 0.25; /* subtle, not overpowering */
}

.halls-of-absolution svg {
    max-width: 800px;
    height: auto;
}

.section-padding hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 2rem 0;
    opacity: 0.5;
}

/* Weapon stats */

/* Container layout */
.weapon-stat {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.weapon-stat-label {
    width: 150px;
    font-weight: bold;
    color: #c9a86a; /* gold accent */
}

.weapon-value {
    min-width: 40px;
    text-align: right;
    font-family: monospace;
    color: #fff; /* readable on dark backgrounds */
}

/* Base slider styling */
.weapon-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 250px;
    height: 6px;
    background: #e6e6e6; /* light grey track */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

/* Chrome / Edge / Safari thumb */
.weapon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #c9a86a; /* gold */
    border-radius: 4px; /* slightly rounded square */
    border: 1px solid #8b6f3e; /* darker gold border */
    cursor: pointer;
}

/* Firefox thumb */
.weapon-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #c9a86a;
    border-radius: 4px;
    border: 1px solid #8b6f3e;
    cursor: pointer;
}

/* Firefox track */
.weapon-slider::-moz-range-track {
    background: #e6e6e6;
    height: 6px;
    border-radius: 3px;
}

/* Hover effect */
.weapon-slider:hover::-webkit-slider-thumb,
.weapon-slider:hover::-moz-range-thumb {
    background: #d8b77c; /* lighter gold on hover */
}


/* Attachment container */
/* Attachment container */
.weapon-attachments {
    margin: 10px 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* Label styling */
.weapon-attachment {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #c9a86a;
    cursor: pointer;
    user-select: none;
}

/* Base checkbox */
.weapon-attachment input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c9a86a;
    border-radius: 4px; /* matches slider thumb */
    margin-right: 8px;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    transition: 
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

/* Hover glow */
.weapon-attachment input[type="checkbox"]:hover {
    box-shadow: 0 0 6px rgba(201, 168, 106, 0.4);
    border-color: #d8b77c;
}

/* Checked state */
.weapon-attachment input[type="checkbox"]:checked {
    background-color: #c9a86a;
    border-color: #c9a86a;
    box-shadow: 0 0 6px rgba(201, 168, 106, 0.6);
}

/* Checkmark (centered) */
.weapon-attachment input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    width: 4px;
    height: 9px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.weapon-slider:disabled {
    background: #555; /* darker track */
    cursor: not-allowed;
    opacity: 0.5;
}

/* Disabled thumb (Chrome/Safari/Edge) */
.weapon-slider:disabled::-webkit-slider-thumb {
    background: #777;
    border-color: #555;
    cursor: not-allowed;
}

/* Disabled thumb (Firefox) */
.weapon-slider:disabled::-moz-range-thumb {
    background: #777;
    border-color: #555;
    cursor: not-allowed;
}

/* Special slider track for LZ Answerer power */
.lz-answerer-slider {
    background: linear-gradient(
        to right,
        #d9534f 0%,   #d9534f 33%,   /* Red */
        #0275d8 33%,  #0275d8 66%,   /* Blue */
        #5cb85c 66%,  #5cb85c 100%   /* Green */
    );
    border-radius: 3px;
}

/* Ensure the thumb stays visible on the gradient */
.lz-answerer-slider::-webkit-slider-thumb {
    position: relative;
    z-index: 2;
}

.lz-answerer-slider::-moz-range-thumb {
    position: relative;
    z-index: 2;
}