/* Betsalvador - Dark Theme with Green Accent */
/* Core Web Vitals Optimized */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Loading - CLS Prevention */
body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    /* Prevent font swap CLS */
    font-display: swap;
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
}

/* Font metrics matching for CLS prevention */
@font-face {
    font-family: 'Poppins-Fallback';
    src: local('Arial');
    ascent-override: 105%;
    descent-override: 35%;
    line-gap-override: 10%;
}

/* GPU Acceleration for animations */
.phone-mockup,
.phone-glow,
.btn,
.header-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Contain for layout stability */
.content-section,
.features,
.faq-section {
    contain: layout style;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header - CLS Prevention with fixed height */
.header {
    background: #111;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
    /* Fixed height for CLS */
    min-height: 65px;
    contain: layout style;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-text .green {
    color: #00d46a;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #fff;
}

.header-btn {
    background: #00d46a;
    border: none;
    color: #000;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.header-btn:hover {
    background: #00b85a;
}

/* Hero - LCP Element */
.hero {
    padding: 80px 0;
    background: #0f0f0f;
    /* Minimum height for CLS prevention */
    min-height: 500px;
    contain: layout style;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* LCP Target Element */
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    /* LCP Optimization */
    content-visibility: auto;
    /* Prevent font-swap shift */
    min-height: 106px;
}

.hero-content h1 span {
    color: #00d46a;
}

.hero-content p {
    font-size: 16px;
    color: #888;
    margin-bottom: 32px;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: #00d46a;
    color: #000;
    border: 2px solid #00d46a;
}

.btn-primary:hover {
    background: #00b85a;
    border-color: #00b85a;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #1a1a1a;
    border-color: #444;
}

/* Phone Mockup - Tilted iPhone Style */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: center center;
    position: relative;
    transform-style: preserve-3d;
}

.phone-glow {
    display: none;
}

/* Respect user preference for reduced motion - INP/Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .phone-glow {
        animation: none;
    }

    .phone-mockup {
        transform: none;
    }
}

.phone-mockup {
    /* Fixed dimensions for CLS prevention */
    width: 260px;
    height: 520px;
    min-width: 260px;
    min-height: 520px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 3px solid #3a3a3a;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    /* GPU acceleration */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero-image:hover .phone-mockup {
    transform: rotateY(0deg) rotateX(0deg) translateZ(30px) scale(1.02);
    box-shadow:
        0 60px 120px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-logo {
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -1px;
}

.screen-logo .green {
    color: #00d46a;
}

/* Categories */
.categories {
    padding: 80px 0;
    background: #0a0a0a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    text-align: center;
}

.category-img {
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
}

.spor-bg {
    background: linear-gradient(135deg, #1a3d2e 0%, #0d2a1f 100%);
}

.casino-bg {
    background: linear-gradient(135deg, #3d1a1a 0%, #2a0d0d 100%);
}

.slot-bg {
    background: linear-gradient(135deg, #2e1a3d 0%, #1f0d2a 100%);
}

.canli-bg {
    background: linear-gradient(135deg, #3d2e1a 0%, #2a1f0d 100%);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Features */
.features {
    padding: 80px 0;
    background: #0f0f0f;
}

.features h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* CLS Prevention */
    min-height: 200px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #222;
    /* CLS Prevention */
    min-height: 56px;
}

.check {
    color: #00d46a;
    font-weight: 700;
    font-size: 18px;
}

.feature-item span:last-child {
    font-size: 15px;
    font-weight: 500;
    color: #ccc;
}

/* Content Section - Lazy Rendering */
.content-section {
    padding: 80px 0;
    background: #0a0a0a;
    /* Lazy rendering for below-the-fold content */
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.content-section article {
    max-width: 800px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: #fff;
}

.content-section p {
    font-size: 15px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-section strong {
    color: #00d46a;
}

/* Internal Links */
.internal-link {
    color: #00d46a;
    text-decoration: none;
    border-bottom: 1px dashed #00d46a;
    transition: all 0.2s ease;
}

.internal-link:hover {
    color: #00ff7f;
    border-bottom-style: solid;
}

/* Section Link Box */
.section-link-box {
    margin-top: 32px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #222;
    border-left: 4px solid #00d46a;
    border-radius: 8px;
    font-size: 14px;
    color: #888;
}

.section-link-box strong {
    color: #fff;
    margin-right: 8px;
}

.section-link-box a {
    color: #00d46a;
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.2s;
}

.section-link-box a:hover {
    color: #00ff7f;
    text-decoration: underline;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #888;
    line-height: 1.7;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d46a;
    font-weight: 700;
}

.feature-list li strong {
    color: #fff;
}

/* Step Lists */
.step-list {
    padding-left: 24px;
    margin: 20px 0;
}

.step-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #888;
    line-height: 1.7;
}

.step-list li strong {
    color: #00d46a;
}

/* Tables - CLS Prevention */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    /* Minimum height for CLS */
    min-height: 200px;
    contain: layout;
}

.bonus-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.bonus-table thead {
    background: linear-gradient(135deg, #00d46a 0%, #00b85a 100%);
}

.bonus-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #222;
}

.bonus-table tbody tr:last-child td {
    border-bottom: none;
}

.bonus-table tbody tr:hover {
    background: #222;
}

.bonus-table td strong {
    color: #fff;
}

/* CTA Buttons */
.cta-buttons {
    text-align: center;
    margin: 40px 0 20px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 16px;
}

/* Disclaimer */
.disclaimer {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: #111;
    border-radius: 8px;
    border: 1px solid #222;
}

/* Conclusion Section */
.conclusion-section {
    background: #0f0f0f;
    border-top: 1px solid #222;
}

/* Bonus Section */
.bonus-section {
    background: #0f0f0f;
}

/* Casino Section */
.casino-section {
    background: #0f0f0f;
}

/* FAQ Section - Lazy Rendering */
.faq-section {
    padding: 80px 0;
    background: #0f0f0f;
    /* Lazy rendering for below-the-fold content */
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.faq-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 24px;
    /* CLS Prevention */
    min-height: 120px;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 60px 0 0;
    border-top: 1px solid #222;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-logo .green {
    color: #00d46a;
}

.footer-brand p {
    font-size: 14px;
    color: #666;
    max-width: 280px;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00d46a;
}

.footer-cta {
    text-align: center;
}

.bonus-badge {
    display: inline-block;
    background: #00d46a;
    color: #000;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-gold {
    background: #00d46a;
    color: #000;
    border: none;
    display: block;
    width: 100%;
}

.btn-gold:hover {
    background: #00b85a;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 12px;
    color: #444;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}



/* Articles Grid Section */
.articles-grid-section {
    padding: 80px 0;
    background: #0a0a0a;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.main-article-card {
    background: #151515;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.main-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00d46a;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 106, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 106, 0.05);
}

.main-article-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 106, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #00d46a;
}

.main-article-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.card-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #00d46a;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.main-article-card:hover .card-read-more {
    gap: 10px;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .main-article-card {
        padding: 24px;
    }
}

/* Subpage Specific Content Styling */
.quick-nav-box,
.slot-ranking-box,
.tv-features-box,
.slot-math-box,
.rtp-calculator-box {
    background: #111;
    padding: 25px;
    border-left: 4px solid #00d46a;
    margin: 30px 0;
    border-radius: 8px;
}

.pro-strategy-box,
.betting-synergy-box,
.slot-strategy-box,
.variance-math-box {
    background: #1a1a1a;
    padding: 30px;
    border: 1px dashed #00d46a;
    margin: 40px 0;
    border-radius: 12px;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

.internal-links-grid a {
    color: #00d46a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.internal-links-grid a:hover {
    color: #fff;
}

/* Unified Standard Layout for Article Pages */
.article-hero {
    text-align: center !important;
}

.article-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-content-page article {
    margin: 0 auto !important;
    max-width: 800px;
    /* Ensure consistency if internal style misses it */
}

/* Ensure images in articles are also centered if they aren't full width */
.article-content-page img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Print Styles - SEO Friendly */
@media print {
    /* Hide non-essential elements */
    .header,
    .header-btn,
    .hero-buttons,
    .footer-cta,
    .faq-section,
    .features,
    nav,
    .cta-buttons,
    .bonus-badge,
    .btn,
    [aria-label='Ana navigasyon'] {
        display: none !important;
    }

    /* Optimize text for print */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.4;
    }

    /* Show URLs for links */
    a[href]:after {
        content: ' (' attr(href) ')';
        font-size: 0.9em;
        color: #666;
    }

    /* Remove decorations */
    .hero,
    .content-section,
    article {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    h1, h2, h3, h4 {
        color: #000 !important;
        page-break-after: avoid;
    }

    /* Image optimization */
    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }

    /* Footer */
    .footer {
        background: #fff !important;
        border-top: 1px solid #ccc;
        margin-top: 20px;
    }

    .footer a[href]:after {
        content: none;
    }
}

