/* ============================================
   BAKESBUILDS.COM - Est. 2011
   "The Premiere Theorycraft Resource for
    the Legendary SKT Bakeray"

   Aesthetic: Thottbot meets Wowhead circa 2006
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Cinzel:wght@400;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-darkest: #1a1a2e;
    --bg-dark: #16213e;
    --bg-panel: #0f3460;
    --bg-panel-alt: #1a1a3e;
    --bg-input: #0a0a1e;
    --gold: #ffd700;
    --gold-dim: #b8960c;
    --green-common: #1eff00;
    --blue-rare: #0070dd;
    --purple-epic: #a335ee;
    --orange-legendary: #ff8000;
    --red-poor: #9d9d9d;
    --gray-text: #aaa;
    --text-light: #ccc;
    --text-white: #e0e0e0;
    --border-dark: #2a2a4e;
    --border-gold: #665520;
    --link-blue: #44bbff;
    --link-hover: #88ddff;
    --horde-red: #8C1616;
    --alliance-blue: #0055cc;
    --nft-shame: #ff4444;
    --stoner-green: #42b883;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darkest);
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-light);
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--link-blue);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* === TOP AD BAR (fake) === */
.fake-ad-bar {
    background: #0a0a14;
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
    padding: 6px;
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(180deg, #1a1a3e 0%, #0f0f2e 100%);
    border-bottom: 2px solid var(--gold-dim);
    padding: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 10px;
    color: var(--gold-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-info {
    text-align: right;
    font-size: 11px;
    color: #666;
}

.header-info .server-time {
    color: var(--gray-text);
}

.header-info .visitor-count {
    color: #555;
    font-family: 'VT323', monospace;
    font-size: 14px;
}

/* === NAVIGATION === */
.main-nav {
    background: linear-gradient(180deg, #222244 0%, #1a1a3a 100%);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav li a {
    display: block;
    padding: 8px 16px;
    color: var(--gold-dim);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid var(--border-dark);
    transition: all 0.2s;
}

.main-nav li:first-child a {
    border-left: 1px solid var(--border-dark);
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--bg-panel);
    color: var(--gold);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* === LAYOUT === */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 15px;
}

.page-wrapper.full-width {
    grid-template-columns: 1fr;
}

/* === PANELS (the core Thottbot look) === */
.panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(180deg, #2a2a5e 0%, #1a1a4e 100%);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h2,
.panel-header h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.panel-header .panel-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.tag-legendary {
    background: rgba(255, 128, 0, 0.2);
    color: var(--orange-legendary);
    border: 1px solid rgba(255, 128, 0, 0.3);
}

.tag-epic {
    background: rgba(163, 53, 238, 0.2);
    color: var(--purple-epic);
    border: 1px solid rgba(163, 53, 238, 0.3);
}

.tag-rare {
    background: rgba(0, 112, 221, 0.2);
    color: var(--blue-rare);
    border: 1px solid rgba(0, 112, 221, 0.3);
}

.tag-common {
    background: rgba(30, 255, 0, 0.2);
    color: var(--green-common);
    border: 1px solid rgba(30, 255, 0, 0.3);
}

.tag-nft-shame {
    background: rgba(255, 68, 68, 0.2);
    color: var(--nft-shame);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.panel-body {
    padding: 12px;
}

/* === ITEM TOOLTIP STYLE === */
.item-tooltip {
    background: linear-gradient(180deg, #1a0a2e 0%, #0a0a1e 100%);
    border: 1px solid var(--purple-epic);
    border-radius: 3px;
    padding: 12px 15px;
    margin: 10px 0;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(163, 53, 238, 0.2);
}

.item-tooltip.legendary {
    border-color: var(--orange-legendary);
    box-shadow: 0 0 15px rgba(255, 128, 0, 0.2);
}

.item-tooltip .item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.item-tooltip .item-name.legendary {
    color: var(--orange-legendary);
}
.item-tooltip .item-name.epic {
    color: var(--purple-epic);
}
.item-tooltip .item-name.rare {
    color: var(--blue-rare);
}

.item-tooltip .item-bind {
    color: var(--gold-dim);
    font-size: 11px;
}

.item-tooltip .item-stats {
    color: var(--text-white);
    font-size: 12px;
    margin: 6px 0;
}

.item-tooltip .item-stats .stat-green {
    color: var(--green-common);
}

.item-tooltip .item-flavor {
    color: var(--gold);
    font-style: italic;
    font-size: 12px;
    margin-top: 8px;
}

/* === QUOTE BLOCKS (for Discord quotes) === */
.discord-quote {
    background: var(--bg-input);
    border-left: 3px solid var(--purple-epic);
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 0 3px 3px 0;
    font-size: 13px;
}

.discord-quote .quote-author {
    font-weight: bold;
    margin-bottom: 4px;
}

.discord-quote .quote-author.sylv { color: var(--blue-rare); }
.discord-quote .quote-author.bakeray { color: var(--orange-legendary); }
.discord-quote .quote-author.liverpunch { color: var(--green-common); }

.discord-quote .quote-text {
    color: var(--text-light);
}

.discord-quote .quote-timestamp {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
}

/* === CHARACTER SHEET === */
.char-sheet {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1px;
    background: var(--border-dark);
    border: 1px solid var(--border-dark);
    font-size: 12px;
}

.char-sheet dt,
.char-sheet dd {
    padding: 6px 10px;
    background: var(--bg-dark);
}

.char-sheet dt {
    color: var(--gold-dim);
    font-weight: bold;
    text-align: right;
}

.char-sheet dd {
    color: var(--text-light);
}

/* === TALENT TREE === */
.talent-tree {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
}

.talent-node {
    background: var(--bg-input);
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    transition: all 0.3s;
    cursor: default;
    position: relative;
}

.talent-node:hover {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.talent-node .talent-name {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 3px;
}

.talent-node .talent-points {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    color: var(--green-common);
    font-weight: bold;
}

.talent-node .talent-desc {
    color: var(--gray-text);
    font-size: 10px;
}

.talent-node.maxed {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* === TABLES (Thottbot-style) === */
.wowdb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wowdb-table th {
    background: linear-gradient(180deg, #2a2a5e 0%, #1a1a4e 100%);
    color: var(--gold);
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wowdb-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(42, 42, 78, 0.5);
}

.wowdb-table tr:hover td {
    background: rgba(15, 52, 96, 0.3);
}

.wowdb-table .col-icon {
    width: 24px;
    text-align: center;
}

/* === SIDEBAR === */
.sidebar .panel {
    font-size: 12px;
}

.sidebar .panel-body ul {
    list-style: none;
    padding: 0;
}

.sidebar .panel-body li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(42, 42, 78, 0.3);
}

.sidebar .panel-body li:last-child {
    border-bottom: none;
}

/* === SEARCH BAR (fake) === */
.search-bar {
    display: flex;
    gap: 4px;
    margin: 10px 0;
}

.search-bar input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 2px;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold-dim);
}

.search-bar button {
    background: linear-gradient(180deg, #3a3a6e 0%, #2a2a5e 100%);
    border: 1px solid var(--border-dark);
    color: var(--gold);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    text-transform: uppercase;
}

.search-bar button:hover {
    background: linear-gradient(180deg, #4a4a7e 0%, #3a3a6e 100%);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    font-size: 11px;
    color: #555;
    padding: 8px 0;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--gray-text);
}

.breadcrumbs .separator {
    margin: 0 5px;
    color: #444;
}

/* === COMMENT SECTION (fake forum) === */
.comment {
    border-bottom: 1px solid var(--border-dark);
    padding: 10px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: bold;
    font-size: 12px;
}

.comment-date {
    font-size: 10px;
    color: #555;
}

.comment-rating {
    margin-left: auto;
    font-size: 11px;
}

.comment-rating .upvote { color: var(--green-common); cursor: pointer; }
.comment-rating .downvote { color: var(--nft-shame); cursor: pointer; }

.comment-body {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* === NFT SHAME WALL === */
.nft-wall {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 68, 68, 0.03),
        rgba(255, 68, 68, 0.03) 10px,
        transparent 10px,
        transparent 20px
    );
}

.nft-item {
    background: var(--bg-input);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 3px;
    padding: 10px;
    margin: 8px 0;
}

.nft-item .nft-name {
    color: var(--nft-shame);
    font-weight: bold;
}

.nft-item .nft-paid {
    color: var(--nft-shame);
    text-decoration: line-through;
}

.nft-item .nft-worth {
    color: var(--green-common);
    font-weight: bold;
}

/* === HERO BANNER === */
.hero-banner {
    background: linear-gradient(180deg, #0f0f2e 0%, #1a1a3e 50%, #0f0f2e 100%);
    border-bottom: 2px solid var(--border-dark);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,128,0,0.08) 0%, transparent 70%);
}

.hero-banner h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: var(--orange-legendary);
    text-shadow: 0 0 20px rgba(255, 128, 0, 0.5);
    margin-bottom: 8px;
    position: relative;
}

.hero-banner .hero-subtitle {
    font-size: 14px;
    color: var(--gold-dim);
    font-style: italic;
    position: relative;
}

/* === HIT COUNTER (classic web) === */
.hit-counter {
    text-align: center;
    padding: 15px;
    font-family: 'VT323', monospace;
    color: var(--green-common);
    font-size: 14px;
}

.hit-counter .counter-digits {
    display: inline-flex;
    gap: 2px;
    margin: 0 5px;
}

.hit-counter .digit {
    background: #000;
    border: 1px solid #333;
    padding: 2px 5px;
    font-size: 16px;
    color: var(--green-common);
    min-width: 18px;
    text-align: center;
}

/* === FOOTER === */
.site-footer {
    background: #0a0a14;
    border-top: 2px solid var(--border-dark);
    padding: 20px;
    text-align: center;
    font-size: 11px;
    color: #444;
    margin-top: 30px;
}

.site-footer a {
    color: #555;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
}

.footer-disclaimer {
    font-size: 10px;
    color: #333;
    margin-top: 10px;
    font-style: italic;
}

/* === SCROLLBAR (Thottbot dark) === */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a5e;
}

/* === UTILITY === */
.text-legendary { color: var(--orange-legendary); }
.text-epic { color: var(--purple-epic); }
.text-rare { color: var(--blue-rare); }
.text-common { color: var(--green-common); }
.text-gold { color: var(--gold); }
.text-poor { color: var(--red-poor); }
.text-nft-shame { color: var(--nft-shame); }
.text-stoner { color: var(--stoner-green); }

.blink {
    animation: blink-text 1s step-end infinite;
}
@keyframes blink-text {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* === UNDER CONSTRUCTION GIF PLACEHOLDER === */
.under-construction {
    text-align: center;
    padding: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
}

.under-construction .uc-bars {
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-info {
        text-align: center;
    }

    .talent-tree {
        grid-template-columns: repeat(2, 1fr);
    }
}
