/**
 * ============================================================================
 * ELDER SPORES ONLINE - PROFILE PAGE STYLES
 * ============================================================================
 * Styles for the public profile page
 * 
 * @version 1.0.0
 * @created 2025-12-28
 */

/* =============================================================================
   PAGE STRUCTURE (Footer Positioning)
   ============================================================================= */

html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.main-footer {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   MAIN LAYOUT
   ============================================================================= */

/* Nav spacer - height set dynamically by JS to match nav */
.nav-spacer {
    flex-shrink: 0;
}

.profile-main {
    flex: 1 0 auto;
    position: relative;
    margin-top: 0;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    /* Override base styles.css offset - center on page */
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0;
}

/* Profile Content Container - width based on viewer subscription */
.profile-content-container {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subscriber viewers get wider layout (no ads) */
body.viewer-subscribed .profile-content-container {
    width: 92%;
}

/* Profile Page Header Title */
.profile-page-title {
    position: absolute;
    left: 16%;
    width: 68%;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-page-title svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.profile-page-title .title-text {
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.12em;
    fill: #ffd700;
    stroke: rgba(121, 101, 0, 0.8);
    stroke-width: 2px;
    paint-order: stroke fill;
    filter: 
        drop-shadow(0 0 3px rgba(255, 215, 0, 0.8))
        drop-shadow(0 0 7px rgba(255, 215, 0, 0.5))
        drop-shadow(0 0 16px rgba(255, 215, 0, 0.3));
    animation: svgTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes svgTitleGlow {
    from {
        filter: 
            drop-shadow(0 0 3px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 7px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.3));
    }
    to {
        filter: 
            drop-shadow(0 0 5px rgba(255, 215, 0, .9))
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 21px rgba(255, 215, 0, 0.4));
    }
}

/* =============================================================================
   PROFILE HEADER
   ============================================================================= */

.profile-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 5%;
    width: 100%;
    padding: 3% 4%;
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.97), rgba(5, 5, 8, 0.99));    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin-bottom: 3%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.profile-avatar-container {
    flex-shrink: 0;
    position: relative;
}

/* ESO Stream Team / Creator Program Badge */
.stream-team-logo {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    z-index: 5;
    transition: all 0.05s ease;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    background-color: rgba(255, 255, 255, 0.4);
}
.stream-team-logo:hover {
    transform: translateX(-50%) scale(1.5);
}

.stream-team-logo img {
    width: 103%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    filter: grayscale(0%) brightness(1);
    transform: translateX(-2.3%) translateY(7%);
    transition: all 0.05s ease;
}
#stream-team-logo img {
    filter: grayscale(0%) brightness(1);
}

#stream-team-logo:hover {
    background-color: #51ff00;
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00;
    transform: scale(1.1) translateX(-44%);
}

#stream-team-logo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: translateX(-2.5%) translateY(7.5%);
    transition: all 0.05s ease;
}

.profile-avatar {
    width: 21vw;
    min-width: 175px;
    max-width: 262px;
    aspect-ratio: 1 / 1 !important;
    background: rgba(4, 4, 8, 0.84);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-display-name {
    font-size: 2rem;
    font-weight: 600;
    color: rgb(255, 215, 0);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-bio {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    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);
    margin: 0;
    max-width: 600px;
    white-space: pre-wrap;
}

/* Profile Stats Column (Right Side) */
.profile-stats-column {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 15px);
    flex-shrink: 1;
    margin-left: auto;
    align-self: center;
    min-width: 0;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(8px, 1.5vw, 15px) clamp(12px, 2.5vw, 25px);
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    min-width: 0;
    white-space: nowrap;
}

.stat-value {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #f5c842;
}

