/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
    border: none;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #444;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Focus States */
.btn:focus,
button:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Ensure no borders on first elements */
body > *:first-child {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Header specific fixes */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: none;
    margin-top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    font-size: 14px;
    padding: 10px 20px;
    white-space: nowrap;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-nav-link {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #667eea;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 0.5rem 20px;
    border-top: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}

.breadcrumb-list li {
    margin-right: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem 0;
    text-align: center;
}

.hero-intro {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rating-stars {
    color: #ffd700;
    font-size: 1.25rem;
}

.rating-text {
    font-weight: 600;
    color: #333;
}

.bonus-text {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-cta {
    margin-bottom: 2rem;
}

.trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

/* Table of Contents */
.toc-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.toc-wrapper {
    position: relative;
}

.toc-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
}

.toc-arrow {
    transition: transform 0.3s ease;
}

.toc-toggle[aria-expanded="true"] .toc-arrow {
    transform: rotate(180deg);
}

.toc-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toc-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.toc-list a {
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.toc-list a:hover {
    background: #f0f2ff;
    color: #5a67d8;
}

.toc-list a[aria-current="page"] {
    background: #667eea;
    color: white;
    font-weight: 600;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Game Demo */
.game-demo {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-demo h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.game-gif {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Card */
.brand-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.brand-logo img {
    height: 60px;
    width: auto;
}

.brand-info h3 {
    margin-bottom: 0.5rem;
}

.brand-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.brand-bonus {
    color: #667eea;
    font-weight: 600;
}

.brand-cta {
    white-space: nowrap;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-item h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.pros-cons-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pros-cons-table th,
.pros-cons-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.pros-cons-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pros-cons-table ul {
    margin: 0;
    padding-left: 1.5rem;
}

.pros-cons-table li {
    margin-bottom: 0.5rem;
}

/* Mobile table adaptation - hidden by default */
.pros-cons-mobile {
    display: none;
}

/* Steps Row */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Note Box */
.note-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.note-box h4 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.tip-item ul {
    text-align: left;
    margin-top: 1rem;
}

.tip-item li {
    margin-bottom: 0.5rem;
}

/* Screenshots Row */
.screenshots-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.screenshots-row img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Calculation Box */
.calculation-box {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-left: 4px solid #9c27b0;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.calculation-box h4 {
    color: #7b1fa2;
    margin-bottom: 0.5rem;
}

/* Stats Benefits */
.stats-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Expert Tip */
.expert-tip {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.expert-tip h4 {
    color: #f57c00;
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header[aria-expanded="true"] {
    background: #f0f2ff;
    color: #667eea;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Article Meta */
.article-meta {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 14px;
    color: #666;
}

.article-meta p {
    margin: 0.25rem 0;
}

/* Instruction Box */
.instruction-box {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.instruction-box h4 {
    color: #155724;
    margin-bottom: 0.5rem;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.tip-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Expert Card */
.expert-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.expert-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-info h3 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

.expert-title {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.age-badge,
.responsible-badge {
    background: #444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.mobile-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-cta-logo {
    height: 40px;
    width: auto;
}

.mobile-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-cta-brand {
    font-weight: 600;
    color: #333;
}

.mobile-cta-bonus {
    font-size: 14px;
    color: #667eea;
}

.mobile-cta-btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    /* Hide desktop nav, show burger menu */
    .desktop-nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-cta {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    /* Mobile nav adjustments */
    .mobile-nav-content {
        padding: 1rem 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toc-toggle {
        display: flex;
    }
    
    .toc-list {
        display: none;
        margin-top: 1rem;
    }
    
    .toc-list.show {
        display: block;
    }
    
    .toc-list ul {
        grid-template-columns: 1fr;
    }
    
    .brand-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .steps-row {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sticky-mobile-cta {
        display: block;
    }
    
    /* Mobile table adaptation */
    .pros-cons-table {
        display: none;
    }
    
    .pros-cons-mobile {
        display: block;
    }
    
    .pros-cons-mobile .pros-section,
    .pros-cons-mobile .cons-section {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .pros-cons-mobile .pros-section h4 {
        color: #28a745;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }
    
    .pros-cons-mobile .cons-section h4 {
        color: #dc3545;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }
    
    .pros-cons-mobile ul {
        margin: 0;
        padding-left: 1.5rem;
    }
    
    .pros-cons-mobile li {
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }
    
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .hero-badges {
        gap: 0.75rem;
    }
    
    .rating-badge,
    .bonus-text {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
    
    .trust-row {
        font-size: 12px;
        gap: 0.5rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .brand-card,
    .expert-card {
        padding: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .tip-item {
        padding: 1.5rem;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-content.active {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .sticky-mobile-cta,
    .cookie-banner {
        display: none;
    }
    
    .main {
        margin-top: 0;
    }
    
    .btn {
        border: 1px solid #333;
        background: white;
        color: #333;
    }
    
    .hero {
        background: white;
        border: 1px solid #ddd;
    }
    
    .content-section {
        break-inside: avoid;
    }
}
