/**
 * ============================================================================
 * ELDER SPORES ONLINE - COMMUNITY BUILDS STYLES
 * ============================================================================
 * Styling for the Community Builds page
 * 
 * @version 1.0.0
 * @created 2025-12-26
 */

/* =============================================================================
   BUILD CATALOG CONTAINER
   ============================================================================= */

.build-catalog {
    position: absolute;
    bottom: 2%;
    left: 16.4%;
    width: 66%;
    height: 81%;
    background-color: var(--color-background);
    border: var(--border-standard);
    border-radius: 30px;
    /* background-image: url('/graphics/background-stats.png'); */
    padding: 1%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2%;
}

/* =============================================================================
   FEATURED CONTAINER (Top Section)
   ============================================================================= */

.featured-container {
    position: relative;
    padding: 1% 1% 1% 1% 1%;
    width: 100%;
    height: 30%;
    min-height: 30%;
    display: flex;
    box-sizing: border-box;
    border: 3px solid #ffd700; 
    border-radius: 20px;
    background-color: #000000b0;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), /* 50% dark overlay */
        url(/graphics/featured_bg.png);
    background-size: cover;
    background-position: center;
}

/* Featured Builds - Left Side */
.featured-builds {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    gap: 2%;
    padding: 1.5%;
    box-sizing: border-box;
    /* border: 2px solid #ffd700; 
    border-radius: 8px;
    background: rgba(200, 100, 180, 0.05); */
}

/* Featured Creators - Right Side Container */
.featured-creators {
    position: relative;
    width: 19%;
    height: 89%;
    margin-top: 1%;
    display: flex;
    flex-direction: column;
    gap: 5%;
    justify-content: center;
    box-sizing: border-box;
}

/* Featured Label - Top Section */
.featured-label {
    position: relative;
    flex: 1;
    width: 100%;
    padding: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 3.75%;
    font-size: 1.6cqw;
    font-weight: 600;
    color: rgb(255, 136, 0);
    border-radius: 6px; 
    /* background: #522700;
    border: 2px solid rgb(255, 136, 0);
    box-shadow: 0 0 10px rgba(255, 136, 0); */
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 4px rgb(0, 0, 0),
        0 0 8px rgba(0, 0, 0),
        0 2px 4px rgba(0, 0, 0),
        0 2px 12px rgba(255, 136, 0),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
}

/* Creator Cards - Bottom Section */
.creator-card {
    position: relative;
    flex: 1;
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    gap: 5%;
    padding: 3%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: clamp(1.1vb, 0.85rem, 1.1vb);
    color: var(--color-text-secondary, #a0a0a0);
}

.creator-card.featured {
    border: 1.5px solid #ffd700;
    background: #2e2800da;
    flex: 1;
    min-height: 0;
}

.creator-card.featured:hover {
    background: #522700;
    border: 2px solid rgb(255, 136, 0);
    box-shadow: 0 0 15px rgba(255, 136, 0);
    transform: scale(1.1);
}
                
/* =============================================================================
   CREATOR CARD CONTENT (Inner Elements)
   ============================================================================= */


.creator-card-avatar {
    height: 90%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 1.75px solid var(--color-primary);
    flex-shrink: 0;
}

/* Empty avatar placeholder - match real avatar sizing */
.creator-card-avatar.empty-avatar {
    height: 90%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(59, 185, 0, 0.1);
    border: 2px dashed rgba(59, 185, 0, 0.3);
}

.creator-card-name {
    font-size: clamp(1.9vb, 1.2rem, 1.9vb);
    color: var(--color-primary);
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 0, 0);
    flex: 1;
}

.creator-card.featured:hover .creator-card-avatar {
    border: 2.25px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 136, 0);
}

.creator-card.recommended:hover .creator-card-avatar {
    /* border: 2.25px solid var(--color-primary);
    box-shadow: 0 0 10px #3bb900; */
    border: 2.25px solid var(--color-primary);
    box-shadow: 0 0 8px #000000;
}
.creator-card.recommended:hover .creator-card-name {
    text-shadow: 0 0 30px rgb(0, 0, 0), 0 0 5px rgb(0, 0, 0);
}

