/*
Theme Name: Krypto Casino Deutschland
Theme URI: https://kryptocasinodeutschland.com
Description: Premium German crypto casino affiliate theme
Version: 1.0.0
Author: kryptocasinodeutschland.com
Text Domain: krypto-casino
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0a0e1a;
    --bg-alt: #0f1425;
    --bg-card: #141a2e;
    --bg-card-hover: #1a2038;
    --accent: #f7931a;
    --accent-hover: #ffab40;
    --accent2: #00d4aa;
    --accent2-hover: #00f0c0;
    --text: #e2e4ea;
    --text-muted: #8a8fa8;
    --text-heading: #ffffff;
    --border: rgba(255,255,255,0.08);
    --green: #22c55e;
    --red: #ef4444;
    --radius: 8px;
    --max-w: 1280px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.3;
    font-weight: 700;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    color: var(--text-heading);
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--text);
    transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10,14,26,0.98); z-index: 999; padding: 40px 24px;
}
.mobile-nav.active { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a {
    color: var(--text); font-size: 20px; font-weight: 600;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
    min-height: 60vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 80px 24px 60px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-alt) 100%);
    position: relative;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    max-width: 720px; margin: 0 auto 20px;
}
.hero-meta {
    font-size: 14px; color: var(--text-muted); margin-bottom: 8px;
}
.hero-author {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.hero-author img {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: contain; border: 1px solid var(--accent);
}
.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000; font-weight: 700; font-size: 16px;
    padding: 14px 36px; border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247,147,26,0.3);
    color: #000;
}

/* Inner hero for secondary pages */
.inner-hero {
    min-height: 40vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 80px 24px 50px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-alt) 100%);
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
.hero-badges {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-top: 20px;
}
.hero-badge {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 18px; border-radius: var(--radius);
    font-size: 13px; color: var(--accent); font-weight: 600;
}

/* ===== TOC ===== */
.toc-outer {
    display: flex; justify-content: center;
    padding: 0 24px;
    margin-top: -10px; margin-bottom: 40px;
}
.toc-wrapper {
    width: 100%; max-width: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(247,147,26,0.18);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.toc-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 20px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--text-heading);
    background: none; border: none; width: 100%; text-align: left;
    font-family: var(--font-heading);
    transition: background .2s;
}
.toc-toggle:hover { background: rgba(255,255,255,0.03); }
.toc-toggle .toc-arrow {
    transition: transform .3s; color: var(--accent);
    font-size: 12px;
}
.toc-toggle.active .toc-arrow { transform: rotate(180deg); }
.toc-list {
    display: none; padding: 0 20px 16px; list-style: none;
    border-top: 1px solid var(--border);
}
.toc-list.active { display: block; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
    color: var(--text-muted); font-size: 13px;
    transition: color .2s; display: block; padding: 4px 0;
}
.toc-list a:hover { color: var(--accent); }

/* ===== SECTION SPACING & DIVIDERS ===== */
.section-spacing { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-divider {
    text-align: center; padding: 20px 0;
}
.section-divider::after {
    content: ''; display: inline-block;
    width: 200px; max-width: 80%; height: 1px;
    background: var(--accent); opacity: 0.2;
}

/* ===== GRID ===== */
.section-heading {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 32px; text-align: left;
}
.section-heading span { color: var(--accent); }

.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== CASINO CARD ===== */
.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column;
}
.casino-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-color: rgba(247,147,26,0.2);
}
.card-rank {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #000;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; z-index: 2;
}
.card-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,212,170,0.15); color: var(--accent2);
    font-size: 11px; font-weight: 600; padding: 4px 10px;
    border-radius: 20px; z-index: 2;
}
.card-logo-wrap {
    position: relative; padding: 24px 20px 16px;
    text-align: center;
}
.card-logo-wrap img {
    width: 100%; max-height: 60px; object-fit: contain;
}
.card-name {
    font-size: 18px; font-weight: 700; text-align: center;
    padding: 0 16px 4px; color: var(--text-heading);
}
.card-rating {
    text-align: center; padding: 0 16px 12px;
    font-size: 14px; color: var(--accent);
}
.card-bonus {
    background: rgba(247,147,26,0.08);
    padding: 10px 16px; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--accent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.card-details {
    padding: 14px 16px; flex: 1;
}
.card-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 13px;
}
.card-detail-row .label { color: var(--text-muted); }
.card-detail-row .value { color: var(--text); font-weight: 500; font-family: var(--font-mono); font-size: 12px; }

