/* --- CORE STYLES --- */
body {
    background-color: #120c08;
    color: #eaddcf;
    font-size: 13px; /* Smaller base font */
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0f0906; }
::-webkit-scrollbar-thumb { background: #3e2b1e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ffb700; }

.sidebar-transition { transition: transform 0.3s ease-in-out; }

/* --- LOGO STYLES (Scaled Down) --- */
.logo-container {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    line-height: 0.9;
}
.logo-fat {
    font-weight: 900;
    font-size: 1.3rem; /* Reduced */
    background: linear-gradient(to bottom, #ffe082 0%, #ffca28 40%, #ff6f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 1px 0px #000);
    letter-spacing: 0.5px;
    text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
}
.logo-pirate {
    font-weight: 900;
    font-size: 1.3rem; /* Reduced */
    color: #ffffff;
    text-shadow: 
        1px 1px 0px #000, 
        0px 0px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}
.logo-icon {
    font-size: 2rem; /* Reduced */
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.9));
}

/* --- BUTTON SHAPES & STYLES (Unified Gold/Bronze Look) --- */
.clip-octagon {
    clip-path: polygon(
        10px 0, calc(100% - 10px) 0, 
        100% 10px, 100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 10px 100%, 
        0 calc(100% - 10px), 0 10px
    ); 
}

.btn-wrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.1s, filter 0.2s;
    cursor: pointer;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.8));
}
.btn-wrapper:active {
    transform: translateY(1px);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}
.btn-wrapper:hover {
    filter: drop-shadow(0 0 5px rgba(255, 200, 0, 0.3));
}

