@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* ----- GUI Base Tooltip (Oraxen/ItemsAdder Style) ----- */
.gui-tooltip {
    background-color: #0b0705;
    border: 2px solid #5a3c1c;
    outline: 2px solid #000;
    box-shadow: inset 0 0 0 2px #2a1c0d, 4px 4px 10px rgba(0,0,0,0.8);
    padding: 16px;
    width: 380px;
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #c6b086;
    text-shadow: 2px 2px 0 #000;
    line-height: 1.2;
    transition: transform 0.2s ease-in-out;
}

/* Base text classes */
.gui-white { color: #ffffff; }
.gui-gold { color: #ffa500; }
.gui-green { color: #55ff55; }
.gui-red { color: #ff5555; }

/* Header and dividers */
.gui-header {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.gui-divider {
    height: 2px;
    background: #3a2a18;
    border-bottom: 2px solid #1a1008;
    margin: 10px 0;
}
.gui-section-title {
    color: #c87f33;
    margin-bottom: 4px;
}

/* Item Icon Section */
.gui-icon-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}
.gui-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gui-tag {
    background: #33271a;
    border: 2px solid #5a4b36;
    padding: 2px 8px;
    color: #a89f91;
    font-size: 1rem;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.5);
    text-align: center;
}
.gui-icon-frame {
    width: 64px;
    height: 64px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="2" y="2" width="60" height="60" fill="none" stroke="%23c87f33" stroke-width="2"/><circle cx="32" cy="32" r="28" fill="%231a1008"/></svg>') no-repeat center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gui-icon-frame img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Rows and Lists */
.gui-text-row {
    margin-bottom: 4px;
}
.gui-list-item {
    margin-bottom: 6px;
    padding-left: 10px;
    position: relative;
}
.gui-list-item::before {
    content: "◈";
    position: absolute;
    left: -5px;
    color: #888;
}

/* Stats Container (Flexbox for Name --- Value) */
.gui-stats-container {
    display: flex;
    flex-direction: column;
}
.gui-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.gui-stat-row span:first-child {
    color: #c6b086;
}

/* Specific Card Adjustments */
.gui-class-card {
    width: 420px;
}
/* ----- Original Rank Cards (Modern Glass Panel Style) ----- */
.rpg-rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-gold);
    border-radius: var(--radius);
    padding: 20px;
    width: 280px;
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
}
.rpg-rank-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.rpg-rank-image {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
}
.rpg-rank-name {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: var(--font-header);
}
.rpg-rank-price {
    color: #55FF55;
    font-weight: bold;
    font-size: 1.2rem;
}
.rpg-rank-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.rpg-rank-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    color: #ccc;
}
.rpg-rank-features li:last-child {
    border-bottom: none;
}

/* ----- Modern Mob Cards (Glass Panel Style) ----- */
.rpg-mob-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 5px solid #ff5555;
    border-radius: var(--radius);
    padding: 20px;
    width: 380px;
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
}
.rpg-mob-header {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.rpg-mob-name {
    color: #ff5555;
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-header);
}
.rpg-mob-top {
    display: flex;
    gap: 15px;
}
.rpg-mob-image-col {
    flex: 0 0 120px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.rpg-mob-img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
}
.rpg-mob-stats-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rpg-mob-stat {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.rpg-mob-descbox {
    margin-top: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    color: #ccc;
    text-align: center;
    line-height: 1.4;
}
.rpg-mob-drops-title {
    color: #55FFFF;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}
.rpg-mob-drops-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rpg-mob-drop {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 30px;
    padding: 6px;
}
.rpg-mob-drop-icon {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.rpg-mob-drop-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.2;
    padding-right: 10px;
}

/* GUI Filter Buttons (Restored) */
.gui-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 10px;
    justify-content: center;
}
.gui-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary-gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.gui-filter-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-gold);
}
.gui-filter-btn.active {
    background: var(--primary-gold) !important;
    color: #000 !important;
    border-color: var(--primary-gold) !important;
}

/* ----- Advanced Class Dashboard (2-Column Grid) ----- */
.adv-class-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-gold);
    border-radius: var(--radius);
    padding: 25px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 15px auto;
    font-family: inherit;
    color: #fff;
}

/* Left Column: Profile */
.adv-class-left {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.adv-class-image-container {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}
.adv-class-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}
.adv-class-placeholder {
    width: 100%;
    height: 100%;
    background: url('https://mc-heads.net/avatar/Steve/200') center/contain no-repeat;
    opacity: 0.3;
}
.adv-class-title {
    color: var(--primary-gold);
    text-align: center;
    font-family: var(--font-header);
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.adv-class-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.adv-role-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ddd;
    text-transform: uppercase;
}
.adv-class-weapon {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.adv-weapon-title {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.adv-weapon-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}
.adv-class-performance {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.adv-perf-title {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.adv-perf-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.adv-perf-row:last-child {
    margin-bottom: 0;
}
.adv-perf-label {
    flex: 0 0 60px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ddd;
}
.adv-perf-bars {
    flex: 1;
    display: flex;
    gap: 4px;
}
.adv-bar {
    height: 12px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
}
.bar-green { background: #55FF55; box-shadow: 0 0 5px rgba(85,255,85,0.4); }
.bar-yellow { background: #FFFF55; box-shadow: 0 0 5px rgba(255,255,85,0.4); }
.bar-red { background: #FF5555; box-shadow: 0 0 5px rgba(255,85,85,0.4); }

/* Right Column: Skills */
.adv-class-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
.adv-skills-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    font-family: var(--font-header);
    text-align: center;
}
.adv-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-grow: 1;
    align-content: space-evenly;
}
@media (max-width: 768px) {
    .adv-skills-grid {
        grid-template-columns: 1fr;
    }
}
.adv-skill-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, background 0.2s;
}
.adv-skill-box:hover {
    background: rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.adv-skill-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}
.adv-skill-icon {
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.adv-skill-title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.adv-skill-name {
    font-weight: bold;
    color: var(--primary-gold);
    font-size: 1.1rem;
    line-height: 1.1;
}
.adv-skill-lvl {
    background: rgba(255,165,0,0.15);
    color: #ffa500;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(255,165,0,0.3);
}
.adv-skill-desc {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ----- Class Navigation Menu ----- */
.class-navigation-wrapper {
    margin: 20px auto;
    width: 100%;
    max-width: 900px;
}
.class-submenus-container {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.faction-classes-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.class-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    width: 100px;
    text-align: center;
}
.class-nav-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.class-nav-btn.active {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}
.class-nav-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.class-nav-btn.active img {
    border-color: var(--primary-gold);
}
.class-nav-btn span {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}
.class-nav-btn.active span {
    color: #fff;
}
