/* ==========================================
   1xbet Arabia - Color Scheme & Variables
   ========================================== */
:root {
    --bg-primary: #0d1b2a;
    --bg-secondary: #1b2838;
    --bg-card: #1a2d42;
    --bg-header: #0a1628;
    --text-primary: #ffffff;
    --text-secondary: #a8b5c4;
    --accent-blue: #1e88e5;
    --accent-blue-hover: #1565c0;
    --accent-green: #00c853;
    --accent-green-hover: #00a844;
    --accent-gold: #ffc107;
    --border-color: rgba(30, 136, 229, 0.3);
    --shadow-color: rgba(0, 200, 83, 0.2);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.8;
}

/* ==========================================
   Navbar Styles
   ========================================== */
.navbar {
    background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg-secondary) 100%);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-brand img {
    max-height: 45px;
}

.navbar .navbar-toggler {
    border-color: var(--accent-blue);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e88e5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header Buttons */
.btn-login {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login:hover {
    background: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 136, 229, 0.4);
}

.btn-register-nav {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00e676 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-register-nav:hover {
    background: linear-gradient(135deg, var(--accent-green-hover) 0%, var(--accent-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-color);
    color: var(--text-primary);
}

/* ==========================================
   Main Content
   ========================================== */
main {
    color: var(--text-primary);
    padding-bottom: 40px;
}

.container {
    max-width: 1200px;
}

/* ==========================================
   Content Blocks
   ========================================== */
.block {
    padding: 28px;
    margin: 20px 0;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Typography
   ========================================== */
h1 {
    font-size: 32px;
    text-align: center;
    margin: 25px 0;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(30, 136, 229, 0.3);
}

h2 {
    font-size: 26px;
    text-align: center;
    margin: 22px 0;
    font-weight: 700;
    color: var(--accent-blue);
}

h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 18px 0;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

strong {
    color: var(--text-primary);
}

/* ==========================================
   Lists
   ========================================== */
ul, ol {
    padding-right: 20px;
    margin: 15px 0;
}

ul li, ol li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-right: 10px;
}

ul li::marker {
    color: var(--accent-green);
}

ol li::marker {
    color: var(--accent-blue);
    font-weight: 700;
}

/* ==========================================
   Images
   ========================================== */
.img-box {
    max-width: 800px;
    margin: 25px auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

main img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    border-radius: 14px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   CTA Buttons
   ========================================== */
.btn-center {
    width: 100%;
    text-align: center;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-login,
.btn-cta-register {
    display: inline-block;
    min-width: 180px;
    padding: 14px 35px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-login {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-cta-login:hover {
    background: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.btn-cta-register {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00e676 100%);
    border: none;
    color: var(--text-primary);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.btn-cta-register:hover {
    background: linear-gradient(135deg, #00e676 0%, var(--accent-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
    color: var(--text-primary);
}

/* ==========================================
   Tables
   ========================================== */
.table-styled {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    animation: tableGlow 4s ease-in-out infinite;
}

@keyframes tableGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(30, 136, 229, 0.3), 0 0 30px rgba(0, 200, 83, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(30, 136, 229, 0.5), 0 0 50px rgba(0, 200, 83, 0.3);
    }
}

.table-styled th {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1565c0 100%);
    padding: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.table-styled td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
}

.table-styled tr:last-child td {
    border-bottom: none;
}

.table-styled tr:hover td {
    background: rgba(30, 136, 229, 0.1);
    transition: 0.25s ease;
}

/* ==========================================
   Table of Contents
   ========================================== */
.toc-toggle {
    display: block;
    margin: 15px auto;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1565c0 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.toc {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toc.is-collapsed {
    display: none;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 8px 0;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
}

.toc a:hover {
    color: var(--accent-green);
    background: rgba(0, 200, 83, 0.1);
}

/* Back to Top Button */
.toc-back-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1565c0 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
    z-index: 1000;
}

.toc-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.toc-back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 136, 229, 0.5);
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
    margin: 40px 0;
    padding: 30px 0;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-blue);
    font-size: 30px;
    font-weight: 800;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 25px rgba(30, 136, 229, 0.2);
}

.faq-question {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    color: var(--text-primary);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question span:first-child {
    flex: 1;
    padding-left: 20px;
}

.faq-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
    transition: transform 0.3s ease;
    min-width: 25px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer div {
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-header) 100%);
    color: var(--text-primary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.footer-logo {
    max-height: 50px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-badges svg {
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.footer-badges a:hover svg {
    fill: var(--accent-blue);
}

.footer-links {
    text-align: center;
    padding: 25px 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.footer-disclaimer p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   Pros & Cons Table
   ========================================== */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 12px;
}

.pros {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.cons {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.pros h4 {
    color: var(--accent-green);
    margin-bottom: 15px;
}

.cons h4 {
    color: #f44336;
    margin-bottom: 15px;
}

.pros li::marker {
    content: "✅ ";
}

.cons li::marker {
    content: "❌ ";
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 19px;
    }
    
    .block {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .btn-center {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-login,
    .btn-cta-register {
        width: 100%;
        max-width: 280px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    .table-styled th,
    .table-styled td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .footer-badges {
        display: none;
    }
    
    .footer-top {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .block {
        padding: 15px 12px;
    }
    
    .table-styled {
        font-size: 12px;
    }
    
    .table-styled th,
    .table-styled td {
        padding: 8px 5px;
    }
    
    .toc-back-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}
/* ==========================================
   Navbar Links (App / Bonuses / Registration)
   ========================================== */
.navbar-links .nav-link {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.navbar-links .nav-link:hover,
.navbar-links .nav-link:focus {
    color: var(--text-primary);
    background: rgba(30, 136, 229, 0.12);
    box-shadow: 0 0 0 1px var(--border-color);
}

.navbar-links .nav-link.active {
    color: var(--accent-green);
    background: rgba(0, 200, 83, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.25);
}

/* Mobile spacing inside hamburger */
@media (max-width: 991.98px) {
    .navbar-links {
        gap: 6px;
        padding-top: 10px;
    }

    .navbar-links .nav-link {
        text-align: right;
        background: rgba(13, 27, 42, 0.35);
        border: 1px solid var(--border-color);
    }
}