/* Consolidated and minified CSS file for Casino Responsive */
/* Main CSS for Casino Responsive - Consolidated File */
/* ====== Global Variables ====== */
:root {
    /* Primary Theme Colors */
    --primary-color: #ff6b00;
    --secondary-color: #1e2c3a;
    --accent-color: #ffc107;
    --dark-color: #111827;
    --light-color: #f8f9fa;
    --text-color: #e0e0e0;
    /* Layout Dimensions */
    --header-height: 70px;
    --footer-mobile-height: 60px;
    /* Auth Specific Colors */
    --auth-card-bg: #1a2536;
    --auth-border-color: rgba(255, 255, 255, 0.1);
    --auth-input-bg: #0d1420;
    --auth-btn-hover: #e05a00;
    --auth-text-muted: #9aa0a9;
    --auth-link-color: #ff6b00;
    --auth-google-color: #ea4335;
    --auth-facebook-color: #3b5998;
}

/* ====== Base Styles ====== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    padding-bottom: var(--footer-mobile-height);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll during animations */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    color: var(--auth-btn-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography optimization */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

@media (min-width:768px) {
    body {
        padding-bottom: 0;
    }
}

/* ====== Button Styles ====== */
.btn {
    border-radius: 20px;
    padding: 0.375rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--auth-btn-hover);
    border-color: var(--auth-btn-hover);
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* ====== Header Styles ====== */
.site-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 40px;
}

.main-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    color: var(--text-color);
    font-size: 1.5rem;
    border: none;
    background: none;
    padding: 0;
}

.user-actions .btn {
    border-radius: 20px;
    padding: 0.375rem 1.5rem;
}

/* ====== Mobile Navigation ====== */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--secondary-color);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-container {
    padding: 20px;
}

.mobile-nav .nav-link {
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: var(--primary-color);
}

/* ====== Banner Section ====== */
.banner-section {
    position: relative;
    margin-bottom: 2rem;
}

.banner-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
}

@media (min-width:768px) {
    .banner-item {
        height: 450px;
    }
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.banner-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* ====== Game Categories Section ====== */
.game-categories-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
}

.game-category-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.game-category-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ====== Popular Games Section ====== */
.popular-games-section {
    padding: 2rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.game-item {
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.game-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.game-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-image:hover .game-overlay {
    opacity: 1;
}

.btn-play,
.btn-demo {
    margin: 5px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-play {
    background-color: var(--primary-color);
    color: white;
}

.btn-demo {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.game-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ====== Footer Styles ====== */
.site-footer {
    background-color: var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.site-footer h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: white;
}

.payment-methods,
.secure-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-methods img,
.secure-badges img {
    height: 30px;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ====== Mobile Footer Bar ====== */
.mobile-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    height: var(--footer-mobile-height);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 8px 0;
    text-decoration: none;
}

.mobile-footer-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-footer-item span {
    font-size: 0.7rem;
}

.mobile-footer-item:hover,
.mobile-footer-item.active {
    color: var(--primary-color);
}

/* ====== Auth Section Styles ====== */
.auth-section {
    padding: 3rem 0;
    min-height: calc(100vh - var(--header-height) - var(--footer-mobile-height));
    display: flex;
    align-items: center;
    background: url('../images/auth-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

@media (min-width:768px) {
    .auth-section {
        min-height: calc(100vh - var(--header-height));
    }
}

/* Auth Card */
.auth-card {
    background-color: var(--auth-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.auth-header {
    padding: 30px;
    border-bottom: 1px solid var(--auth-border-color);
    text-align: center;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.auth-header p {
    color: var(--auth-text-muted);
    margin-bottom: 0;
}

.auth-body {
    padding: 30px;
}

.auth-form .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .input-group-text {
    background-color: var(--auth-input-bg);
    border-color: var(--auth-border-color);
    color: var(--auth-text-muted);
}

.auth-form .form-control {
    background-color: var(--auth-input-bg);
    border-color: var(--auth-border-color);
    color: #fff;
    padding: 12px 15px;
    height: auto;
}

.auth-form .form-control:focus {
    background-color: var(--auth-input-bg);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

.auth-form .form-control::placeholder {
    color: var(--auth-text-muted);
}

.toggle-password {
    color: var(--auth-text-muted);
}

.auth-form .form-check-label {
    color: var(--auth-text-muted);
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.forgot-password {
    color: var(--auth-link-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--auth-link-color);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--auth-border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--auth-card-bg);
    padding: 0 15px;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 30px;
    color: #fff;
    transition: all 0.3s;
}

.btn-social i {
    margin-right: 8px;
}

.btn-google {
    background-color: var(--auth-google-color);
    border-color: var(--auth-google-color);
}

.btn-facebook {
    background-color: var(--auth-facebook-color);
    border-color: var(--auth-facebook-color);
}

.btn-google:hover,
.btn-facebook:hover {
    opacity: 0.9;
    color: #fff;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid var(--auth-border-color);
}

.auth-footer p {
    margin-bottom: 0;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: var(--auth-link-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.password-strength .progress {
    height: 5px;
    background-color: var(--auth-input-bg);
}

.password-strength .progress-bar {
    transition: width 0.3s;
}

.password-strength .progress-bar.weak {
    background-color: #dc3545;
}

.password-strength .progress-bar.medium {
    background-color: #ffc107;
}

.password-strength .progress-bar.strong {
    background-color: #28a745;
}

/* Notification styling */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s;
}

.auth-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.auth-notification.success {
    background-color: #28a745;
}

.auth-notification.error {
    background-color: #dc3545;
}

/* ====== Preloader & Animation Effects ====== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
    /* Force hide after transition */
}

.preloader .spinner {
    width: 70px;
    height: 70px;
    position: relative;
}

.preloader .spinner:before,
.preloader .spinner:after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.preloader .spinner:before {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255, 107, 0, 0.2);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

.preloader .spinner:after {
    width: 80%;
    height: 80%;
    background-color: var(--dark-color);
    top: 10%;
    left: 10%;
    animation: pulse 1s infinite alternate;
}

/* Element Animation Classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-down.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Delay classes for staggered animations */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}

.delay-900 {
    transition-delay: 0.9s;
}

.delay-1000 {
    transition-delay: 1s;
}

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

@keyframes pulse {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes floatUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Page Transition Effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 9998;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateX(0);
}

/* ====== Responsive Media Queries ====== */
@media (max-width:767px) {
    .site-main {
        padding-bottom: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .site-footer h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .auth-section {
        padding: 2rem 0;
    }

    .auth-header {
        padding: 20px;
    }

    .auth-body {
        padding: 20px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .social-login {
        flex-direction: column;
        gap: 10px;
    }
}

/* Custom Swiper Styles for Different Screens */
@media (min-width:576px) {
    .games-swiper .swiper-slide {
        width: 50%;
    }
}

@media (min-width:768px) {
    .games-swiper .swiper-slide {
        width: 33.333%;
    }
}

@media (min-width:992px) {
    .games-swiper .swiper-slide {
        width: 25%;
    }
}

@media (min-width:1200px) {
    .games-swiper .swiper-slide {
        width: 20%;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .mobile-nav,
    .mobile-footer-bar,
    .site-footer {
        display: none;
    }

    body {
        background-color: #fff;
        color: #000;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* SEO Schema Rich Snippets Support */
.schema-rating {
    display: inline-flex;
    align-items: center;
}

.schema-rating .stars {
    color: var(--accent-color);
    margin-right: 5px;
}

.schema-rating .count {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}