/**
 * RTP Game API - Custom Frontend Styles
 */

/* Additional custom styles to complement the existing CSS */

/* Fix for provider swiper navigation */
.provider-swiper .swiper-button-next,
.provider-swiper .swiper-button-prev {
    color: var(--accent-color);
}

.provider-swiper .swiper-button-next:after,
.provider-swiper .swiper-button-prev:after {
    font-size: 24px;
}

/* Logo styling */
.logobuatrtp {
    max-width: 200px; /* Increase logo size */
    min-width: 150px; /* Minimum width for logo */
    height: auto;
    padding: 10px 0;
}

.head-colum1 {
    display: flex;
    align-items: center;
    min-width: 220px; /* Ensure enough space for logo */
    flex: 1;
}

/* Additional theme customization */
.header {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.footer {
    background-color: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    color: var(--text-color);
}

/* Game cards customization */
.game-card {
    border: 2px solid var(--primary-color);
    background-color: rgba(0, 0, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.3);
}

.game-card .game-title {
    color: var(--text-color);
    font-weight: bold;
}

/* RTP indicators */
.rtp-value.high {
    color: var(--rtp-high-color);
}

.rtp-value.medium {
    color: var(--rtp-medium-color);
}

.rtp-value.low {
    color: var(--rtp-low-color);
}

/* Search box styling */
.search-game {
    border: 1px solid var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
}

.search-game::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Provider tabs styling */
.provider-tab {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    transition: background-color 0.3s;
}

.provider-tab.active, .provider-tab:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.tophead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 15px;
    min-width: 320px;
}

.navbar {
    background-color: #0a1229;
    padding: 10px 0;
    width: 100%;
    min-width: 320px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.container {
    min-width: 320px;
}

/* Button styling */
.head-colum2 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 180px;
}

.masuk, .daftar {
    min-width: 80px;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.head-colum2 a {
    text-decoration: none;
}

.masuk:hover, .daftar:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Search box styling - Using theme variables */
.wrapper.cari {
    position: relative;
    margin: 15px 0;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.search {
    width: 100%;
    padding: 12px 12px 12px 45px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    font-size: 16px;
    outline: none;
}

.search::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    /* Use accent color for the icon */
    filter: brightness(0) saturate(100%) invert(80%) sepia(50%) saturate(2000%) hue-rotate(170deg) brightness(100%) contrast(100%);
}

/* Provider item styling - Using theme variables */
.provider-item {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid transparent;
    background-color: var(--secondary-color);
}

.provider-item.active, .provider-item:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.provider-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.provider-item p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
}

/* Provider tabs styling */
.provider-tab {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    transition: background-color 0.3s;
}

.provider-item.active {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* Make sure all slides have consistent width */
.provider-swiper .swiper-slide {
    width: 100px !important;
}

/* Fix for provider swiper container */
.provider-swiper {
    padding: 0 30px;
    margin-bottom: 15px;
}

/* Game card hover effects */
.card-content:hover .hover-btn {
    opacity: 1;
}

.hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Popup styling */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Preserve original popup styling while fixing positioning */
.popup-body {
    position: relative;
    background-color: var(--secondary-color);
    border-radius: 10px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: auto;
    overflow: hidden;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

/* Removed fixed height constraint */
#popup-body.popup-body {
    /* Allow popup to expand based on content */
    max-height: 90vh;
    overflow-y: auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

.popup-header {
    background-color: #0a1229;
    color: white;
    padding: 15px;
    text-align: center;
}

.popup-content {
    padding: 15px 20px;
}

/* Add more padding to specific elements */
.popup-label {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

/* Popup content row styling */
.popup-content .row {
    margin-bottom: 15px;
    padding: 0 5px;
}

/* Note section styling */
.note {
    padding: 5px;
    margin-bottom: 10px;
}

.note h6 {
    color: #999;
    font-weight: bold;
}

.note p {
    word-wrap: break-word;
    line-height: 1.4;
}

.popup-content .col2 {
    padding: 5px 0;
}

/* Preserve original popup content styling */
.popup-body center img {
    margin: 60px;
    width: 137px;
}

.popup-body center p {
    margin: -12px 40px;
    color: white;
    padding: 0 15px 20px 15px;
}

/* Add padding to popup sections */
.popup-body > div {
    padding: 15px;
}

/* Add padding to note section */
.popup-body .note {
    padding: 15px 25px;
    margin-top: 10px;
}

/* Add padding to steps */
.popup-body [class^="step"] {
    padding: 8px 25px;
}

/* Add padding to langkah terakhir */
.popup-body .langkah-terakhir {
    padding: 8px 25px;
    margin-bottom: 10px;
}

.title-popup {
    font-weight: bold;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color, #00b1ff);
    animation: spin 1s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .provider-swiper .swiper-button-next,
    .provider-swiper .swiper-button-prev {
        display: none;
    }
    
    .provider-item p {
        font-size: 10px;
    }
}

/* Popup styling enhancements */
.popup-container {
    z-index: 9999;
}

.popup-body {
    max-width: 90%;
    margin: 0 auto;
}

.popup-close {
    cursor: pointer;
}

/* Footer adjustments */
footer {
    padding: 15px 0;
    text-align: center;
    background-color: var(--secondary-color, #051d3a);
}

.footertext {
    padding: 20px;
    text-align: center;
}

.footertext h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footertext p {
    font-size: 14px;
}
