
:root {
    --primary-jade: #00a86b;
    --primary-accent: #9932cc;
    --secondary-cyan: #00e6e6;
    --dark-bg: #0f0f23;
    --darker-bg: #050507;
    --card-bg: rgba(15, 15, 24, 0.72);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #d6d6df;
    --text-muted: #9b9baa;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --nav-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 20% 10%, rgba(153, 50, 204, 0.16), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 107, 0.11), transparent 28%),
        linear-gradient(180deg, #050507 0%, #08080f 52%, #050507 100%);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(0, 168, 107, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 50, 204, 0.035) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(rgba(255,255,255,0.025) 50%, rgba(0,0,0,0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.35;
}

a { color: inherit; }
img { max-width: 100%; }

/* Header / Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-height);
    background: rgba(12, 12, 29, 0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
}

.nav-container {
    width: min(1440px, calc(100% - 48px));
    min-height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.fixed-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    flex-shrink: 0;
}

.fixed-mark img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 700;
    color: var(--primary-jade);
    text-shadow: 0 0 14px rgba(0, 168, 107, 0.45);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin: 0 0 0 auto;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--nav-height);
    color: rgba(255,255,255,0.72);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.12rem;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-jade), var(--primary-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(153, 50, 204, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
    margin-left: 0.5rem;
    padding: 1rem 2rem;
    color: #ffffff;
    background: linear-gradient(120deg, var(--primary-jade), var(--primary-accent));
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 0 24px rgba(0, 168, 107, 0.16);
    white-space: nowrap;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.nav-youtube {
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0.95;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-youtube:hover {
    color: var(--primary-jade);
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.mobile-menu {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    z-index: 999;
    display: none;
    background: rgba(5, 5, 10, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-family: var(--font-heading);
}

.mobile-menu a.active { color: var(--primary-jade); }

/* Hero */
.itemlog-hero-banner {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 33vw, 520px);
    overflow: hidden;
    border-bottom: 1px solid rgba(0,168,107,0.3);
    background: #050507;
}

.itemlog-hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.86) contrast(1.04) saturate(1.05);
}

.itemlog-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.12) 55%, rgba(5,5,7,0.72) 100%),
        linear-gradient(to right, rgba(0,0,0,0.20) 0%, transparent 45%, rgba(0,0,0,0.14) 100%),
        radial-gradient(circle at 18% 74%, rgba(0,168,107,0.14), transparent 34%),
        radial-gradient(circle at 82% 28%, rgba(153,50,204,0.14), transparent 38%);
    pointer-events: none;
}

.itemlog-breadcrumb-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 1.25rem auto 0;
    position: relative;
    z-index: 3;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0.72rem 1rem;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
}

.breadcrumb li {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.65rem;
    color: var(--primary-jade);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb li:last-child { color: var(--primary-jade); }

.itemlog-wrapper {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 1.25rem 0 clamp(4.5rem, 8vw, 7rem);
}

.itemlog-shell {
    border: 1px solid rgba(255,255,255,0.13);
    background: linear-gradient(145deg, rgba(15,15,24,0.78), rgba(15,15,24,0.48));
    box-shadow: 0 24px 70px rgba(0,0,0,0.38), 0 0 40px rgba(0,168,107,0.06);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.itemlog-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.itemlog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: var(--secondary-cyan);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.itemlog-title {
    margin: 0 0 1rem;
    color: var(--primary-jade);
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 5.6vw, 4.85rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 0 26px rgba(0,168,107,0.45);
}

.itemlog-copy,
.itemlog-card p,
.itemlog-muted {
    color: var(--text-secondary);
    line-height: 1.8;
}

.itemlog-copy {
    max-width: 960px;
    margin: 0;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.itemlog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.itemlog-actions.compact { margin-top: 1rem; }

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.92rem 1.35rem;
    border: 0;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-jade), var(--primary-accent));
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-secondary {
    color: var(--secondary-cyan);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(0,230,230,0.35);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.itemlog-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.itemlog-stat,
.itemlog-card,
.itemlog-panel {
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.014));
    box-shadow: 0 14px 36px rgba(0,0,0,0.20);
}

.itemlog-stat {
    padding: 1.25rem;
}

