/* ================================================
   PREMIUM FINAL TOUCHES
   Enhanced colors, level badge, and overall polish
   ================================================ */

/* ===== IMPROVED LEVEL BADGE ===== */
.level_circle_premium {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(245, 158, 11, 0.15) 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow:
        0 0 30px rgba(251, 191, 36, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 2px 12px rgba(251, 191, 36, 0.3);
}

.level_circle_premium::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        #fbbf24 0%,
        #f59e0b 25%,
        #fcd34d 50%,
        #f59e0b 75%,
        #fbbf24 100%);
    background-size: 200% auto;
    z-index: -1;
    animation: gradientShift 3s linear infinite;
}

.level_circle_premium:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 45px rgba(251, 191, 36, 0.7),
        0 12px 48px rgba(0, 0, 0, 0.7),
        inset 0 2px 16px rgba(251, 191, 36, 0.5);
}

.level_progress_fill_premium {
    background: linear-gradient(90deg,
        #fbbf24 0%,
        #f59e0b 25%,
        #fcd34d 50%,
        #f59e0b 75%,
        #fbbf24 100%);
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
    box-shadow:
        0 0 15px rgba(251, 191, 36, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* ===== VALVE QUESTION BOX ===== */
.valve-question-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.08) 0%,
        rgba(220, 38, 38, 0.08) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.valve-question-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(239, 68, 68, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.valve-question-box:hover::before {
    opacity: 1;
}

.valve-question-text {
    font-size: 15px;
    line-height: 1.7;
    color: #fecaca;
    text-align: center;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.valve-question-text strong {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ENHANCED COLOR SCHEME ===== */

/* Profile customization headers - more vibrant */
.profile_customization_header {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(139, 92, 246, 0.15) 100%);
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}

.profile_customization_header:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.25) 0%,
        rgba(139, 92, 246, 0.25) 100%);
    border-bottom-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

/* Important links - better colors */
.violations-link {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.05) 0%,
        rgba(245, 158, 11, 0.05) 100%);
}

.violations-link:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(245, 158, 11, 0.15) 100%);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
}

.incidents-link {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.05) 0%,
        rgba(220, 38, 38, 0.05) 100%);
}

.incidents-link:hover {
    border-color: rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.15) 0%,
        rgba(220, 38, 38, 0.15) 100%);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

/* ===== IMPROVED SHOWCASE ITEMS ===== */
.showcase_item {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.showcase_item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(96, 165, 250, 0.3),
        0 0 0 2px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
}

/* ===== CONTENT BOX ENHANCEMENTS ===== */
.content-box {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-box:hover {
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.critical-box {
    background: linear-gradient(135deg,
        rgba(30, 20, 20, 0.9) 0%,
        rgba(40, 25, 25, 0.9) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.critical-box:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow:
        0 12px 40px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.2);
}

.evidence-box {
    background: linear-gradient(135deg,
        rgba(20, 30, 48, 0.9) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(96, 165, 250, 0.2);
}

/* ===== BETTER LINK ICONS ===== */
.link-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(96, 165, 250, 0.15) 0%,
        rgba(59, 130, 246, 0.15) 100%);
    box-shadow:
        0 4px 12px rgba(96, 165, 250, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.violations-link .link-icon {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.2) 100%);
    box-shadow:
        0 4px 12px rgba(251, 191, 36, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.incidents-link .link-icon {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.2) 0%,
        rgba(220, 38, 38, 0.2) 100%);
    box-shadow:
        0 4px 12px rgba(239, 68, 68, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */

@media (max-width: 768px) {
    .valve-question-box {
        padding: 16px;
        margin-top: 20px;
    }

    .valve-question-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .level_circle_premium {
        box-shadow:
            0 0 20px rgba(251, 191, 36, 0.4),
            0 6px 24px rgba(0, 0, 0, 0.6);
    }

    .link-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .valve-question-box {
        padding: 14px;
        margin-top: 18px;
        border-radius: 10px;
    }

    .valve-question-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .valve-question-text br {
        display: block;
        content: "";
        margin-top: 8px;
    }

    .level_circle_premium {
        box-shadow:
            0 0 15px rgba(251, 191, 36, 0.4),
            0 4px 20px rgba(0, 0, 0, 0.6);
    }

    .link-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .level_circle_premium::before,
    .level_progress_fill_premium {
        animation: none;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    }

    .valve-question-box::before {
        display: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .valve-question-box {
        border-width: 3px;
        border-color: #ef4444;
    }

    .valve-question-text strong {
        color: #fbbf24;
        -webkit-text-fill-color: #fbbf24;
    }

    .level_circle_premium {
        border-width: 4px;
    }
}
