/* ============================================
   1xBet Download Guide - Professional Stylesheet
   Focus: Readability, Scannability, Structure
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-size: 1rem;
}

/* === CONTAINER & LAYOUT === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: #1a252f;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.2rem;
    margin-top: 0;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 0.3em;
    margin-top: 2.5em;
}

h3 {
    font-size: 1.4rem;
    color: #2c5aa0;
}

h4 {
    font-size: 1.2rem;
    color: #34495e;
}

p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

strong {
    font-weight: 600;
    color: #1a252f;
}

em {
    font-style: italic;
    color: #555;
}

/* === LINKS === */
a {
    color: #2c5aa0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: #1a3a6b;
    border-bottom-color: #2c5aa0;
}

a.internal-link {
    font-weight: 500;
}

/* === LISTS === */
ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

ul li, ol li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

ul ul, ol ol, ul ol, ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* === HEADER & META === */
header {
    margin-bottom: 2em;
}

.meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5em;
    padding: 0.8em 0;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.meta strong {
    color: #34495e;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5em;
    padding: 0.6em 0;
}

.breadcrumbs a {
    color: #2c5aa0;
    border-bottom: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* === TABLE OF CONTENTS === */
.table-of-contents {
    background-color: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5em;
    margin: 2em 0;
}

.table-of-contents h2 {
    margin-top: 0;
    font-size: 1.3rem;
    border-bottom: none;
    color: #2c5aa0;
}

.table-of-contents ol {
    margin-left: 1.2em;
    margin-bottom: 0;
}

.table-of-contents li {
    margin-bottom: 0.5em;
}

.table-of-contents a {
    color: #34495e;
    font-weight: 500;
}

.table-of-contents a:hover {
    color: #2c5aa0;
}

/* === QUICK ANSWER BOX === */
.quick-answer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.8em;
    border-radius: 10px;
    margin: 2em 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quick-answer h2 {
    color: #ffffff;
    margin-top: 0;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5em;
    margin-bottom: 0.8em;
}

.quick-answer p {
    line-height: 1.8;
    margin-bottom: 0;
}

.quick-answer strong {
    color: #ffffff;
    font-weight: 600;
}

.quick-answer a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    font-weight: 500;
}

.quick-answer a:hover {
    border-bottom-color: #fff;
}

/* === INFO BOXES === */
.tip-box,
.warning-box,
.step-box,
.mini-case {
    padding: 1.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.tip-box {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
}

.tip-box h3,
.tip-box h4 {
    color: #2e7d32;
    margin-top: 0;
}

.warning-box {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}

.warning-box h3,
.warning-box h4 {
    color: #e65100;
    margin-top: 0;
}

.step-box {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
}

.step-box h3,
.step-box h4 {
    color: #1565c0;
    margin-top: 0;
}

.mini-case {
    background-color: #f3e5f5;
    border-left-color: #9c27b0;
}

.mini-case h3 {
    color: #6a1b9a;
    margin-top: 0;
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #2c5aa0;
    color: #ffffff;
}

thead th {
    padding: 1em;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

tbody tr {
    border-bottom: 1px solid #e1e8ed;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e8f4f8;
}

tbody td {
    padding: 1em;
    font-size: 0.95rem;
}

tbody td:first-child {
    font-weight: 500;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        font-size: 0.85rem;
    }
    
    thead th,
    tbody td {
        padding: 0.7em;
    }
}

/* === FAQ SECTION === */
.faq-container {
    margin: 3em 0;
    padding: 2em;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.faq-title {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-top: 0;
    margin-bottom: 1.5em;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 0.5em;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1.2em;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #2c5aa0;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* === NAVIGATION BUTTONS === */
.nav-buttons {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin: 2.5em 0;
    padding-top: 2em;
    border-top: 2px solid #e1e8ed;
}

.nav-button {
    flex: 1;
    min-width: 200px;
    padding: 1em 1.5em;
    background-color: #2c5aa0;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
}

.nav-button:hover {
    background-color: #1a3a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
    color: #ffffff;
}

.nav-button.secondary {
    background-color: #7f8c8d;
}

.nav-button.secondary:hover {
    background-color: #5a6c7d;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        min-width: 100%;
    }
}

/* === FOOTER === */
footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 3px solid #e1e8ed;
}

.footer-nav h3 {
    font-size: 1.2rem;
    color: #2c5aa0;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.footer-nav ul {
    list-style: none;
    margin-left: 0;
}

.footer-nav li {
    margin-bottom: 0.5em;
}

.footer-nav a {
    color: #34495e;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #2c5aa0;
}

.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5em;
    margin: 2em 0;
}

.disclaimer h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.disclaimer p {
    color: #856404;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e1e8ed;
}

/* === ARTICLE SECTIONS === */
article {
    margin-top: 2em;
}

section {
    margin-bottom: 3em;
}

section:last-child {
    margin-bottom: 2em;
}

/* === CODE BLOCKS (if needed) === */
code {
    background-color: #f4f4f4;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    color: #c7254e;
}

pre {
    background-color: #f4f4f4;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 1em;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #333;
}

/* === IMAGES (if added later) === */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .quick-answer {
        padding: 1.2em;
    }
    
    .tip-box,
    .warning-box,
    .step-box,
    .mini-case {
        padding: 1em;
    }
    
    .faq-container {
        padding: 1em;
    }
    
    .faq-item {
        padding: 1em;
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .nav-buttons,
    .breadcrumbs {
        display: none;
    }
    
    a {
        color: #000;
        border-bottom: none;
    }
    
    .quick-answer {
        background: #f0f0f0;
        color: #000;
        box-shadow: none;
    }
    
    .quick-answer h2 {
        color: #000;
    }
}

/* === ACCESSIBILITY === */
:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c5aa0;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }

.hidden {
    display: none;
}

/* === SMOOTH SCROLLING FOR ANCHOR LINKS === */
html {
    scroll-padding-top: 20px;
}

/* === SELECTION COLOR === */
::selection {
    background-color: #2c5aa0;
    color: #ffffff;
}

::-moz-selection {
    background-color: #2c5aa0;
    color: #ffffff;
}

