/**
 * Gbets Login - Main Stylesheet
 * Prefix: uiaf-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --uiaf-primary: #6C757D;
    --uiaf-secondary: #696969;
    --uiaf-accent: #FAFAD2;
    --uiaf-dark: #36454F;
    --uiaf-light: #F5F5F5;
    --uiaf-text: #333333;
    --uiaf-bg-dark: #1a1f25;
    --uiaf-bg-card: #252b33;
    --uiaf-border: #3a4149;
    --uiaf-gold: #d4af37;
    --uiaf-green: #28a745;
    --uiaf-red: #dc3545;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--uiaf-bg-dark);
    color: var(--uiaf-light);
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.uiaf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--uiaf-dark) 0%, #1e252d 100%);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.uiaf-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uiaf-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.uiaf-logo img {
    width: 28px;
    height: 28px;
}

.uiaf-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--uiaf-gold);
}

.uiaf-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.uiaf-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.uiaf-btn-register {
    background: linear-gradient(135deg, var(--uiaf-gold) 0%, #c9a227 100%);
    color: var(--uiaf-dark);
}

.uiaf-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.uiaf-btn-login {
    background: transparent;
    border: 2px solid var(--uiaf-gold);
    color: var(--uiaf-gold);
}

.uiaf-btn-login:hover {
    background: var(--uiaf-gold);
    color: var(--uiaf-dark);
}

.uiaf-menu-toggle {
    background: transparent;
    border: none;
    color: var(--uiaf-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.uiaf-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--uiaf-bg-card);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.uiaf-mobile-menu.uiaf-menu-active {
    right: 0;
}

.uiaf-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.uiaf-menu-overlay.uiaf-overlay-active {
    opacity: 1;
    visibility: visible;
}

.uiaf-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--uiaf-light);
    font-size: 2rem;
    cursor: pointer;
}

.uiaf-menu-nav {
    margin-top: 3rem;
}

.uiaf-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--uiaf-light);
    border-bottom: 1px solid var(--uiaf-border);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.uiaf-menu-nav a:hover {
    color: var(--uiaf-gold);
    padding-left: 1.5rem;
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

.uiaf-container {
    padding: 1rem;
}

/* Carousel Styles */
.uiaf-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.uiaf-carousel-slides {
    position: relative;
}

.uiaf-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.uiaf-carousel-slide.uiaf-slide-active {
    display: block;
}

.uiaf-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.uiaf-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.uiaf-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.uiaf-carousel-indicator.uiaf-indicator-active {
    background: var(--uiaf-gold);
}

/* Section Titles */
.uiaf-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uiaf-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--uiaf-gold);
}

/* Game Grid */
.uiaf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.uiaf-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.uiaf-game-item:hover {
    transform: translateY(-3px);
}

.uiaf-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.uiaf-game-name {
    font-size: 1.1rem;
    color: var(--uiaf-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.uiaf-category-section {
    margin-bottom: 2rem;
}

.uiaf-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.uiaf-category-icon {
    width: 28px;
    height: 28px;
    color: var(--uiaf-gold);
}

.uiaf-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uiaf-gold);
}

/* Content Cards */
.uiaf-card {
    background: var(--uiaf-bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--uiaf-border);
}

.uiaf-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--uiaf-gold);
    margin-bottom: 1rem;
}

.uiaf-card-content {
    color: var(--uiaf-light);
    line-height: 1.6;
}

.uiaf-card-content p {
    margin-bottom: 1rem;
}

.uiaf-card-content a {
    color: var(--uiaf-gold);
    font-weight: 600;
}

.uiaf-card-content a:hover {
    text-decoration: underline;
}

/* Features List */
.uiaf-features-list {
    list-style: none;
}

.uiaf-features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--uiaf-border);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.uiaf-features-list li:last-child {
    border-bottom: none;
}

.uiaf-features-list i {
    color: var(--uiaf-green);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* Promo Banner */
.uiaf-promo-banner {
    background: linear-gradient(135deg, var(--uiaf-dark) 0%, #2a3540 100%);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--uiaf-gold);
}

.uiaf-promo-banner h3 {
    font-size: 1.6rem;
    color: var(--uiaf-gold);
    margin-bottom: 0.8rem;
}

.uiaf-promo-banner p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Footer */
.uiaf-footer {
    background: var(--uiaf-bg-card);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--uiaf-border);
}

.uiaf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.uiaf-footer-links a {
    color: var(--uiaf-light);
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: var(--uiaf-bg-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.uiaf-footer-links a:hover {
    color: var(--uiaf-gold);
    background: var(--uiaf-dark);
}

.uiaf-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.uiaf-partners img {
    width: 50px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.uiaf-partners img:hover {
    opacity: 1;
}

.uiaf-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--uiaf-secondary);
}

/* Bottom Navigation */
.uiaf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--uiaf-bg-card) 0%, var(--uiaf-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    border-top: 1px solid var(--uiaf-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .uiaf-bottom-nav {
        display: none;
    }
}

.uiaf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--uiaf-light);
}

.uiaf-nav-item:hover {
    color: var(--uiaf-gold);
    transform: scale(1.1);
}

.uiaf-nav-item.active {
    color: var(--uiaf-gold);
}

.uiaf-nav-item i,
.uiaf-nav-item .material-icons-outlined,
.uiaf-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.uiaf-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.uiaf-text-center {
    text-align: center;
}

.uiaf-mb-1 {
    margin-bottom: 1rem;
}

.uiaf-mb-2 {
    margin-bottom: 2rem;
}

.uiaf-highlight {
    color: var(--uiaf-gold);
    font-weight: 600;
}

/* Promo Link Styles */
.uiaf-promo-link {
    color: var(--uiaf-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uiaf-promo-link:hover {
    text-decoration: underline;
    color: #e5c23b;
}

/* RTP Table */
.uiaf-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.uiaf-rtp-table th,
.uiaf-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--uiaf-border);
}

.uiaf-rtp-table th {
    background: var(--uiaf-dark);
    color: var(--uiaf-gold);
    font-weight: 600;
}

.uiaf-rtp-table td {
    color: var(--uiaf-light);
}

/* FAQ Section */
.uiaf-faq-item {
    background: var(--uiaf-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.uiaf-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--uiaf-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uiaf-faq-answer {
    padding: 0 1rem 1rem;
    color: var(--uiaf-light);
    line-height: 1.6;
}

/* Security Badges */
.uiaf-security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.uiaf-security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--uiaf-bg-dark);
    border-radius: 20px;
    font-size: 1.2rem;
}

.uiaf-security-badge i {
    color: var(--uiaf-green);
}

/* H1 Title */
.uiaf-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uiaf-gold);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .uiaf-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .uiaf-header-actions {
        gap: 0.4rem;
    }

    .uiaf-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}
