/* ============================================================
   Lotto + Fishing + Sports + Poker — Modern Premium Styling
   ============================================================ */

/* ===== Animations ===== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(223, 187, 6, 0.25); }
    50% { box-shadow: 0 0 20px rgba(223, 187, 6, 0.45); }
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.anim-fade-in {
    animation: fade-in-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-in:nth-child(1) { animation-delay: 0.05s; }
.anim-fade-in:nth-child(2) { animation-delay: 0.1s; }
.anim-fade-in:nth-child(3) { animation-delay: 0.15s; }
.anim-fade-in:nth-child(4) { animation-delay: 0.2s; }

/* ===== Card Modern Base ===== */
.card--modern {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(223, 187, 6, 0.12);
    border-radius: 12px;
    background: linear-gradient(145deg, #0d1117 0%, #0a0d12 100%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--modern:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(223, 187, 6, 0.25) inset,
        0 0 24px rgba(223, 187, 6, 0.08);
    border-color: rgba(223, 187, 6, 0.3);
}

/* Gradient border glow line on top */
.card--modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dfbb06, transparent);
    opacity: 0.6;
    border-radius: 2px;
    z-index: 1;
    transition: opacity 0.35s ease, left 0.35s ease, right 0.35s ease;
}

.card--modern:hover::before {
    opacity: 1;
    left: 10%;
    right: 10%;
}

/* ===== Header Modern ===== */
.card__header--modern {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card__title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.25s ease;
}

.card__title-link:hover {
    opacity: 0.85;
}

.card__title-icon {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card--modern:hover .card__title-icon {
    transform: scale(1.1) rotate(-3deg);
}

.card__title-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f0e6c0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* See all button */
.card__see-all--modern {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    background: rgba(223, 187, 6, 0.08);
    color: #dfbb06;
    border: 1px solid rgba(223, 187, 6, 0.2);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.card__see-all--modern:hover {
    background: rgba(223, 187, 6, 0.15);
    border-color: rgba(223, 187, 6, 0.4);
    color: #ffe66d;
    transform: translateY(-1px);
}

/* ===== Body Modern ===== */
.card__body--modern {
    padding: 0.6rem 1rem 0.85rem;
}

/* ===== Image Wrapper ===== */
.card__image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card__image-wrapper:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    transform: scale(1.012);
}

.card__image--premium {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.card__image-wrapper:hover .card__image--premium {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.1);
}

/* Subtle overlay on hover */
.card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(223, 187, 6, 0.06) 0%, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    pointer-events: none;
}

.card__image-wrapper:hover .card__image-overlay {
    opacity: 1;
}

/* ===== CTA Modern ===== */
.card__cta--modern {
    padding: 0.6rem 1rem 1rem;
}

.btn--modern {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

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

.btn--modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 187, 6, 0.25);
    filter: brightness(1.1);
}

.btn--modern:hover::after {
    left: 100%;
}

/* ===== Lobby Provider Strip Modern ===== */
.lobby-provider-strip--modern {
    position: relative;
    overflow-x: auto;
    margin: 0 0 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 187, 6, 0.3) transparent;
}

.lobby-provider-strip--modern::-webkit-scrollbar {
    height: 4px;
}

.lobby-provider-strip--modern::-webkit-scrollbar-track {
    background: transparent;
}

.lobby-provider-strip--modern::-webkit-scrollbar-thumb {
    background: rgba(223, 187, 6, 0.25);
    border-radius: 4px;
}

.lobby-provider-strip--modern::-webkit-scrollbar-thumb:hover {
    background: rgba(223, 187, 6, 0.4);
}

.lobby-provider-strip__track {
    position: relative;
}

.lobby-provider-strip__list {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 6px 2px;
}

.lobby-provider-strip__item {
    flex-shrink: 0;
}

.lobby-provider-strip__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 8px 10px 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.lobby-provider-strip__link:hover {
    background: rgba(223, 187, 6, 0.06);
    border-color: rgba(223, 187, 6, 0.18);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(223, 187, 6, 0.06);
}

.lobby-provider-strip__link:active {
    transform: translateY(-1px) scale(1.02);
}

.lobby-provider-strip__img-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lobby-provider-strip__link:hover .lobby-provider-strip__img-wrap {
    background: rgba(223, 187, 6, 0.08);
    border-color: rgba(223, 187, 6, 0.2);
    box-shadow: 0 0 10px rgba(223, 187, 6, 0.1);
}

.lobby-provider-strip__img-wrap img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lobby-provider-strip__link:hover .lobby-provider-strip__img-wrap img {
    transform: scale(1.1);
}

.lobby-provider-strip__label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.lobby-provider-strip__link:hover .lobby-provider-strip__label {
    color: rgba(223, 187, 6, 0.85);
    font-weight: 600;
}

.lobby-provider-strip__link.app-link--active .lobby-provider-strip__label {
    color: #dfbb06;
    font-weight: 700;
}

.lobby-provider-strip__link.app-link--active .lobby-provider-strip__img-wrap {
    border-color: rgba(223, 187, 6, 0.35);
    box-shadow: 0 0 12px rgba(223, 187, 6, 0.15);
}

