@tailwind base;
@tailwind components;
@tailwind utilities;

/* Root Settings */
body {
    background-color: #121826;
    color: #ffffff;
    margin: 0;
    padding-top: 220px;
}

.bg-primary {
    background-color: #121826;
}

/* Header & Scroller Styles */
.header-fixed {
    background: linear-gradient(180deg, #000205 90%, #282d48 100%);
    box-shadow: 0 4px 22px #09111eeb;
}

.logo-text {
    filter: drop-shadow(0 0 10px rgba(14, 243, 255, 0.4)) drop-shadow(0 2px 10px rgba(254, 120, 0, 0.5));
}

.provider-scroll-bar {
    background: linear-gradient(90deg, #192646 80%, #31407a 100%);
    box-shadow: 0 7px 16px 2px #0e183b44, inset 0 1.5px 0 #07f9ff44;
    scrollbar-width: thin;
    scrollbar-color: #0ef3ff #233364;
}

.provider-scroll-bar::-webkit-scrollbar {
    height: 6px;
}

.provider-scroll-bar::-webkit-scrollbar-thumb {
    background-color: #0ef3ff;
    border-radius: 4px;
}

.provider-btn {
    background: linear-gradient(160deg, #0f2940 50%, #16c7ff33 100%);
    border: 2px solid transparent; /* To handle active state correctly without jitter */
    border-radius: 15px;
    padding: 6px;
    min-width: 54px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border .14s, box-shadow .14s, background .17s;
    outline: none;
    position: relative;
    box-shadow: 0 2px 8px #1cf2ff26;
}

.provider-btn.active, .provider-btn:hover {
    border-color: #ffb34d;
    background: linear-gradient(110deg, #0f2940 20%, #fba005 100%);
}

.provider-btn img {
    border-radius: 10px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 8px #1cf2ff26, 0 1px 3px #ffc40013;
    transition: transform .14s, box-shadow .14s;
    display: block;
}

.provider-btn.active img, .provider-btn:hover img {
    transform: scale(1.13);
    border: 1.5px solid #ffb34d;
    background: #fffbe5;
}

.category-title {
    color: #0ef3ff;
    text-shadow: 0 2px 8px #07f9ff77, 0 1px 0 #fff;
    margin-top: 1.5rem;
}

/* Card Styles */
.card-slot {
    background: linear-gradient(160deg, #141d32 90%, #202345 100%);
    border: 2px solid rgba(14, 243, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(16, 16, 25, 0.7), 0 3px 10px rgba(16, 186, 255, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s;
}

.card-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 16, 25, 0.8), 0 5px 15px rgba(16, 186, 255, 0.4);
}

.img-slot-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #151a29;
    overflow: hidden;
    flex-shrink: 0;
}

.img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #222;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.7rem;
    gap: 0.5rem;
}

.card-title {
    color: #ffdf70;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 5px rgba(255, 224, 102, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RTP Progress Bar */
.rtp-bar-container {
    background: #0f1524;
    border: 1px solid #ffffff22;
    border-radius: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.rtp-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-in-out;
    background-size: 28px 28px, 100% 100%;
    animation: moveStripes 1.5s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 28px 0, 0 0; }
}

.rtp-high {
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.15) 10px,
        transparent 10px,
        transparent 20px
    ), linear-gradient(90deg, #09ff8f, #07ffef);
    box-shadow: 0 0 10px rgba(9, 255, 143, 0.5);
}

.rtp-low {
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.15) 10px,
        transparent 10px,
        transparent 20px
    ), linear-gradient(90deg, #ffc107, #ff8c00);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.rtp-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: #121826;
    text-shadow: 0 0 3px #ffffff;
    z-index: 10;
}

/* Action Button */
.btn-play {
    background: linear-gradient(180deg, #0ef3ff 0%, #00bfff 100%);
    color: #121826;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 0;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(14, 243, 255, 0.4);
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.btn-play:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}
