/* ============================================================
   TOP 10 GAMES - By Ayana
   ============================================================ */

/* ---------- Container ---------- */
.top10-container {
    position: relative;
    margin: 16px auto;
    padding: 18px 16px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 40%, #3d0c0c 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.top10-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, #ff0000, #FFD700, transparent);
}

/* Shimmer sweep */
.top10-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.03), transparent);
    animation: top10-shimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes top10-shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* ---------- Header ---------- */
.top10-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.top10-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top10-badge-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff0000 0%, #a70000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.top10-badge-icon span {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.55rem;
    color: #FFD700;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}

.top10-badge-icon span em {
    font-style: normal;
    font-size: 1.1rem;
    display: block;
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.top10-title-group {
    display: flex;
    flex-direction: column;
}

.top10-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 1px 8px rgba(255, 215, 0, 0.3);
}

.top10-subtitle {
    font-family: 'Saira Condensed', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.top10-btn {
    background: linear-gradient(to bottom, #ff0000 0%, #a70000 100%);
    color: #fff;
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.top10-btn:hover {
    background: linear-gradient(to bottom, #FFD700 0%, #af9307 100%);
    color: #1a0505;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.top10-btn a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Carousel track ---------- */
.top10-track {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 14px;
    position: relative;
    z-index: 2;
    scrollbar-width: none;
}

.top10-track::-webkit-scrollbar {
    display: none;
}

/* ---------- Card item ---------- */
.top10-card {
    flex: 0 0 auto;
    width: 140px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.top10-card:hover {
    transform: translateY(-4px);
}

/* Rank number behind card */
.top10-rank-number {
    position: absolute;
    bottom: 50px;
    left: -8px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 215, 0, 0.25);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Card image wrapper */
.top10-card-img-wrap {
    position: relative;
    width: 120px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    border: 2px solid rgba(255, 215, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.top10-card:hover .top10-card-img-wrap {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3), 0 0 12px rgba(255, 215, 0, 0.2);
}

/* Color glow variants */
.top10-card[data-glow="red"] .top10-card-img-wrap {
    border-color: rgba(255, 50, 50, 0.4);
}
.top10-card[data-glow="red"]:hover .top10-card-img-wrap {
    box-shadow: 0 4px 20px rgba(255, 50, 50, 0.5);
    border-color: rgba(255, 50, 50, 0.7);
}

.top10-card[data-glow="gold"] .top10-card-img-wrap {
    border-color: rgba(255, 215, 0, 0.4);
}
.top10-card[data-glow="gold"]:hover .top10-card-img-wrap {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.7);
}

.top10-card[data-glow="green"] .top10-card-img-wrap {
    border-color: rgba(50, 205, 50, 0.4);
}
.top10-card[data-glow="green"]:hover .top10-card-img-wrap {
    box-shadow: 0 4px 20px rgba(50, 205, 50, 0.5);
    border-color: rgba(50, 205, 50, 0.7);
}

.top10-card[data-glow="purple"] .top10-card-img-wrap {
    border-color: rgba(180, 100, 255, 0.4);
}
.top10-card[data-glow="purple"]:hover .top10-card-img-wrap {
    box-shadow: 0 4px 20px rgba(180, 100, 255, 0.5);
    border-color: rgba(180, 100, 255, 0.7);
}

.top10-card[data-glow="cyan"] .top10-card-img-wrap {
    border-color: rgba(0, 200, 255, 0.4);
}
.top10-card[data-glow="cyan"]:hover .top10-card-img-wrap {
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.5);
    border-color: rgba(0, 200, 255, 0.7);
}

.top10-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Badge tag (PROMO / NEW / EXCLUSIVE) */
.top10-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.55rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.top10-tag-promo {
    background: rgba(255, 0, 0, 0.85);
    color: #fff;
}

.top10-tag-new {
    background: rgba(255, 215, 0, 0.9);
    color: #1a0505;
}

.top10-tag-exclusive {
    background: rgba(128, 0, 255, 0.8);
    color: #fff;
}

.top10-tag-hot {
    background: rgba(255, 100, 0, 0.85);
    color: #fff;
}

/* Provider name at bottom of image */
.top10-provider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #ccc;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 16px 8px 6px;
    text-align: center;
    z-index: 3;
}

/* Card info below image */
.top10-card-info {
    position: relative;
    z-index: 1;
    padding: 6px 0 0;
    margin-left: auto;
    width: 120px;
}

.top10-game-name {
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.top10-card-label {
    display: block;
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 2px;
    padding: 1px 0;
    border-radius: 3px;
}

.top10-label-exclusive { color: #b388ff; }
.top10-label-new { color: #FFD700; }
.top10-label-promo { color: #ff5252; }
.top10-label-hot { color: #ff9100; }

/* ---------- Edge fade ---------- */
.top10-track-wrap {
    position: relative;
}

.top10-track-wrap::before,
.top10-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 5;
    pointer-events: none;
}

.top10-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #1a0505, transparent);
}

.top10-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #1a0505, transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .top10-container {
        margin: 10px 8px;
        padding: 14px 10px 10px;
        border-radius: 10px;
    }

    .top10-badge-icon {
        width: 34px;
        height: 34px;
    }

    .top10-badge-icon span {
        font-size: 0.45rem;
    }

    .top10-badge-icon span em {
        font-size: 0.9rem;
    }

    .top10-title {
        font-size: 1rem;
    }

    .top10-subtitle {
        font-size: 0.65rem;
    }

    .top10-card {
        width: 115px;
    }

    .top10-card-img-wrap,
    .top10-card-info {
        width: 100px;
    }

    .top10-rank-number {
        font-size: 4rem;
        left: -5px;
        bottom: 42px;
    }
}

@media (min-width: 768px) {
    .top10-card {
        width: 160px;
    }

    .top10-card-img-wrap,
    .top10-card-info {
        width: 138px;
    }

    .top10-rank-number {
        font-size: 6rem;
        left: -10px;
    }
}

@media (min-width: 1200px) {
    .top10-card {
        width: 175px;
    }

    .top10-card-img-wrap,
    .top10-card-info {
        width: 150px;
    }

    .top10-rank-number {
        font-size: 7rem;
    }
}