/* Edge fade indicators */
.lobby-provider-strip__fade-left,
.lobby-provider-strip__fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 2;
}

.lobby-provider-strip__fade-left {
    left: 0;
    background: linear-gradient(to right, #0d1117, transparent);
}

.lobby-provider-strip__fade-right {
    right: 0;
    background: linear-gradient(to left, #0d1117, transparent);
}

/* ===== Section-specific accent colors ===== */
[data-section="sports"]::before {
    background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
}
[data-section="sports"]:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(79, 195, 247, 0.25) inset,
        0 0 24px rgba(79, 195, 247, 0.08);
}

[data-section="poker"]::before {
    background: linear-gradient(90deg, transparent, #e53935, transparent);
}
[data-section="poker"]:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(229, 57, 53, 0.25) inset,
        0 0 24px rgba(229, 57, 53, 0.08);
}

[data-section="lotto"]::before {
    background: linear-gradient(90deg, transparent, #66bb6a, transparent);
}
[data-section="lotto"]:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(102, 187, 106, 0.25) inset,
        0 0 24px rgba(102, 187, 106, 0.08);
}

[data-section="fishing"]::before {
    background: linear-gradient(90deg, transparent, #26c6da, transparent);
}
[data-section="fishing"]:hover {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(38, 198, 218, 0.25) inset,
        0 0 24px rgba(38, 198, 218, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .card--modern {
        border-radius: 10px;
    }

    .card__header--modern {
        padding: 0.7rem 0.85rem;
    }

    .card__title-text {
        font-size: 0.95rem;
    }

    .card__body--modern {
        padding: 0.5rem 0.85rem 0.7rem;
    }

    .card__cta--modern {
        padding: 0.5rem 0.85rem 0.85rem;
    }

    .card__image--premium,
    .card__image-wrapper {
        border-radius: 8px;
    }

    .card__image-overlay {
        border-radius: 8px;
    }

    .lobby-provider-strip--modern {
        margin: 0 0 0.7rem;
    }

    .lobby-provider-strip__link {
        min-width: 62px;
        padding: 6px 8px 5px;
        border-radius: 8px;
    }

    .lobby-provider-strip__img-wrap {
        width: 40px;
        height: 40px;
    }

    .lobby-provider-strip__img-wrap img {
        width: 32px;
        height: 32px;
    }

    .lobby-provider-strip__label {
        font-size: 9px;
        max-width: 62px;
    }

    .btn--modern {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 380px) {
    .lobby-provider-strip__list {
        gap: 6px;
    }

    .lobby-provider-strip__link {
        min-width: 56px;
        padding: 5px 6px 4px;
    }

    .lobby-provider-strip__img-wrap {
        width: 36px;
        height: 36px;
    }

    .lobby-provider-strip__img-wrap img {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .card--modern:hover {
        transform: translateY(-2px);
    }

    .card__image-wrapper:hover {
        transform: scale(1.02);
    }
}

/* ===== Preserve existing aspect-ratio rules (lotto/fishing) ===== */
.lotto-widget__img,
.lotto-widget__img[data-v-6cbf285a],
.lotto-widget__img[data-v-775803d8] {
    position: relative !important;
    display: block !important;
    height: 0 !important;
    width: 100% !important;
    padding-bottom: 75% !important;
    overflow: hidden;
    border-radius: 5px 0 5px 0;
    background-color: #120814;
}

.lotto-widget__img img,
.lotto-widget__img img[data-v-6cbf285a],
.lotto-widget__img img[data-v-775803d8] {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
}

@media (min-width: 1024px) {
    .lotto-widget__img,
    .lotto-widget__img[data-v-6cbf285a],
    .lotto-widget__img[data-v-775803d8] {
        padding-bottom: 56.25% !important;
    }
}

.lotto-grid > li > button:first-child {
    position: relative !important;
    display: block !important;
    height: 0 !important;
    width: 100% !important;
    padding-bottom: 75% !important;
    overflow: hidden;
    border-radius: 5px 0 5px 0;
}

.lotto-grid > li > button:first-child img,
.lotto-grid img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.fishing .game-item--fishing,
.game--fishing .game-item--fishing,
.game-item--fishing {
    padding-bottom: 75% !important;
}

@media (min-width: 1024px) {
    .fishing .game-item--fishing,
    .fishing--d .game-item--fishing,
    .game--fishing .game-item--fishing {
        padding-bottom: 67.44186% !important;
    }
}

.fishing .game-item,
.game--fishing .game-item {
    overflow: hidden;
    border-radius: 5px 0 5px 0;
}

.fishing .game-item__img,
.game--fishing .game-item__img,
.game-item--fishing .game-item__img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .anim-fade-in {
        animation: none;
        opacity: 1;
    }

    .card--modern,
    .card--modern::before,
    .card__image-wrapper,
    .card__image--premium,
    .card__image-overlay,
    .btn--modern,
    .btn--modern::after,
    .lobby-provider-strip__link,
    .lobby-provider-strip__img-wrap,
    .lobby-provider-strip__img-wrap img,
    .lobby-provider-strip__label,
    .card__see-all--modern,
    .card__title-icon {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