/* =============================================================================
   COMMUNITY CONTAINER (Bottom Section)
   ============================================================================= */

.community-container {  
    position: relative;
    padding-left: 0%;
    padding-right: .8%;
    padding-top: 0.5%;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #000000 25%, #4a3728);
    border: var(--border-thick);
    border-radius: 20px;
    overflow: hidden;
}

.community-builds {   /* Left Side Container */
    position: relative;
    width: 81%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* background: #ff000d1a; for spacial testing */
    background-position: center;
    border-radius: 10px;
    padding-top: 0.65%;
    overflow-y: hidden;
}

/* Community Label */
.community-label {
    width: 100%;
    align-items: left;
    padding-top: 0.5%;
    padding-left: 2.25%;
    flex-shrink: 0;
    font-size: 1.6cqw;
    font-weight: 600;
    color: #3bb900;
    justify-content: center;
    border-radius: 6px; 
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 4px rgb(0, 0, 0),
        0 0 8px rgba(0, 0, 0),
        0 2px 4px rgba(0, 0, 0),
        0 2px 12px #3bb900,
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
}

/* Community Builds Grid Container */
.community-builds-container {
    position: relative;
    top: 0%;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 16px 14px;
    padding: 1%;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 1.75%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;  /* IE and Edge */
}

.community-builds-container::-webkit-scrollbar {
    display: none;
}

/* Recommended Creators - Right Side Container */
.recommended-creators {
    position: relative;
    width: 19.25%;
    height: 100%;
    padding-bottom: 0.85%;
    display: flex;
    flex-direction: column;
    gap: 1.6%;
    justify-content: center;
    box-sizing: border-box;
}

/* Recommended Label - Top Section */
.recommended-label {
    position: relative;
    flex: 1;
    width: 100%;
    padding-right: 1%;
    padding-left: 2%;
    padding-top: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 1.2cqw;
    font-weight: 600;
    color: #3bb900;
    border-radius: 6px; 
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 8px rgb(0, 0, 0),
        0 0 4px rgba(0, 0, 0),
        0 2px 4px rgba(0, 0, 0),
        0 2px 12px #3bb900,
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
}

.creator-card.recommended {
    border: 1.5px solid #ffd700;
    background: #2e2800da; 
    flex: 1;
    min-height: 0;
}

.creator-card.recommended:hover {
    background: #0b1f00d2;
    border: 3px solid #3bb900;
    box-shadow: 0 0 10px #51ff00;
    transform: scale(1.06);
}

/* Empty Recommended Creator Slot */
.creator-card.recommended.empty-slot {
    border: 2px dashed #194d00;
    background: rgba(0, 17, 31, 0.5);
    cursor: default;
    justify-content: flex-start;
}

.creator-card.recommended.empty-slot:hover {
    transform: none;
    box-shadow: none;
    border: 2px dashed #194d00;
    background: rgba(0, 17, 31, 0.5);
}

.empty-slot-text {
    font-size: clamp(1.5vb, 1.1rem, 1.5vb);
    color: rgba(255, 255, 255, 0.692);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.10em;
}

/* =============================================================================
   BUILD CARDS
   ============================================================================= */