.stat-label {
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Creator Social Links */
.profile-socials {
    display: flex;
    align-self: center;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-top: auto;
    width: fit-content;
    transform: translateX(-14.6%);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(40, 40, 50, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(0.9%);
    filter: brightness(0.9);
    transition: filter 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.25);
    background: rgba(60, 60, 75, 1);
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00;
}

.social-btn:hover img {
    filter: brightness(1.1);
}

/* Share Profile Button */
.share-profile-btn {
    position: absolute;
    bottom: 3%;
    right: 1%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    background: rgba(40, 40, 55, 0.2);
    border: 2px solid rgba(196, 166, 99, 0.1);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.share-profile-btn:hover {
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    color: #e0e0e0;
    transform: scale(1.05);
}

.share-profile-btn .share-icon {
    font-size: 1.1em;
}

/* Edit Banner Button */
.edit-banner-btn {
    position: absolute;
    top: 3%;
    right: 1%;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(196, 166, 99, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-banner-btn:hover {
    opacity: 1;
    background: rgba(60, 60, 80, 0.9);
    border-color: rgba(196, 166, 99, 0.6);
    transform: scale(1.2);
}

.report-profile-btn {
    position: absolute;
    top: 3%;
    right: 1%;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 51, 51, 0.1);
    border-radius: 50%;
    color: rgba(255, 51, 51, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 8px;
}

.report-profile-btn:hover {
    opacity: 1;
    background: rgba(60, 60, 80, 0.9);
    border-color: #ff3333;
    color: #ff3333;
    transform: scale(1.2);
}

/* Banner Upload Modal */
.banner-upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.banner-upload-modal.active {
    display: flex;
}

.banner-upload-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.99));
    border: 2px solid rgba(196, 166, 99, 0.4);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.banner-upload-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-upload-close:hover {
    background: rgba(255, 100, 100, 0.3);
    color: #fff;
}

.banner-upload-title {
    margin: 0 0 20px 0;
    color: rgb(255, 215, 0);
    font-size: 1.4rem;
    text-align: center;
}

.banner-upload-requirements {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.banner-upload-requirements p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.banner-upload-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.banner-upload-requirements li {
    margin: 5px 0;
}

.banner-upload-preview {
    width: 100%;
    aspect-ratio: 10 / 3;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.banner-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-preview-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

.banner-upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.banner-upload-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(196, 166, 99, 0.3), rgba(196, 166, 99, 0.2));
    border: 2px solid rgba(196, 166, 99, 0.5);
    border-radius: 8px;
    color: rgb(255, 215, 0);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-upload-btn:hover {
    background: linear-gradient(135deg, rgba(196, 166, 99, 0.5), rgba(196, 166, 99, 0.3));
    border-color: rgba(196, 166, 99, 0.8);
    transform: scale(1.02);
}

.banner-remove-btn {
    padding: 12px 24px;
    background: rgba(180, 60, 60, 0.3);
    border: 2px solid rgba(180, 60, 60, 0.5);
    border-radius: 8px;
    color: #ff8888;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-remove-btn:hover {
    background: rgba(180, 60, 60, 0.5);
    border-color: rgba(180, 60, 60, 0.8);
}

/* Tier badges */
.tier-badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-free {
    background: rgba(100, 100, 100, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(100, 100, 100, 0.5);
}

.tier-basic {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.tier-premium {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
    border: 2px solid rgba(156, 39, 176, 0.4);
}

.tier-lifetime {
    background: linear-gradient(135deg, rgba(180, 147, 48, 0.35), rgba(175, 149, 0, 0.25));
    color: #f5c842;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(245, 200, 66, 0.5);
    box-shadow: 0 0 10px rgba(245, 200, 66, 0.3);
}

/* =============================================================================
   BUILDS SECTION
   ============================================================================= */

.profile-builds-section {
    width: 100%;
    margin-bottom: 5%;
}

.profile-builds-section.hidden {
    display: none;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgb(255, 215, 0);
    margin: 0;
    text-shadow: 1px 2px 7px rgba(0, 0, 0, 0.85);
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(245, 200, 66, 0.5);
}

.profile-builds-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =============================================================================
   BUILD CARDS (Profile Variant)
   ============================================================================= */

.profile-build-card {
    aspect-ratio: 5 / 3;
    background-size: cover;
    background-position: center;
    background-color: rgb(0, 0, 0);
    border-radius: 25px;
    border: 2px solid rgba(175, 175, 175, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
                inset 0 0 10px rgba(0, 0, 0, 1),
                inset 0 0 15px rgba(0, 0, 0, 1),
                inset 0 0 20px rgba(0, 0, 0, 1);
    padding: 2% 1% 1% 2%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.profile-build-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.profile-build-card:hover {
    border: 3px solid #3bb900;
    box-shadow: 0 0 12px #51ff00,
                inset 0 0 10px rgba(0, 0, 0, 1),
                inset 0 0 15px rgba(0, 0, 0, 1),
                inset 0 0 20px rgba(0, 0, 0, 1);
    transform: scale(1.06);
}

.profile-build-card .build-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 15px;
}

.profile-build-card .build-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-build-card .build-card-title-group {
    display: flex;
    flex-direction: column;
}

.profile-build-card .build-card-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(255, 215, 0);
    margin: 0;
    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);
}

.profile-build-card .build-card-ai-icon {
    width: 33px;
    height: 33px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.profile-build-card .build-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.profile-build-card .build-card-upvotes {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 12px;
}

.profile-build-card .upvote-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.profile-build-card .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;
}

.profile-build-card .upvote-btn:not(.upvoted):not([disabled]) {
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.profile-build-card .upvote-btn:not(.upvoted):not([disabled]):hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
}

.profile-build-card .upvote-btn.upvoted {
    color: #f5c842;
    cursor: pointer;
    text-shadow: 0 0 6px rgba(245, 200, 66, 0.6);
}

.profile-build-card .upvote-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Type icon for AI builds */
.profile-build-card .type-icon-img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */

.profile-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(30, 30, 35, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.profile-empty-state .empty-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
}

.profile-empty-state .empty-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* =============================================================================
   PRIVATE / NOT FOUND STATE
   ============================================================================= */

.profile-private-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px;
}

.private-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.private-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
}

.private-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px 0;
    max-width: 400px;
}

.back-link {
    color: #f5c842;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border: 1px solid rgba(245, 200, 66, 0.4);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(245, 200, 66, 0.1);
    border-color: rgba(245, 200, 66, 0.6);
}

/* =============================================================================
   LOADING STATE
   ============================================================================= */

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #f5c842;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-loading p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* =============================================================================
   CONTEXT MENU
   ============================================================================= */

.build-context-menu {
    position: fixed;
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    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 {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-item span {
    font-size: 1rem;
}

/* Profile button image constraint */
.top-panel .user-profile-btn {
    background-color: #000000;
    border-radius: 15px;
    height: 80%;
    top: 10%;
    right: 0.5%;
}
.top-panel .user-profile-btn .profile-btn-image {
    border-radius: 12px;
    max-width: 108%;
    max-height: 108%;
    object-fit: contain;
}

/* =============================================================================
   BUILD CARD TOOLTIPS
   ============================================================================= */

.build-center-tooltip {
    padding: 1%;
    background: linear-gradient(to bottom, #202020, #0e0e0e);
    border: 3px solid var(--color-secondary);
    border-radius: 15px;
    color: var(--color-text);
    max-width: 30%;
    min-width: 25%;
}

.build-tooltip-content {
    width: 100%;
    height: auto;
    padding: 2% 3%;
}

.tooltip-build-name {
    font-size: clamp(2.5vb, 1.8rem, 2.5vb);
    font-weight: 700;
    color: var(--color-primary, #c4a663);
    margin-bottom: 12px;
}

.tooltip-class,
.tooltip-curse,
.tooltip-subclass {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5%;
}

.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) 30%, 
        transparent 100%);
    margin: 10px 0;
}

.tooltip-subclass-header {
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    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.9vb, 1.3rem, 1.9vb);
    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.9vb, 1.3rem, 1.9vb);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    white-space: pre-line;

    overflow-y: auto;
}

