/* ==============================================================================
   Azylum Archlord - Official Portal Stylesheet (Dark Fantasy MMORPG Theme)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0b0e;
    --bg-secondary: #12141c;
    --bg-card: rgba(22, 26, 37, 0.85);
    --bg-glass: rgba(18, 21, 30, 0.75);
    --border-color: rgba(212, 175, 55, 0.25);
    --border-focus: #d4af37;
    --gold-primary: #d4af37;
    --gold-hover: #f3c748;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --cyan-glow: rgba(0, 180, 255, 0.35);
    --text-primary: #edf2f7;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(20, 30, 50, 0.6) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

/* ==============================================================================
   Typography & Utilities
   ============================================================================== */
h1, h2, h3, h4, .cinzel {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-gold {
    color: var(--gold-primary);
    text-shadow: 0 0 12px var(--gold-glow);
}

.text-cyan {
    color: #38bdf8;
    text-shadow: 0 0 10px var(--cyan-glow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================================================
   Navbar
   ============================================================================== */
.navbar {
    background: rgba(10, 11, 14, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-brand img {
    height: 38px;
    width: 38px;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 20%, var(--gold-primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==============================================================================
   Buttons
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa841c 100%);
    color: #0d0f14;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f3c748 0%, #c49925 100%);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.2);
    color: #000;
}

.btn-outline {
    background: rgba(22, 26, 37, 0.6);
    border-color: var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.btn-lg {
    padding: 14px 34px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    background: url('../img/backgroundHero.png') no-repeat center top / cover;
    border-bottom: 2px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(10, 11, 14, 0.7) 0%, 
        rgba(10, 11, 14, 0.85) 60%, 
        rgba(10, 11, 14, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, #f3c748 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-rates-bar {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 8px;
    gap: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rate-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 700;
}

.rate-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* ==============================================================================
   Status Bar / Live Server Status
   ============================================================================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* ==============================================================================
   Features & Cards
   ============================================================================== */
.section {
    padding: 75px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 30px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.22), inset 0 0 15px rgba(212, 175, 55, 0.04);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: inline-block;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================================================================
   Forms & Auth Containers
   ============================================================================== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    flex: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(10, 12, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(10, 12, 17, 0.95);
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Flash Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

/* ==============================================================================
   Dashboard Tables & Layout
   ============================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-list {
    list-style: none;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==============================================================================
   Footer
   ============================================================================== */
.footer {
    background: #07080a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 25px;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* ==============================================================================
   Responsive / Mobile — comprehensive breakpoints
   ============================================================================== */

/* ── 1024px: Tablets landscape ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        padding: 70px 0 90px;
    }
    .hero-title {
        font-size: 44px;
    }
    .section {
        padding: 55px 0;
    }
}

/* ── 768px: Tablets portrait / large phones ─────────────────────────── */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 55px 0 70px;
    }
    .hero-title {
        font-size: 34px;
        letter-spacing: 0.5px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-actions {
        gap: 12px;
    }
    .hero-actions .btn-lg {
        padding: 12px 22px;
        font-size: 13px;
        width: 100%;
        max-width: 340px;
    }
    .hero-rates-bar {
        gap: 15px;
        padding: 10px 15px;
    }

    /* Sections */
    .section {
        padding: 45px 0;
    }
    .section-title {
        font-size: 26px;
    }

    /* Features grid → 1 column */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Auth card */
    .auth-card {
        padding: 28px 20px;
    }

    /* Table: add horizontal scroll wrapper */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer links wrap */
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}

/* ── 600px: Small phones ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* Container gets a touch-friendly horizontal padding */
    .container {
        padding: 0 14px;
    }

    /* Hero */
    .hero {
        padding: 45px 0 60px;
    }
    .hero-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hero-actions .btn-lg {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    /* Stats bar */
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Sections */
    .section {
        padding: 35px 0;
    }
    .section-title {
        font-size: 22px;
    }
    .section-header {
        margin-bottom: 30px;
    }

    /* Beta Banner section */
    .beta-banner-inner {
        padding: 28px 18px !important;
        border-radius: 10px !important;
    }
    .beta-banner-title {
        font-size: 20px !important;
    }
    .beta-banner-desc {
        font-size: 14px !important;
    }
    /* Command cards: stack badge + tag vertically on tiny screens */
    .cmd-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    /* Command code line: allow wrapping */
    .cmd-code-line {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .cmd-code-line code {
        font-size: 14px !important;
        word-break: break-all;
    }
    /* Banner action buttons full-width */
    .beta-banner-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .beta-banner-actions .btn {
        width: 100% !important;
        justify-content: center;
    }

    /* Guide steps: full-column */
    .guide-steps-grid {
        grid-template-columns: 1fr !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Auth */
    .auth-card {
        padding: 22px 16px;
    }
    .auth-title {
        font-size: 22px;
    }

    /* Dashboard grid (already 1-col at 900, just tighten padding) */
    .panel-card {
        padding: 18px 14px;
    }

    /* Pagination: smaller targets */
    .pagination a, .pagination span {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* ── 400px: Very small / foldable phones ────────────────────────────── */
@media (max-width: 400px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .stats-bar-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .section-title {
        font-size: 19px;
    }
}

/* ==============================================================================
   Azylum Archlord - Item Database & Tooltip Styles
   ============================================================================== */
.item-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-control {
    background: rgba(10, 12, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.filter-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.item-icon-box {
    width: 44px;
    height: 44px;
    background: #0d0e12;
    border-radius: 8px;
    border: 2px solid #2a2e3d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.item-icon-box img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.item-row {
    transition: background 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-row:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.07) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(212, 175, 55, 0.04) 100%) !important;
    box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.04);
}

.item-row:hover .item-icon-box {
    box-shadow: 0 0 16px var(--gold-glow), 0 0 6px rgba(255, 255, 255, 0.3);
    border-color: var(--gold-primary);
}

/* Dedicated Static Item Table Card */
.item-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.06);
    overflow: hidden;
    margin-bottom: 35px;
    position: relative;
}

.item-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.item-table {
    width: 100%;
    border-collapse: collapse;
}

.item-table th {
    background: rgba(8, 10, 14, 0.75);
    padding: 18px 22px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1.2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.item-table td {
    padding: 18px 22px;
    vertical-align: middle;
}

/* Category Quick Filter Pills */
.category-pills-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-pill-btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 12, 18, 0.85);
    color: var(--text-secondary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-pill-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
    background: rgba(212, 175, 55, 0.08);
}

.cat-pill-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.item-pill {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-weapon { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.pill-armor  { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.pill-acc    { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.pill-potion { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-stone  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Archlord Authentic In-Game Tooltip Box */
.alef-tooltip {
    background: rgba(10, 12, 16, 0.96);
    border: 2px solid #63522f;
    border-radius: 8px;
    padding: 16px;
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.2);
    min-width: 290px;
    max-width: 380px;
}

.alef-tooltip-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.alef-tooltip-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.alef-tooltip-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.alef-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.alef-stat-label {
    color: var(--text-secondary);
}

.alef-stat-val {
    font-weight: 600;
    color: #fff;
}

.alef-socket-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    border: 1px dashed rgba(212, 175, 55, 0.25);
}

.alef-socket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.alef-socket-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.alef-socket-legend {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 2px;
}
.legend-dot.min {
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}
.legend-dot.max {
    background: rgba(255, 255, 255, 0.2);
    border: 1px dashed #718096;
}

/* Lista de Slots (com quebra fluida caso venham 8 ou mais) */
.alef-socket-slots-list {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.alef-socket-slot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Mínimo Garantido: Preenchido com brilho ciano */
.alef-socket-slot.socket-guaranteed {
    border: 1.5px solid #38bdf8;
    background: radial-gradient(circle at 35% 35%, #0284c7 0%, #032b44 70%, #08121e 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45), inset 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Máximo Variável: Translúcido com borda tracejada */
.alef-socket-slot.socket-possible {
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    background: rgba(18, 22, 32, 0.5);
    opacity: 0.6;
}

.alef-socket-slot:hover {
    transform: scale(1.15);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 21, 30, 0.8);
    color: var(--text-secondary);
}

.pagination a:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.pagination .active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: 700;
    box-shadow: 0 0 12px var(--gold-glow);
}

.pagination .disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    color: var(--text-muted);
}
/* ==============================================================================
   Item Details Mobile Optimization & Links Fix
   ============================================================================== */
.item-details-container {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

/* Breadcrumb Links */
.item-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

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

.item-breadcrumb a:hover,
.item-breadcrumb a:focus {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* Grid & Layout */
.item-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.item-header-card {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.item-icon-box-lg {
    width: 72px;
    height: 72px;
}

.item-icon-box-lg img {
    width: 56px;
    height: 56px;
}

.item-header-info {
    min-width: 0;
    flex: 1;
}

.item-tid-badge {
    font-family: monospace;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.item-title {
    font-family: var(--font-cinzel);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    word-break: break-word;
}

.item-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.opt-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.item-actions-wrapper {
    margin-top: 1.5rem;
}

.item-actions-wrapper .btn {
    text-decoration: none;
}

/* Related Items Grid & Cards Fix */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    transition: var(--transition);
}

.related-item-card:hover,
.related-item-card:focus {
    text-decoration: none;
    color: inherit;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.related-item-card:hover .item-icon-box {
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ── Responsivo para Tablets e Smartphones (< 900px) ────────────────────────── */
@media (max-width: 900px) {
    .item-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── Responsivo para Celulares (< 600px) ────────────────────────────────────── */
@media (max-width: 600px) {
    .item-details-container {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .item-header-card {
        padding: 18px 16px;
        gap: 1rem;
    }

    .item-icon-box-lg {
        width: 60px;
        height: 60px;
    }

    .item-icon-box-lg img {
        width: 44px;
        height: 44px;
    }

    .item-title {
        font-size: 1.35rem;
    }

    .alef-tooltip {
        padding: 14px;
        min-width: 100%;
    }

    .opt-subgrid {
        grid-template-columns: 1fr;
    }

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

/* ── Telas muito pequenas (< 400px) ────────────────────────────────────────── */
@media (max-width: 400px) {
    .item-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-icon-box-lg {
        margin-bottom: 0.5rem;
    }
}

/* ==============================================================================
   Items Page — Compact & Ergonomic UI (Table + Mobile Cards)
   ============================================================================== */

.items-page-container {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.items-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.items-page-title {
    font-family: var(--font-cinzel);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin: 0 0 0.2rem 0;
    letter-spacing: 1px;
}

.items-page-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Card de Filtros */
.items-filter-card {
    padding: 16px 18px;
    margin-bottom: 18px;
}

.search-bar-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 240px;
}

.search-btns-wrap {
    display: flex;
    gap: 8px;
}

.btn-reset-filter {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-reset-filter:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.items-filter-grid {
    gap: 10px;
    margin-top: 4px;
}

.filter-label {
    font-size: 11px;
    margin-bottom: 3px;
}

.filter-control {
    padding: 7px 10px;
    font-size: 12.5px;
    height: 36px;
}

/* Barra de Categorias Horizontal com rolagem suave */
.category-pills-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-pills-bar::-webkit-scrollbar {
    height: 4px;
}
.category-pills-bar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.pills-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 4px;
    flex-shrink: 0;
}

.cat-pill-btn {
    padding: 5px 11px;
    font-size: 11.5px;
    flex-shrink: 0;
}

/* Barra de Metadados dos Resultados */
.results-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 10px;
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-source-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Tabela em Desktop */
.items-master-table th {
    padding: 10px 14px;
    font-size: 11px;
}

.items-master-table td {
    padding: 10px 14px;
    font-size: 12.5px;
}

.item-thumb-box {
    width: 38px;
    height: 38px;
}

.item-thumb-box img {
    width: 28px;
    height: 28px;
}

.mono-tid {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-name-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.item-name-link:hover {
    text-decoration: underline;
}

.item-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.item-cat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.item-level-val {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

.class-text {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.8rem;
}

.race-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-compact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
}

.btn-view-item {
    padding: 5px 12px;
    font-size: 10.5px;
    text-decoration: none;
}

.empty-results-cell {
    text-align: center;
    padding: 3.5rem 1.25rem;
    color: var(--text-muted);
}

.empty-results-cell h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.empty-results-cell p {
    font-size: 0.85rem;
    max-width: 380px;
    margin: 0 auto 1.2rem;
    line-height: 1.45;
}

.items-pagination {
    margin: 24px 0 10px;
    gap: 5px;
}

.items-pagination a,
.items-pagination span {
    padding: 6px 11px;
    font-size: 12px;
}

/* ==============================================================================
   Mobile Transformation: Linhas da Tabela viram Cards Autônomos (<= 768px)
   ============================================================================== */
@media (max-width: 768px) {
    .items-master-table thead {
        display: none;
    }

    .items-master-table,
    .items-master-table tbody,
    .items-master-table tr.item-list-entry {
        display: block;
        width: 100%;
    }

    .items-master-table tr.item-list-entry {
        background: var(--bg-card);
        border: 1px solid rgba(212, 175, 55, 0.15);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px 14px;
        position: relative;
    }

    .items-master-table td {
        display: block;
        padding: 4px 0;
        border: none;
        text-align: left !important;
    }

    /* Ícone flutuando à esquerda e Nome à direita */
    .items-master-table td.col-icon {
        float: left;
        margin-right: 12px;
        margin-bottom: 6px;
    }

    .items-master-table td.col-tid {
        display: inline-block;
        margin-bottom: 2px;
    }

    .items-master-table td.col-name {
        clear: none;
        margin-bottom: 8px;
    }

    .items-master-table td.col-level,
    .items-master-table td.col-class-race,
    .items-master-table td.col-stats {
        clear: both;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        font-size: 12px;
    }

    /* Rótulo antes do dado no mobile */
    .items-master-table td.col-level::before,
    .items-master-table td.col-class-race::before,
    .items-master-table td.col-stats::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
        margin-right: 12px;
    }

    .items-master-table td.col-class-race {
        text-align: right;
    }

    .items-master-table td.col-stats {
        align-items: flex-end;
    }

    .items-master-table td.col-action {
        clear: both;
        margin-top: 8px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .items-master-table td.col-action .btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}

@media (max-width: 500px) {
    .items-page-container {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .items-page-title {
        font-size: 1.3rem;
    }

    .search-btns-wrap {
        width: 100%;
    }

    .search-btns-wrap .btn {
        flex: 1;
        text-align: center;
    }
}