/* Unified Auth Button Style (Gold/Bronze Frame + Dark Center) */
.btn-auth-border {
    background: linear-gradient(135deg, #f0e68c 0%, #b8860b 20%, #8b4513 50%, #b8860b 80%, #f0e68c 100%);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.5);
}
.btn-auth-inner {
    background: linear-gradient(to bottom, #3e2723 0%, #1a0f0a 100%);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid #5d4037;
}
.btn-wrapper:hover .btn-auth-inner {
    background: linear-gradient(to bottom, #4e342e 0%, #2c1b15 100%);
    color: #ffcc00;
}

/* Hero CTA remains Green as per original context, but refined */
.btn-hero-border { background: linear-gradient(to bottom, #ffd700, #b8860b); }
.btn-hero-inner {
    background: linear-gradient(to bottom, #43a047 0%, #1b5e20 100%);
    color: #fff;
    font-size: 1rem;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 0 15px rgba(0,0,0,0.3);
}
.btn-wrapper:hover .btn-hero-inner {
    background: linear-gradient(to bottom, #4caf50 0%, #2e7d32 100%);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), inset 0 0 10px rgba(255,255,0,0.2);
}

/* --- SVG ICONS STYLING (Scaled) --- */
.sidebar-icon {
    width: 18px; /* Reduced from 22px */
    height: 18px;
    fill: url(#goldGradient);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.8));
    transition: all 0.3s;
}

.sidebar-item:hover .sidebar-icon {
    filter: drop-shadow(0 0 3px #ffcc00);
    transform: scale(1.1);
}

/* Updated Icon Classes for "Pirate Green/Gold" Theme */
.cat-icon { filter: drop-shadow(0 2px 1px rgba(0,0,0,0.8)); transition: transform 0.2s; }
.group:hover .cat-icon { transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(255,215,0,0.4)); }

.cat-icon-scroll { fill: url(#scrollGradientNew); }
.cat-icon-star { fill: url(#starGradientNew); }
.cat-icon-cup { fill: url(#cupGradientNew); }
.cat-icon-gem { fill: url(#gemGradientNew); }
.cat-icon-mega { fill: url(#megaGradientNew); }
.cat-icon-mic { fill: url(#torchGradientNew); }
.cat-icon-wheel { fill: url(#wheelGradientNew); }

/* --- CATEGORY PLANKS (PREMIUM STYLE) --- */
.nav-plank {
    background: 
        linear-gradient(to bottom, rgba(30, 20, 10, 0.8), rgba(20, 10, 5, 0.9)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    background-color: #2b1d14; /* Deep rich brown */
    border: 1px solid #4a3525;
    color: #eaddcf;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.2s;
    position: relative;
    overflow: hidden; /* Important for accents */
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

/* Golden Corner Brackets Simulation */
.nav-plank-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 6px;
    /* Using gradients to create the 4 corner bracket shapes */
    background:
        /* Top Left Corner */
        linear-gradient(to right, #b8860b 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, #b8860b 2px, transparent 2px) 0 0,
        /* Top Right Corner */
        linear-gradient(to left, #b8860b 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, #b8860b 2px, transparent 2px) 100% 0,
        /* Bottom Left Corner */
        linear-gradient(to right, #b8860b 2px, transparent 2px) 0 100%,
        linear-gradient(to top, #b8860b 2px, transparent 2px) 0 100%,
        /* Bottom Right Corner */
        linear-gradient(to left, #b8860b 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, #b8860b 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 8px 8px; /* Size of brackets */
    opacity: 0.8;
}

/* Add a faint glow/bevel to brackets */
.nav-plank-corners::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(255,215,0,0.4) 0%, transparent 10px),
        radial-gradient(circle at 100% 0, rgba(255,215,0,0.4) 0%, transparent 10px),
        radial-gradient(circle at 0 100%, rgba(255,215,0,0.4) 0%, transparent 10px),
        radial-gradient(circle at 100% 100%, rgba(255,215,0,0.4) 0%, transparent 10px);
}

.nav-plank:hover, .nav-plank.active {
    background-color: #3d2b1f;
    border-color: #b8860b;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 200, 0, 0.6);
    transform: translateY(-1px);
}

.nav-plank:hover .nav-plank-corners {
    opacity: 1;
    filter: brightness(1.3);
}

/* --- SEARCH BAR --- */
.search-input {
    background: #0f0906; /* Very dark background */
    border: 1px solid #5d4037; /* Brown/Gold border */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    font-family: 'Roboto', sans-serif;
    color: #bfb3a8;
}
.search-input:focus {
    border-color: #b8860b;
    color: #eaddcf;
}

.game-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.ribbon-drops {
    background: linear-gradient(to right, #ef5350, #c62828);
    border: 1px solid #ffcc00;
}

.footer-link:hover {
    color: #ffcc00;
    transform: translateX(2px);
}

/* New Sidebar Separator with Diamond Center */
.sidebar-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
    height: 1px;
}
.sidebar-separator::before, .sidebar-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3e2b1e, transparent);
}
.sidebar-separator::before { background: linear-gradient(90deg, transparent, #5d4037); }
.sidebar-separator::after { background: linear-gradient(90deg, #5d4037, transparent); }

/* Diamond shape in center of separator */
.sidebar-separator span {
    width: 6px;
    height: 6px;
    background: #3e2b1e;
    border: 1px solid #5d4037;
    transform: rotate(45deg);
    margin: 0 4px;
}

/* Active Sidebar Item Style (Left Gold Arrow/Chevron) */
.sidebar-active {
    background: linear-gradient(to right, #3e2b1e, transparent);
    position: relative;
    box-shadow: inset 4px 0 0 #ffcc00;
}
/* Triangle on the left side of active item */
.sidebar-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0; 
    height: 0; 
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 10px solid #ffcc00; /* Gold chevron */
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.5));
    display: none; /* Replaced by box-shadow for cleaner look or adjust if needed */
}
/* Custom Chevron for Active Item based on screenshot */
.active-chevron {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 20" preserveAspectRatio="none"><path d="M0,0 L10,10 L0,20 Z" fill="%23ffcc00"/></svg>') no-repeat center left;
    background-size: cover;
    z-index: 10;
}

/* --- SEO CONTENT BLOCK (styles via selectors, bare HTML inside) --- */
.seo-content {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.seo-content::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    pointer-events: none;
}
.seo-content__inner {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem 2rem;
    color: #bcaaa4;
    font-size: 0.875rem;
}
@media (min-width: 1024px) {
    .seo-content__inner { padding: 2rem 2rem 2rem; }
}
.seo-content__inner h1 {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
    .seo-content__inner h1 { font-size: 1.5rem; }
}
.seo-content__inner p {
    margin-bottom: 1.25rem;
}
.seo-content__inner h2 {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.seo-content__inner ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}
.seo-content__inner ul li {
    margin-bottom: 0.25rem;
}
.seo-content__inner ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}
.seo-content__inner ol li {
    margin-bottom: 0.25rem;
}
.seo-content__inner > div {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #3e2b1e;
    margin-bottom: 1rem;
}
.seo-content__inner table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.seo-content__inner thead tr {
    background: #261a12;
    border-bottom: 1px solid #3e2b1e;
}
.seo-content__inner th {
    padding: 0.75rem 1rem;
    color: #ffcc00;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.seo-content__inner tbody tr {
    background: rgba(26, 17, 11, 0.8);
    border-bottom: 1px solid #3e2b1e;
}
.seo-content__inner tbody tr:hover {
    background: rgba(38, 26, 18, 0.5);
}
.seo-content__inner tbody tr:last-child {
    border-bottom: none;
}
.seo-content__inner td {
    padding: 0.625rem 1rem;
}
.seo-content__inner p:last-child {
    color: #8d7864;
    font-size: 0.75rem;
    margin-bottom: 0;
}