.itemlog-stat span {
    display: block;
    color: var(--primary-jade);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.itemlog-stat small {
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.itemlog-card,
.itemlog-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.itemlog-card h2,
.itemlog-panel h2 {
    margin: 0 0 1rem;
    color: var(--secondary-cyan);
    font-family: var(--font-heading);
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.itemlog-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.itemlog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
    margin-bottom: 1rem;
}

.itemlog-field {
    display: grid;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.itemlog-field input,
.itemlog-field select,
.itemlog-panel textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,168,107,0.045);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
}

.itemlog-field input:focus,
.itemlog-field select:focus,
.itemlog-panel textarea:focus {
    outline: none;
    border-color: var(--primary-jade);
    box-shadow: 0 0 14px rgba(0,168,107,0.18);
}

.itemlog-panel textarea {
    min-height: 260px;
    resize: vertical;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.itemlog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.itemlog-chip,
.chip {
    border: 1px solid rgba(0,230,230,0.28);
    background: rgba(0,230,230,0.055);
    color: var(--text-secondary);
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    font-size: 0.78rem;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.itemlog-chip:hover,
.itemlog-chip.active,
.chip:hover,
.chip.active {
    color: #fff;
    border-color: rgba(0,168,107,0.58);
    background: rgba(0,168,107,0.18);
    transform: translateY(-2px);
}

.itemlog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.item-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,168,107,0.045);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,168,107,0.58);
    box-shadow: 0 18px 45px rgba(0,168,107,0.08);
}

.item-id {
    color: var(--text-primary);
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-weight: 800;
    word-break: break-word;
}

.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.badge {
    color: var(--secondary-cyan);
    border: 1px solid rgba(0,230,230,0.28);
    background: rgba(0,230,230,0.055);
    padding: 0.26rem 0.58rem;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
}

.copy-btn {
    border: 1px solid rgba(0,168,107,0.58);
    background: transparent;
    color: var(--primary-jade);
    padding: 0.42rem 0.72rem;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.72rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.copy-btn:hover {
    background: var(--primary-jade);
    color: #050507;
    transform: translateY(-1px);
}

.itemlog-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.itemlog-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10003;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text-primary);
    padding: 0.9rem 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.itemlog-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.itemlog-danger {
    border-color: rgba(255, 77, 109, 0.7) !important;
    color: #ff8fa3 !important;
}

.itemlog-danger:hover {
    background: #ff4d6d !important;
    color: #fff !important;
}

.itemlog-panel code,
.itemlog-card code,
.itemlog-copy code {
    color: var(--primary-jade);
    background: rgba(0, 168, 107, 0.1);
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(0,168,107,0.16);
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(2,2,5,0.74);
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand img {
    width: 86px;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    border-radius: 7px;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
    color: var(--primary-jade);
    border-color: rgba(0,168,107,0.45);
    transform: translateY(-2px);
}

.footer-column h3 {
    margin: 0 0 1.25rem;
    color: var(--secondary-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-column a:hover { color: var(--primary-jade); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .nav-links,
    .nav-cta,
    .nav-youtube { display: none; }

    .mobile-menu-button { display: block; }

    .nav-container { width: min(100% - 32px, 1440px); }
}

@media (max-width: 992px) {
    .itemlog-stats,
    .itemlog-controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .itemlog-hero-banner {
        min-height: clamp(300px, 56vw, 440px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .itemlog-stats,
    .itemlog-controls {
        grid-template-columns: 1fr;
    }

    .itemlog-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .itemlog-actions .btn-primary,
    .itemlog-actions .btn-secondary {
        width: 100%;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root { --nav-height: 68px; }

    .nav-container,
    .itemlog-breadcrumb-wrap,
    .itemlog-wrapper,
    .footer-content {
        width: min(100% - 28px, 1180px);
    }

    .fixed-mark img {
        width: 44px;
        height: 44px;
    }

    .logo-text { font-size: 1.05rem; }

    .itemlog-hero-banner { min-height: 300px; }

    .itemlog-title { letter-spacing: 0.035em; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Item Log dropdown/category improvements */
.itemlog-controls {
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.7fr) minmax(220px, 0.9fr) minmax(150px, 0.45fr);
}

.itemlog-helper {
    margin: -0.25rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.item-card.item-card-highlight {
    border-color: rgba(0, 230, 230, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 230, 230, 0.24), 0 18px 45px rgba(0,168,107,0.12);
}

.item-category-heading {
    grid-column: 1 / -1;
    margin: 1.2rem 0 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0,168,107,0.35);
    background: linear-gradient(120deg, rgba(0,168,107,0.18), rgba(153,50,204,0.12));
    color: var(--secondary-cyan);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .itemlog-controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .itemlog-controls {
        grid-template-columns: 1fr;
    }
}