.build-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.5s ease, box-shadow 0.5s ease, background-size 0.5s ease;
    font-size: clamp(1.2vb, 0.9rem, 1.2vb);
    color: var(--color-text-secondary, #a0a0a0);
    background-size: auto 80%;
    background-position: 98% 82%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Featured Build Cards */
.build-card.featured {
    flex: 1;
    height: 100%;
    aspect-ratio: auto;
    border: 2.5px solid rgba(180, 160, 60);
    background-color: rgba(0, 0, 0);
}

.build-card.featured:hover {
    border: 3px solid rgb(255, 136, 0);
    box-shadow: 0 0 15px rgba(255, 136, 0);
    transform: scale(1.1);
}

/* Filtered Build Cards (Community Grid) */
.build-card.filtered {
    width: 100%;
    aspect-ratio: 5 / 3;
    min-height: 50px;
    border: 2.5px solid #194d00;
    background-color: rgba(0, 0, 0, 1);
}

.build-card.filtered:hover {
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00;
    transform: scale(1.1);
    z-index: 1000;
}

/* Thumbnail background - full cover instead of positioned icon */
.build-card.featured.has-thumbnail,
.build-card.filtered.has-thumbnail {
    background-size: cover !important;
    background-position: 50% 25% !important;
    background-repeat: no-repeat !important;
}

/* =============================================================================
   BUILD CARD CONTENT (Inner Elements)
   ============================================================================= */

.build-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6% 3% 3% 6%;
    box-sizing: border-box;
}

.build-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
}

.build-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.build-card-name {
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1),
        0 2px 12px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
    line-height: 1.2;
    flex: 1;
}

.build-card-creator {
    font-size: clamp(1.2vb, 0.85rem, 1.2vb);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1),
        0 2px 12px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 1),
        -1px -1px 2px rgba(0, 0, 0, 1);
    white-space: nowrap;
    text-align: left;
}

.build-card-description {
    display: none;
}

/* AI Icon in header */
.build-card-ai-icon {
    width: 12%;
    aspect-ratio: 1;
    margin-top: -3%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
    flex-shrink: 0;
}

/* Footer - upvotes only */
.build-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
}