/* AI Build Notice */
.tooltip-ai-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.9vb, 1.3rem, 1.9vb);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.tooltip-ai-icon {
    height: 2em;
    width: auto;
    flex-shrink: 0;
}

/* =============================================================================
   TOAST NOTIFICATION
   ============================================================================= */

.profile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 40, 40, 0.95);
    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);
}

.profile-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 900px) {

    /* Reset header overrides from styles.css for profile page */
    .top-panel {
        position: absolute;
        height: 15%;
        display: block;
    }

    .top-panel .logo-link {
        position: absolute;
        top: 5%;
        left: 1%;
        height: 90%;
        margin-left: 0;
    }

    .top-panel .logo-link img {
        position: absolute;
        height: 100%;
        width: auto;
        max-width: 40vw;
        object-fit: contain;
    }

    .nav-container {
        display: none;
    }

    .user-profile-btn {
        position: absolute;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 1.1%;
        height: 80%;
        width: auto;
        aspect-ratio: 1/1;
        overflow: hidden;
        border-radius: 15px;
        margin-right: 0;
    }

    .header-icons-container {
        position: absolute;
        bottom: 10%;
        right: 8%;
    }

    .profile-stat {
        white-space: pre-wrap;
        padding: 10%;
        padding-left: 4%;
        padding-right: 4%;
    }

    
    .stat-label {
        text-align: center;
    }

    /* Mobile tooltip: centered, properly sized */
    .build-center-tooltip {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 85vw;
        min-width: 70vw;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 10000;
    }

    .tooltip-build-name {
        font-size: 1.4rem;
    }

    .tooltip-class,
    .tooltip-curse,
    .tooltip-subclass,
    .tooltip-subclass-header,
    .tooltip-skilllines li,
    .tooltip-description,
    .tooltip-ai-notice {
        font-size: 1.1rem;
    }
}