.card-payments {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 8px 16px 4px; justify-content: center;
}
.card-payments .pay-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border-radius: 4px;
    padding: 3px 6px; font-size: 10px; color: var(--text-muted);
    font-weight: 600; font-family: var(--font-mono);
}

.bonus-details-toggle {
    display: block; width: 100%; background: none; border: none;
    color: var(--text-muted); font-size: 12px; cursor: pointer;
    padding: 6px 16px; text-align: center; transition: color .2s;
    font-family: var(--font-body);
}
.bonus-details-toggle:hover { color: var(--accent); }
.bonus-details-content {
    display: none; padding: 8px 16px 12px;
    font-size: 12px; color: var(--text-muted); line-height: 1.6;
    border-top: 1px solid var(--border);
}
.bonus-details-content.active { display: block; }

.card-cta-wrap { padding: 12px 16px; }
.card-cta {
    display: block; text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000; font-weight: 700; font-size: 14px;
    padding: 12px; border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.card-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247,147,26,0.3);
    color: #000;
}
.card-terms {
    text-align: center; font-size: 10px;
    color: var(--text-muted); padding: 0 16px 14px;
    line-height: 1.4;
}

/* ===== REVIEW BLOCKS ===== */
.review-block {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.review-block:last-child { border-bottom: none; }

.review-topbar {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.review-topbar-logo img {
    width: 120px; max-height: 48px; object-fit: contain;
}
.review-topbar-info { flex: 1; }
.review-topbar-info h3 {
    font-size: 20px; margin-bottom: 4px;
}
.review-stars { color: var(--accent); font-size: 14px; }
.review-topbar-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000; font-weight: 700; font-size: 13px;
    padding: 10px 24px; border-radius: var(--radius);
    white-space: nowrap;
}
.review-topbar-cta:hover { color: #000; }

.review-screenshots {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 24px;
}
.review-screenshot-wrap {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); cursor: pointer;
    transition: border-color .2s;
}
.review-screenshot-wrap:hover { border-color: var(--accent); }
.review-screenshot-wrap img {
    width: 100%; height: auto; object-fit: contain;
    display: block;
}

.review-body { margin-bottom: 24px; }
.review-body p { margin-bottom: 14px; }
.review-body strong { color: var(--text-heading); }

.pros-cons-table {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 20px;
}
.pros-col h4, .cons-col h4 {
    font-size: 15px; margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 2px solid;
}
.pros-col h4 { color: var(--green); border-color: var(--green); }
.cons-col h4 { color: var(--red); border-color: var(--red); }
.pros-col ul, .cons-col ul {
    list-style: none; padding: 0;
}
.pros-col li, .cons-col li {
    padding: 6px 0 6px 20px; position: relative;
    font-size: 14px; line-height: 1.5;
}
.pros-col li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--green); font-weight: 700;
}
.cons-col li::before {
    content: '✗'; position: absolute; left: 0;
    color: var(--red); font-weight: 700;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    width: 100%;
}
.content-section h2 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 16px;
}
.content-section h3 {
    font-size: clamp(17px, 2.5vw, 22px);
    margin-top: 24px; margin-bottom: 10px;
}
.content-section p {
    margin-bottom: 14px; width: 90%; min-width: 90%;
}
.content-section strong { color: var(--text-heading); }

