/* ===== TBC.TXT STYLES ===== */

/* ===== GLOBAL MOBILE OPTIMIZATIONS ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
* {
    -webkit-tap-highlight-color: rgba(30, 255, 0, 0.1);
}
/* Better scrolling on mobile */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1eff00 #222222;
}
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}
.overflow-x-auto::-webkit-scrollbar-track {
    background: #222222;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #1eff00;
    border-radius: 4px;
}
/* ===== TERMINAL-SPECIFIC STYLES (not in Tailwind) ===== */
.ascii-logo {
    white-space: pre;
    font-family: 'Courier Prime', monospace;
    overflow-x: auto;
}
.command-line:before {
    content: '$ ';
    color: #1eff00;
}
.class-list li {
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}
.class-list li:hover {
    border-left-color: #1eff00;
    padding-left: 1.25rem;
}
.class-list li.active {
    border-left-color: #ffffff;
}
/* Prevent text selection on interactive elements (mobile) */
.class-list li,
.phase-btn,
.spec-tab {
    -webkit-user-select: none;
    user-select: none;
}
/* ===== MOBILE-SPECIFIC OVERRIDES ===== */
@media (max-width: 767px) {
    body {
        padding: 0.75rem !important;
        font-size: 0.75rem !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    header {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .ascii-logo {
        font-size: 7px !important;
        line-height: 1.1 !important;
        margin-bottom: 0.625rem !important;
    }
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    aside {
        padding: 1rem !important;
    }
    aside h3 {
        font-size: 0.8125rem !important;
    }
    .class-list li {
        padding: 0.625rem 0 !important;
        padding-left: 0.75rem !important;
        font-size: 0.8125rem !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    main {
        padding: 1rem !important;
        overflow-x: hidden !important;
    }
    /* Dynamic content */
    .command-line {
        font-size: 0.6875rem !important;
        margin: 0.75rem 0 !important;
        word-break: break-all;
    }
    h2 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    h3 {
        font-size: 0.8125rem !important;
        margin: 0.75rem 0 !important;
    }
    .meta-info {
        font-size: 0.6875rem !important;
        padding: 0.625rem 0.75rem !important;
        margin: 0.75rem 0 !important;
    }
    /* Buttons and tabs */
    .phase-btn, .spec-tab {
        font-size: 0.6875rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 44px !important;
    }
    /* Tables - ensure horizontal scroll */
    .overflow-x-auto {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    table {
        font-size: 0.6875rem !important;
        min-width: 500px !important;
        display: table !important;
    }
    th, td {
        padding: 0.5rem !important;
        font-size: 0.625rem !important;
        white-space: nowrap !important;
        text-align: justify !important;
    }
    th {
        font-size: 0.5625rem !important;
    }
    /* Talent trees and macros */
    .talent-tree {
        font-size: 0.5625rem !important;
        padding: 0.625rem !important;
        line-height: 1.3 !important;
        overflow-x: auto !important;
    }
    footer {
        padding: 1rem !important;
        font-size: 0.625rem !important;
    }
}
@media (max-width: 479px) {
    body {
        padding: 0.5rem !important;
        font-size: 0.6875rem !important;
    }
    header {
        padding: 0.75rem !important;
    }
    .ascii-logo {
        font-size: 5.5px !important;
    }
    aside {
        padding: 0.75rem !important;
    }
    .class-list li {
        font-size: 0.75rem !important;
        min-height: 44px !important;
        padding-left: 0.625rem !important;
    }
    main {
        padding: 0.75rem !important;
    }
    .overflow-x-auto {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    table {
        min-width: 450px !important;
    }
    th, td {
        padding: 0.375rem !important;
        font-size: 0.5625rem !important;
    }
    th {
        font-size: 0.5rem !important;
    }
    .talent-tree {
        font-size: 0.5rem !important;
        padding: 0.5rem !important;
    }
    .phase-btn, .spec-tab {
        font-size: 0.625rem !important;
        padding: 0.375rem 0.625rem !important;
    }
    .command-line {
        font-size: 0.625rem !important;
    }
    h2 {
        font-size: 0.875rem !important;
    }
    h3 {
        font-size: 0.75rem !important;
    }
    .meta-info {
        font-size: 0.625rem !important;
        padding: 0.5rem 0.625rem !important;
    }
}
/* ===== ITEM QUALITY COLORS ===== */
.item-quality-rare { color: #0070dd; }
.item-quality-rare a {
    color: #0070dd !important;
    text-decoration: none;
    border-bottom: 1px dotted #0070dd;
    transition: all 0.2s ease;
}
.item-quality-rare a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}
.item-quality-epic { color: #a335ee; }
.item-quality-epic a {
    color: #a335ee !important;
    text-decoration: none;
    border-bottom: 1px dotted #a335ee;
    transition: all 0.2s ease;
}
.item-quality-epic a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}
.item-quality-legendary { color: #ff8000; }
.item-quality-legendary a {
    color: #ff8000 !important;
    text-decoration: none;
    border-bottom: 1px dotted #ff8000;
    transition: all 0.2s ease;
}
.item-quality-legendary a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}
/* ===== WOWHEAD TOOLTIP OVERRIDES ===== */
.wowhead-tooltip {
    background: #222222 !important;
    border: 1px solid #ffffff !important;
    font-family: 'IBM Plex Mono', monospace !important;
    color: #ffffff !important;
    font-size: 12px !important;
}
.wowhead-tooltip .q0, .wowhead-tooltip .q { color: #9d9d9d !important; }
.wowhead-tooltip .q1 { color: #ffffff !important; }
.wowhead-tooltip .q2 { color: #1eff00 !important; }
.wowhead-tooltip .q3 { color: #0070dd !important; }
.wowhead-tooltip .q4 { color: #a335ee !important; }
.wowhead-tooltip .q5 { color: #ff8000 !important; }
.wowhead-tooltip table { background: #222222 !important; border-color: #ffffff !important; }
/* ===== ATTUNEMENT TRACKER CHECKBOXES ===== */
.attunement-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #1eff00;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}
.attunement-checkbox:hover {
    border-color: #ffffff;
    box-shadow: 0 0 4px rgba(30, 255, 0, 0.3);
}
.attunement-checkbox:checked {
    background: #1eff00;
    border-color: #1eff00;
}
.attunement-checkbox:checked::after {
    content: '\2713';
    color: #222222;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.attunement-step {
    transition: all 0.15s ease;
}
.attunement-step:hover {
    background: rgba(30, 255, 0, 0.05);
}
.attunement-step.completed .step-text {
    opacity: 0.5;
    text-decoration: line-through;
}
.progress-bar-bg {
    background: #333333;
    height: 12px;
    overflow: hidden;
    border: 1px solid #1eff00;
}
.progress-bar-fill {
    background: #1eff00;
    height: 100%;
    transition: width 0.3s ease;
}

/* ===== HORIZONTAL NAV DROPDOWNS ===== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-btn {
    font-family: 'IBM Plex Mono', monospace;
}
.nav-dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu li {
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}
.nav-dropdown-menu li:hover {
    border-left-color: #1eff00;
}
.nav-dropdown-menu li.active {
    border-left-color: #ffffff;
    background: rgba(30, 255, 0, 0.1);
}