@media (max-width: 820px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    }
    
    .profile-info {
        align-items: center;
    }

    .stream-team-logo {
    border-radius: 12px;
    }
    
    .profile-name-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-display-name {
        padding-top: 8%;
        font-size: 2.2rem;
        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);
    }
        
    .tier-free {
        background: rgba(71, 71, 71, 0.8);
        border: 2px solid rgba(80, 80, 80, 0.7);
    }
    .tier-basic {
        background: rgba(59, 136, 62, 0.4);
        border: 2px solid rgba(61, 141, 64, 0.6);
    }
    .tier-premium {
        background: rgba(156, 39, 176, 0.2)  rgba(117, 29, 133, 0.4);
        border: 2px solid rgba(128, 31, 145, 0.7);
    }
    .tier-lifetime {
        background: linear-gradient(135deg, rgba(85, 69, 23, 0.9), rgba(75, 64, 0, 0.8));
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(177, 145, 48, 0.8);
        box-shadow: 0 0 10px rgba(245, 200, 66, 0.3);
    }

    .profile-avatar {
        width: 250px;
        height: 250px;
    }
    
    .profile-stats-column {
        flex-direction: row;
        margin-left: 0;
        margin-top: 20px;
    }
    
    .profile-socials {
        justify-content: center;
        transform: translateX(0);
    }

    .share-profile-btn {
        right: 3%;
    }
    
    .profile-builds-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .profile-header {
        width: 95%;
        padding: 20px 15px;
    }

    .stream-team-logo {
        border-radius: 15px;
    }
    
    .profile-avatar {
        width: 210px;
        height: 210px;
    }

    .profile-socials {
        transform: translateX(0) scale(0.8);
    }
    
    .profile-builds-section {
        width: 95%;
    }

    .profile-stats-column {
        flex-direction: row;
        gap: 11px !important;
        margin-top: 1%;
        margin-left: 50%;
        margin-right: 50%;
    }

    .profile-stat {
        padding: 6px 10px !important;
        width: 100%;
        white-space: pre-wrap;
    }

    .stat-value {
        font-size: 1.1rem !important;
    }

    .stat-label {
        font-size: 0.6rem !important;
    }
    .share-profile-btn {
        right: 4%;
    }
}

@media (max-width: 375px) {
    
    .top-panel .user-profile-btn {
        position: absolute;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 3% !important;
        height: 80% !important;
        border-radius: 20px;
        overflow: hidden;
        margin-right: 0;
    }
}
/* =============================================================================
   SEO - Screen Reader Only (Visually Hidden, Crawlable)
   ============================================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}