/* Tables in content sections */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.content-section table,
.page-content table,
.review-body table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
.content-section table th,
.page-content table th,
.review-body table th {
    background: var(--bg-card);
    color: var(--accent); font-weight: 600;
    padding: 12px 16px; text-align: left;
    white-space: nowrap; position: sticky; top: 0;
    border-bottom: 2px solid var(--accent);
    font-size: 13px;
}
.content-section table td,
.page-content table td,
.review-body table td {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    min-width: 120px;
}
.content-section table tr:hover td,
.page-content table tr:hover td {
    background: rgba(247,147,26,0.03);
}

/* ===== FAQ ===== */
.faq-section { }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; cursor: pointer;
    font-weight: 600; font-size: 15px;
    color: var(--text-heading); min-height: 48px;
    transition: background .2s;
    background: none; border: none; width: 100%; text-align: left;
    font-family: var(--font-body);
}
.faq-question:hover { background: rgba(247,147,26,0.03); }
.faq-icon {
    font-size: 20px; color: var(--accent);
    transition: transform .3s; flex-shrink: 0; margin-left: 12px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease, padding .3s;
    padding: 0 20px;
}
.faq-item.active .faq-answer {
    max-height: 500px; padding: 0 20px 16px;
}
.faq-answer p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.faq-answer strong { color: var(--text-heading); }

/* ===== AUTHOR BOX ===== */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.author-box img {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: contain; border: 2px solid var(--accent);
    flex-shrink: 0;
}
.author-box-content h4 { font-size: 16px; margin-bottom: 4px; }
.author-box-content .author-role { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.author-box-content p { font-size: 14px; color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
    max-width: 640px;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--text-heading); margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: var(--font-body); font-size: 14px;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent); outline: none;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000; font-weight: 700; font-size: 15px;
    padding: 14px 32px; border: none; border-radius: var(--radius);
    cursor: pointer; transition: transform .2s;
}
.contact-form button:hover { transform: translateY(-2px); }

.contact-info-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    margin-top: 32px;
}
.contact-info-box h4 { font-size: 15px; margin-bottom: 8px; }
.contact-info-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }

.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--accent2); color: #000;
    padding: 14px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 14px;
    transform: translateY(100px); opacity: 0;
    transition: transform .4s, opacity .4s; z-index: 9999;
}
.toast.active { transform: translateY(0); opacity: 1; }

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 40px 0 60px;
}
.page-content h2 {
    font-size: clamp(20px, 3vw, 28px);
    margin-top: 40px; margin-bottom: 14px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
    font-size: clamp(17px, 2.5vw, 22px);
    margin-top: 28px; margin-bottom: 10px;
}
.page-content p { margin-bottom: 14px; }
.page-content strong { color: var(--text-heading); }

/* Team member cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.team-card img {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: contain; border: 2px solid var(--accent);
    margin: 0 auto 12px;
}
.team-card h4 { font-size: 16px; margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 13px; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: var(--text-muted); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92); z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 24px; cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 95vw; max-height: 90vh; object-fit: contain;
    border-radius: var(--radius);
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 32px; cursor: pointer;
    background: none; border: none; z-index: 10001;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}
.site-footer p {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 8px; line-height: 1.6;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .casino-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .hamburger { display: flex; }

    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-name { font-size: 15px; }
    .card-bonus { font-size: 12px; }
    .card-detail-row { font-size: 11px; }

    .review-topbar { flex-direction: column; text-align: center; }
    .review-screenshots { grid-template-columns: 1fr; }
    .pros-cons-table { grid-template-columns: 1fr; }

    .author-box { flex-direction: column; text-align: center; align-items: center; }

    .content-section p,
    .page-content p { width: 100%; }

    .table-responsive table { font-size: 13px; }
    .table-responsive table td,
    .table-responsive table th { padding: 8px 10px; min-width: 100px; }

    .hero { min-height: 50vh; padding: 60px 16px 40px; }
    .inner-hero { min-height: 35vh; }

    .toc-outer { padding: 0 16px; }
    .toc-wrapper { max-width: 100%; }
}

@media (max-width: 480px) {
    .casino-grid { gap: 10px; }
    .card-logo-wrap { padding: 16px 12px 10px; }
    .card-cta { font-size: 12px; padding: 10px; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 11px; padding: 6px 12px; }
}