/* Upvote section */
.build-card-upvotes {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.75);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.build-card-upvotes .upvote-count {
    font-size: clamp(1.6vb, 1.1rem, 1.6vb);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.upvote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.upvote-btn:not(.upvoted):not([disabled]) {
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.upvote-btn:not(.upvoted):not([disabled]):hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
}

.upvote-btn.upvoted {
    color: #f5c842;
    cursor: default;
    text-shadow: 0 0 6px rgba(245, 200, 66, 0.6);
}

.upvote-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.build-card-upvotes.disabled .upvote-count {
    opacity: 0.7;
}

/* Featured build cards - larger text */
.build-card.featured .build-card-name {
    font-size: clamp(2vb, 1.3rem, 2vb);
}

.build-card.featured .build-card-description {
    -webkit-line-clamp: 4;
}

/* =============================================================================
   CATALOG FILTERS BAR
   ============================================================================= */

.catalog-filters-container {
    position: absolute;
    bottom: 5%;
    left: 15%;
    width: 70%;
    height: 40%;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

/* Filter Columns - flex containers */
.filter-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    gap: 8px;
    flex-shrink: 0;
}

/* Primary Filters Column */
.primary-filters {
    padding: 0 10px 0 0;
}

/* Secondary Filters Column */
.secondary-filters {
    padding: 0 10px;
    transition: opacity 0.2s ease, max-width 0.3s ease;
}

/* Tertiary Filters Column */
.tertiary-filters {
    padding: 0 10px;
    transition: opacity 0.2s ease, max-width 0.3s ease;
}

/* Hidden state for filter columns */
.filter-column.hidden {
    display: none;
}

/* Filter Buttons - relative positioning within flex columns */
.filter-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70%;
    padding: 0 16px;
    background: rgba(40, 40, 55, 0.8);
    border: 2px solid rgba(196, 166, 99, 0.3);
    color: var(--color-text-secondary, #a0a0a0);
    border-radius: 24px;
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

/* Primary filter button sizing */
.primary-filters .filter-btn {
    min-width: 50px;
}

/* Secondary filter button sizing */
.secondary-filters .filter-btn {
    min-width: 80px;
}

/* Tertiary filter button sizing */
.tertiary-filters .filter-btn {
    min-width: 70px;
}

/* Dividers - vertical separators */
.filter-divider {
    width: 2px;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(238, 190, 88, 0.5) 50%,
        transparent 100%);
    flex-shrink: 0;
    margin: 0 5px;
    transition: opacity 0.2s ease;
}

/* Hidden dividers */
.filter-divider.hidden {
    display: none;
}

/* Spacer - fills remaining space */
.filter-spacer {
    flex: 1;
    min-width: 10px;
}

/* Hover state */
.filter-btn:hover {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    color: var(--color-text-primary, #e0e0e0);
    transform: scale(1.05);
}

/* Active state - All */
.filter-btn.active {
    background: linear-gradient(135deg, 
        rgba(196, 166, 99, 0.3) 0%, 
        rgba(160, 130, 70, 0.2) 100%);
    font-weight: bold;
    border-color: var(--color-gold-primary, #c4a663);
    color: var(--color-gold-primary, #c4a663);
}

/* Active state - PvE (secondary) */
.catalog-filters-container.pve-active .secondary-filters .filter-btn.active {
    border-color: rgb(72, 168, 16);
    color: rgb(72, 168, 16);
    background: linear-gradient(135deg, 
        rgba(51, 126, 67, 0.2) 0%, 
        rgba(34, 88, 48, 0.15) 100%);
}

/* Active state - PvP (secondary) */
.catalog-filters-container.pvp-active .secondary-filters .filter-btn.active {
    border-color: rgb(252, 77, 23);
    color: rgb(252, 77, 23);
    background: linear-gradient(135deg, 
        rgba(156, 65, 65, 0.2) 0%, 
        rgba(105, 39, 39, 0.15) 100%);
}

/* Active state - Tertiary (always gold/primary, regardless of PvE/PvP) */
.tertiary-filters .filter-btn.active {
    background: linear-gradient(135deg, 
        rgba(196, 166, 99, 0.3) 0%, 
        rgba(160, 130, 70, 0.2) 100%);
    font-weight: bold;
    border-color: var(--color-gold-primary, #c4a663);
    color: var(--color-gold-primary, #c4a663);
}

/* Search Bar - flex positioned at end */
.filter-search {
    position: relative;
    width: 18%;
    height: 70%;
    flex-shrink: 0;
}

.filter-search input {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 45, 0.9);
    border: 2px solid rgba(196, 166, 99, 0.3);
    color: var(--color-text-primary, #e0e0e0);
    padding: 0 8% 0 5%;
    border-radius: 22px;
    font-size: clamp(1.8vb, 1.3rem, 1.8vb);
    box-sizing: border-box;
    box-shadow:
        0 0 8px rgba(0, 0, 0, .3),
        0 2px 4px rgba(0, 0, 0, .6),
        0 2px 12px rgba(0, 0, 0, 0.6);
    transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--color-gold-primary, #c4a663);
    background: rgba(40, 40, 55, 0.95);
    width: 140%;
}

.filter-search input::placeholder {
    color: rgba(160, 160, 160, 0.6);
}

/* =============================================================================
   FILTER OVERFLOW MENU (Dynamic Width Responsive)
   ============================================================================= */

.filter-overflow-container {
    position: relative;
    display: none; /* Hidden by default, shown by JS */
    flex-shrink: 0;
    margin: 0 8px;
    z-index: 150;
}

.filter-overflow-container.visible {
    display: flex;
    align-items: center;
}

.filter-overflow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 70%;
    min-height: 32px;
    background: rgba(40, 40, 55, 0.9);
    border: 2px solid rgba(196, 166, 99, 0.4);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-overflow-btn:hover {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    color: var(--color-text-primary, #e0e0e0);
    transform: scale(1.05);
}

.filter-overflow-container.open .filter-overflow-btn {
    background: linear-gradient(135deg, 
        rgba(196, 166, 99, 0.3) 0%, 
        rgba(160, 130, 70, 0.2) 100%);
    font-weight: bold;
    border-color: var(--color-gold-primary, #c4a663);
    color: var(--color-gold-primary, #c4a663);
}

.filter-overflow-btn .overflow-dots {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    line-height: 1;
    transition: color 0.25s ease;
}

.filter-overflow-container.open .filter-overflow-btn .overflow-dots {
    color: #ffd700;
}

.filter-overflow-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    background: linear-gradient(to right, var(--color-background) 25%, var(--color-secondary));
    border: 2px solid rgba(196, 166, 99, 0.5);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.filter-overflow-container.open .filter-overflow-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.overflow-section {
    display: none; /* Hidden by default, shown by JS based on what's in overflow */
}

.overflow-section.visible {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overflow-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(196, 166, 99, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px;
    margin-bottom: 2px;
}

.overflow-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Overflow button styling - matches filter bar buttons */
.overflow-buttons .filter-btn {
    width: 100%;
    height: auto;
    min-height: 36px;
    padding: 8px 16px;
    font-size: clamp(0.85rem, 1.5vb, 1rem);
    justify-content: flex-start;
    text-align: left;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.overflow-buttons .filter-btn:hover {
    transform: translateX(4px);
}

/* Section divider when both sections visible */
.overflow-secondary-section.visible + .overflow-tertiary-section.visible::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196, 166, 99, 0.4) 50%,
        transparent 100%);
    margin-bottom: 8px;
}

/* Transition for filter columns moving in/out */
.filter-column {
    transition: opacity 0.25s ease, max-width 0.3s ease, padding 0.25s ease;
}

.filter-column.overflow-hidden {
    opacity: 0;
    max-width: 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: hidden;
    pointer-events: none;
    flex-shrink: 1 !important;
}

.filter-divider {
    transition: opacity 0.25s ease, max-width 0.2s ease;
}

.filter-divider.overflow-hidden {
    opacity: 0;
    max-width: 0;
    margin: 0;
}

.filter-search .search-icon {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(1.2vb, 0.9rem, 1.2vb);
    opacity: 0.6;
    pointer-events: none;
}

/* =============================================================================
   BUILD CARD TOOLTIPS
   ============================================================================= */

.build-tooltip-content {
    width: 100%;
    height:auto;
}

.tooltip-build-name {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    margin-bottom: 8px;
}

.tooltip-class,
.tooltip-curse,
.tooltip-subclass {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.tooltip-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.tooltip-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(196, 166, 99, 0.4) 50%, 
        transparent 100%);
    margin: 10px 0;
}

.tooltip-subclass-header {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: var(--color-primary, #c4a663);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.tooltip-skilllines {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.tooltip-skilllines li {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}

/* Class-specific skill line colors */
.tooltip-skilllines li[data-class="arcanist"] { color: #32cd32; }
.tooltip-skilllines li[data-class="dragonknight"] { color: #ff8c00; }
.tooltip-skilllines li[data-class="necromancer"] { color: #c144ff; }
.tooltip-skilllines li[data-class="nightblade"] { color: #ff000d; }
.tooltip-skilllines li[data-class="sorcerer"] { color: #3e5eff; }
.tooltip-skilllines li[data-class="templar"] { color: #ffd700; }
.tooltip-skilllines li[data-class="warden"] { color: #14efff; }

.tooltip-description {
    font-size: clamp(1.5vb, 1.0rem, 1.5vb);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    white-space: pre-line;
    max-height: 150px;
    overflow-y: auto;
}

/* AI Build Notice */
.tooltip-ai-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.3vb, 0.85rem, 1.3vb);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.tooltip-ai-icon {
    height: 2em;
    width: auto;
    flex-shrink: 0;
}

/* =============================================================================
   CONTEXT MENU
   ============================================================================= */

.build-context-menu {
    position: fixed;
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid #4a3728;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.context-menu-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.context-menu-item span {
    font-size: 1rem;
}

.context-menu-divider {
    height: 1px;
    background: #4a3728;
    margin: 6px 0;
}

/* Context menu private profile message */
.context-menu-message {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    max-width: 200px;
}

/* Toast notification */
.community-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 40, 40, 0.95);
    border: solid 2px rgba(245, 200, 66, 0.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.community-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Moderator Context Menu Items */
.context-menu-item.moderator-only {
    border-left: 3px solid #1e90ff;
    background: rgba(30, 144, 255, 0.1);
}

.context-menu-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0.5rem 0;
}