/**
 * B52 Theme - Main Additional Styles
 */

/* ====== Rank System Enhanced ====== */
.rank-badge.rank-gold {
    background: linear-gradient(135deg, #FFD700, #ccac00);
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.rank-item.rank-active .rank-badge {
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
}

/* ====== Mission Card Hover Animation ====== */
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B8C6E, #FFD700);
    border-radius: 10px 10px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ====== Game Card Shine Effect ====== */
.game-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,215,0,0.03) 45%,
        rgba(255,215,0,0.05) 50%,
        rgba(255,215,0,0.03) 55%,
        transparent 60%
    );
    transition: transform 0.6s;
    transform: translateX(-100%);
    pointer-events: none;
}

.game-card:hover::after {
    transform: translateX(100%);
}

.game-card {
    position: relative;
    overflow: hidden;
}

/* ====== Download App Animation ====== */
.download-btn-item {
    position: relative;
    overflow: hidden;
}

.download-btn-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn-item:hover::before {
    left: 100%;
}

/* ====== CTA Pulse ====== */
@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,215,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

.camo-hero-cta .btn-register {
    animation: ctaPulse 2s infinite;
}

/* ====== Poster Overlay ====== */
.poster-item {
    position: relative;
}

.poster-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,42,27,0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* ====== News Card Date Badge ====== */
.news-card-thumb {
    position: relative;
}

.news-card-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(31,51,31,1) 0%, transparent 100%);
    pointer-events: none;
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1B2A1B;
}

::-webkit-scrollbar-thumb {
    background: #3d5a3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B8C6E;
}

/* ====== Selection ====== */
::selection {
    background: #8B8C6E;
    color: #fff;
}

/* ====== Focus ====== */
a:focus, button:focus, input:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}
