/* GameFun.ph - Custom CSS Styles */

/* Індикатор завантаження */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EC7B09;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Повідомлення про помилки та успіх */
.msg.error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.msg.success {
    color: #27ae60;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Покращення модального вікна */
.my-dialog {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.8);
}

.my-dialog .modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

/* Анімації для кнопок */
.playBtn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.playBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 123, 9, 0.3);
}

.playBtn:active {
    transform: translateY(0);
}

/* Покращення навігації */
.nav-list .item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-list .item:hover {
    background-color: rgba(236, 123, 9, 0.1);
    transform: translateX(5px);
}

.nav-list .item.active {
    background-color: rgba(236, 123, 9, 0.2);
    border-left: 3px solid #EC7B09;
}

/* Покращення вкладок ігор */
.tabs .tab {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tabs .tab:hover {
    background-color: rgba(236, 123, 9, 0.1);
}

.tabs .tab.active {
    background-color: #EC7B09;
    color: white;
    transform: scale(1.05);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .mobile .nav-list {
        flex-direction: column;
    }
    
    .mobile .tabs {
        flex-wrap: wrap;
    }
    
    .mobile .tabs .tab {
        min-width: 120px;
        margin: 5px;
    }
    
    .mobile .my-dialog .modal {
        margin: 20px;
        max-height: 90vh;
    }
}

/* Покращення слайдера */
.van-swipe__track {
    transition: transform 0.5s ease;
}

.leftArrow, .rightArrow {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.leftArrow:hover, .rightArrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Покращення форми реєстрації */
.otp-login input {
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.otp-login input:focus {
    border-color: #EC7B09;
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 123, 9, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #EC7B09, #f39c12);
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 123, 9, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Покращення футера */
.footer-view .childItem {
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-view .childItem:hover {
    color: #EC7B09;
    transform: translateX(5px);
}

/* Анімації для новин */
.inf-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.inf-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Покращення кнопки "Show More" */
.noData-box {
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.noData-box:hover {
    background-color: #EC7B09;
    color: white;
    transform: translateY(-2px);
}

/* Покращення логотипу */
.logo-box img {
    transition: all 0.3s ease;
}

.logo-box:hover img {
    transform: scale(1.05);
}

/* Покращення кнопки реєстрації в навігації */
.btn-reglgn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-reglgn:hover {
    background-color: #d65a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 123, 9, 0.3);
}

/* Покращення іконок */
.icon {
    transition: all 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* Покращення платформи */
.platformName {
    transition: all 0.3s ease;
}

.platformName:hover {
    color: #EC7B09;
}

/* Покращення заголовків ігор */
.title {
    transition: all 0.3s ease;
}

.title:hover {
    color: #EC7B09;
}

/* Покращення hot-тексту */
.hot-text {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Покращення скроллбару */
.el-scrollbar__thumb {
    background-color: #EC7B09;
    border-radius: 4px;
}

.el-scrollbar__thumb:hover {
    background-color: #d65a00;
}

/* Покращення чекбокса */
.container input:checked ~ .checkmark {
    background-color: #EC7B09;
    border-color: #EC7B09;
}

/* Покращення посилань */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #EC7B09;
}

/* Покращення фокусу для доступності */
*:focus {
    outline: 2px solid #EC7B09;
    outline-offset: 2px;
}

/* Покращення анімацій завантаження */
.loading-img {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Покращення відображення на великих екранах */
@media (min-width: 1200px) {
    .games .box {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .newsList {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Покращення темної теми (якщо потрібно) */
@media (prefers-color-scheme: dark) {
    .loading-indicator {
        background: rgba(0, 0, 0, 0.9);
        color: white;
    }
    
    .msg.error {
        background-color: rgba(231, 76, 60, 0.1);
        border-color: #e74c3c;
    }
    
    .msg.success {
        background-color: rgba(39, 174, 96, 0.1);
        border-color: #27ae60;
    }
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    background: #fff;
    padding: 80px 20px 60px;
    color: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #EC7B09, #f39c12, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f39c12;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #bdc3c7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #EC7B09, #f39c12);
    color: white;
    box-shadow: 0 8px 25px rgba(236, 123, 9, 0.4);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(236, 123, 9, 0.6);
}

.hero-btn.secondary {
    background: transparent;
    color: #EC7B09;
    border: 2px solid #EC7B09;
}

.hero-btn.secondary:hover {
    background: #EC7B09;
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 0 0 300px;
    position: relative;
}

.hero-logo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
    text-align: center;
}

.badge-text {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.badge-subtext {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    filter: drop-shadow(0 5px 15px rgba(236, 123, 9, 0.3));
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f39c12;
    text-align: center;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #EC7B09, #f39c12);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #EC7B09;
    box-shadow: 0 0 0 3px rgba(236, 123, 9, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-container a {
    color: #EC7B09;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* ===== CUSTOM CHECKBOX STYLES ===== */
.checkbox-container {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f0f0f0;
    border-color: #EC7B09;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #EC7B09;
    border-color: #EC7B09;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #EC7B09, #f39c12);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 123, 9, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.login-link a {
    color: #EC7B09;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ===== AGE VERIFICATION MODAL ===== */
.age-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

.age-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.age-subtext {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* ===== TERMS & PRIVACY MODALS ===== */
.terms-content, .privacy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-content h3, .privacy-content h3 {
    color: #EC7B09;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.terms-content h3:first-child, .privacy-content h3:first-child {
    margin-top: 0;
}

.terms-content p, .privacy-content p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        flex: 0 0 250px;
    }
    
    .hero-features {
        gap: 30px;
    }
    
    .feature-item {
        flex: 0 0 calc(50% - 15px);
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 25px;
    }
    
    .feature-item {
        flex: none;
    }
}

.gambling-organizations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .organization-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    color: #222;
    transition: background 0.3s;
  }
  
  .organization-link:hover {
    background: #e0e0e0;
  }
  
  .organizations-numbers {
    grid-column: 1 / span 2; /* займе 2 колонки */
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff7f0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .organizations-numbers h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
  }
  
  .organizations-numbers p {
    margin: 0;
    font-size: 1rem;
    color: #555;
  }
  
  .organizations-numbers a {
    font-weight: bold;
    color: #d72638;
  }
  