
/* =========================================
   1. CSS Reset & Base Configuration
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - Dark Theme (Gaming/Betting Style) */
    --bg-body: #0f192b;
    --bg-card: #1a253a;
    --bg-card-hover: #243049;
    --bg-header: rgba(15, 25, 43, 0.95);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a6b2c3;
    --text-accent: #a0a0ed;
    
    /* Brand Colors */
    --primary-blue: #0095ff;
    --primary-blue-dark: #0855c4;
    --accent-green: #31bc69;
    --accent-green-dark: #089e4e;
    
    /* UI Elements */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 15px rgba(0, 149, 255, 0.4);
    --shadow-glow-green: 0 0 15px rgba(49, 188, 105, 0.4);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

button {
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    font-family: inherit;
}

/* =========================================
   2. Header Styles (.hdr)
   ========================================= */
.hdr {
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hdr-wrap,
.hdr-bns-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide desktop elements on mobile if needed, though flex handles layout well */
@media (max-width: 768px) {
    .hdr-wrap, .hdr-bns-wrap {
        display: none;
    }
}

.hdr-wrap-itm-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hdr-wrap-itm-btn:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hdr-wrap-itm-free span {
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

/* Bonus Link Styling */
.hdr-bns-wrap-itm-bns-lnk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    transition: var(--transition-smooth);
}

.hdr-bns-wrap-itm-bns-lnk:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hdr-bns-wrap-itm-bns-lnk-txt {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Language Switcher */
.hdr-bns-wrap-itm-swtchr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: bold;
    cursor: pointer;
}

.hdr-bns-wrap-itm-swtchr img {
    width: 1.5rem;
    border-radius: 2px;
}

/* =========================================
   3. Mobile Header (.ams-mob-header)
   ========================================= */
.ams-mob-header {
    display: none; /* Default hidden on desktop */
    width: 100%;
}

@media (max-width: 768px) {
    .ams-mob-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.625rem;
    }
    
    .ams-item-box {
        flex: 1;
    }

    /* Login Button Mobile */
    .ams-item-log {
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
        box-shadow: 0 4px 15px rgba(0, 149, 255, 0.3);
        height: 2.5rem;
        color: white;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: var(--border-radius-md);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }
    
    .ams-item-log:active {
        transform: scale(0.96);
    }

    /* Registration Button Mobile */
    .ams-item-reg {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 2.5rem;
        background-image: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
        box-shadow: 0 4px 15px rgba(49, 188, 105, 0.3);
        border-radius: var(--border-radius-md);
        transition: transform var(--transition-fast);
    }

    .ams-item-reg a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ams-item-reg span {
        color: white;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
    }
    
    .ams-item-reg:active {
        transform: scale(0.96);
    }
}

/* =========================================
   4. Navigation (.nv)
   ========================================= */
.nv {
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .nv {
        display: none; /* Hide desktop nav on mobile */
    }
}

.nv-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.nv-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nv-itm {
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
}

.nv-itm-txt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nv-itm-txt:hover,
.nv-itm-txt.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nv-itm-txt.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Desktop Login/Reg within Nav */
.nv-itm-login {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.nv-itm-login:hover {
    color: var(--primary-blue);
}

.nv-itm-rgstr {
    background: var(--accent-green);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow-green);
}

.nv-itm-rgstr:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
}

/* =========================================
   5. Hero Section (.tizpromik-box)
   ========================================= */
.tizpromik-box {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default fallback background if image fails */
    background-color: #1a1a1a; 
    /* Using variables for images would be ideal if URLs were dynamic, 
       but standard CSS rules for media queries work best here per request */
    background-image: url('/images/mobile.jpg');
}

@media screen and (min-width: 768px) {
    .tizpromik-box {
        background-image: url('/images/desktop.jpg');
    }
}

.tizpromik-box .tizer {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 25, 43, 0.3), rgba(15, 25, 43, 0.9));
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tizpromik-box .ctr {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.tizpromik-box h1 {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 4rem); /* Responsive typography */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

/* CTA Button in Hero */
.button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    background-image: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    border-radius: var(--border-radius-md) !important;
    box-shadow: 0 10px 25px rgba(49, 188, 105, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(49, 188, 105, 0.6);
}

.button:active {
    transform: scale(0.98);
}

.text-tiz {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.text-htiz {
    margin-top: 2rem;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.4rem) !important;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-htiz .promo {
    color: var(--accent-green);
    font-weight: 900;
    font-size: 1.2em;
    cursor: copy;
    border-bottom: 2px dashed var(--accent-green);
}

/* =========================================
   6. Main Content Area (.ams-main, .wn-txt)
   ========================================= */
.ams-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.wn-txt {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .wn-txt {
        padding: 1.5rem;
    }
}

/* Typography inside Content */
.wn-txt h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.wn-txt h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
}

.wn-txt p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.wn-txt strong, 
.wn-txt b {
    color: var(--text-primary);
    font-weight: 700;
}

/* Link Styling in Text */
.wn-txt a {
    color: var(--text-accent);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.2s;
}

.wn-txt a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.wn-txt a:hover {
    color: #fff;
}

.wn-txt a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Lists styling */
.wn-txt ul, 
.wn-txt ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.wn-txt ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.wn-txt ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    color: var(--text-secondary);
}

.wn-txt ul li::marker {
    color: var(--primary-blue);
}

.wn-txt ol li::marker {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Table Styling */
.wn-txt table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    font-size: 0.95rem;
}

.wn-txt th, 
.wn-txt td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wn-txt th {
    background-color: rgba(0, 149, 255, 0.15);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.wn-txt tr:last-child td {
    border-bottom: none;
}

.wn-txt tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Scrollable table container for mobile */
@media (max-width: 768px) {
    .wn-txt table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =========================================
   7. Slot Machine Grid / Modal (Preserved & Enhanced)
   ========================================= */
.ams-slots-list {
    width: 100%;
    background: linear-gradient(135deg, #1e283f 0%, rgba(20, 27, 46, 0.9) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ams-slots-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.ams-slots-wrap-item {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.ams-slots-wrap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ams-slots-wrap-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.ams-slots-wrap-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   8. Animation Keyframes
   ========================================= */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply entry animation to main content */
.wn-txt {
    animation: fadeIn 0.8s ease-out;
}
