/* Landing Page Styles — Retro Comic Theme */

/* Fonts - match tournament app */
@font-face {
    font-family: 'Insignia';
    src: url('../fonts/Insignia-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5ebe0;
    color: #2b2118;
    line-height: 1.6;
}

/* ── Header ── */
.landing-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.landing-header {
    background: #2b2118;
    border-bottom: 4px solid #d4824a;
    padding: 18px 24px;
    margin-bottom: 0;
}

.landing-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.landing-header h1 {
    color: #f5ebe0;
    font-size: 2.25rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Insignia', Georgia, serif;
}

.landing-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4824a;
}

.landing-logo-placeholder {
    width: 54px;
    height: 54px;
    background: #3d2e1f;
    border: 2px solid #d4824a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4824a;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

/* ── Hero Section ── */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 48px;
    text-align: center;
}

.hero-tagline {
    font-size: 2rem;
    color: #2b2118;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Insignia', Georgia, serif;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.15rem;
    color: #5c4a3a;
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-image {
    max-width: 1400px;
    margin: 0 auto 48px;
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
    border: 4px solid #2b2118;
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(43, 33, 24, 0.25),
        0 0 0 8px rgba(212, 130, 74, 0.15);
}

/* ── Highlight Cards ── */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 44px;
}

.highlight-card {
    background: #2b2118;
    border: 2px solid #d4824a;
    border-radius: 12px;
    padding: 22px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 33, 24, 0.2);
}

.highlight-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: #e8a44a;
    font-family: 'Insignia', Georgia, serif;
}

.highlight-card .label {
    color: #d5c4b0;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Buttons ── */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-launch {
    display: inline-block;
    padding: 16px 44px;
    background: #c0562a;
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(192, 86, 42, 0.35);
    letter-spacing: 0.3px;
}

.btn-launch:hover {
    background: #a8441e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 86, 42, 0.45);
}

.btn-chalker {
    display: inline-block;
    padding: 16px 44px;
    background: #e8a44a;
    color: #2b2118;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(232, 164, 74, 0.3);
    letter-spacing: 0.3px;
}

.btn-chalker:hover {
    background: #d4923e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 164, 74, 0.4);
}

.btn-github {
    display: inline-block;
    padding: 16px 44px;
    background: #2b2118;
    color: #f5ebe0;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #5c4a3a;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-github:hover {
    background: #3d2e1f;
    transform: translateY(-2px);
    border-color: #d4824a;
}

/* ── Get Started ── */
.get-started {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    text-align: center;
}

.get-started h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #2b2118;
    font-family: 'Insignia', Georgia, serif;
    letter-spacing: 0.5px;
}

.get-started-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.get-started-card {
    background: #fff8f0;
    border: 2px solid #e0cdb8;
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.get-started-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 33, 24, 0.12);
    border-color: #d4824a;
}

.get-started-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b2118;
    margin: 0;
}

.get-started-card p {
    color: #5c4a3a;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.get-started-card code {
    background: #f0e6d8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c0562a;
}

.get-started-card .btn-github {
    align-self: center;
}

.get-started-card .btn-github:hover {
    transform: none;
}

.get-started-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.get-started-card--wide .get-started-card-text {
    flex: 1;
}

.get-started-card--wide .get-started-card-text h3,
.get-started-card--wide .get-started-card-text p {
    margin: 0;
    text-align: left;
}

.get-started-card--wide .btn-github {
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 600px) {
    .get-started-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Divider ── */
.section-divider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-divider hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4824a, #e8a44a, #d4824a, transparent);
    border-radius: 2px;
}

/* ── Features Section ── */
.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: #2b2118;
    font-family: 'Insignia', Georgia, serif;
    letter-spacing: 0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff8f0;
    border: 2px solid #e0cdb8;
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c0562a, #e8a44a, #4a8c7e);
    border-radius: 14px 14px 0 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 33, 24, 0.12);
    border-color: #d4824a;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #2b2118;
    font-weight: 700;
}

.feature-card p {
    color: #5c4a3a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Feature Showcase (replaces screenshots) ── */
.showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.showcase h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 56px;
    color: #2b2118;
    font-family: 'Insignia', Georgia, serif;
    letter-spacing: 0.5px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
    padding: 32px;
    background: #fff8f0;
    border: 2px solid #e0cdb8;
    border-radius: 20px;
    transition: box-shadow 0.3s ease;
}

.showcase-item:hover {
    box-shadow: 0 8px 32px rgba(43, 33, 24, 0.1);
}

.showcase-item:nth-child(even) {
    direction: rtl;
}

.showcase-item:nth-child(even) > * {
    direction: ltr;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-image {
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #d5c4b0;
    box-shadow: 0 4px 16px rgba(43, 33, 24, 0.12);
}

.showcase-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.02);
}

.showcase-text {
    padding: 8px 0;
}

.showcase-text .showcase-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c0562a;
    margin-bottom: 10px;
    background: rgba(192, 86, 42, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.showcase-text h3 {
    font-size: 1.5rem;
    color: #2b2118;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.showcase-text p {
    color: #5c4a3a;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Footer ── */
.landing-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 24px;
    text-align: center;
    color: #8a7968;
    font-size: 0.85rem;
    border-top: 2px solid #d5c4b0;
}

.landing-footer a {
    color: #5c4a3a;
    text-decoration: underline;
    text-decoration-color: #d4824a;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #c0562a;
}

.footer-cheeky {
    margin-top: 8px;
    font-size: 0.8rem;
    font-style: italic;
    color: #b09a86;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #2b2118;
}

.lightbox-close:hover {
    background: #f0e8e0;
}

.lightbox-trigger {
    cursor: zoom-in;
}

.showcase-image.has-lightbox {
    position: relative;
}

.showcase-image.has-lightbox::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15L20 20'/%3E%3Cpath d='M10 7v6M7 10h6'/%3E%3C/svg%3E") center/18px no-repeat;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.showcase-image.has-lightbox:hover::after {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .showcase-item:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .landing-header h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 32px 24px 24px;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-launch,
    .btn-chalker,
    .btn-github {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .features h2,
    .showcase h2 {
        font-size: 1.6rem;
    }

    .showcase-text h3 {
        font-size: 1.25rem;
    }
}

/* ── Docs Pages ── */

.docs-back-link {
    position: fixed;
    top: 16px;
    left: 20px;
    font-family: 'Insignia', Georgia, serif;
    font-size: 0.85rem;
    color: #d4824a;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s ease;
    z-index: 100;
    letter-spacing: 0.5px;
}

.docs-back-link:hover {
    opacity: 1;
}

.docs-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 48px;
}

.docs-content h1 {
    font-family: 'Insignia', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2b2118;
    margin-bottom: 6px;
}

.docs-subtitle {
    color: #8a7968;
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #d5c4b0;
}

.docs-toc {
    background: #ede0d0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.docs-toc h2 {
    font-family: 'Insignia', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: #5c4a3a;
    margin: 0 0 10px;
    border: none;
    padding: 0;
}

.docs-toc ol {
    margin: 0 0 0 20px;
    color: #5c4a3a;
}

.docs-toc li {
    margin-bottom: 3px;
    font-size: 0.875rem;
}

.docs-toc a {
    color: #5c4a3a;
    text-decoration: underline;
    text-decoration-color: #d4824a;
    text-underline-offset: 2px;
}

.docs-toc a:hover {
    color: #c0562a;
}

.docs-content h2 {
    font-family: 'Insignia', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2b2118;
    margin: 44px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d5c4b0;
}

.docs-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #3d2e1f;
    margin: 22px 0 8px;
}

.docs-content p {
    margin-bottom: 14px;
    color: #3d2e1f;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 14px 24px;
    color: #3d2e1f;
}

.docs-content li {
    margin-bottom: 5px;
}

.docs-content hr {
    border: none;
    border-top: 2px solid #d5c4b0;
    margin: 40px 0;
}

.docs-content a {
    color: #c0562a;
    text-decoration: underline;
    text-decoration-color: #d4824a;
    text-underline-offset: 3px;
}

.docs-content a:hover {
    color: #a03a18;
}

.docs-content code {
    background: #ede0d0;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
    color: #2b2118;
}

.docs-content pre {
    background: #2d2010;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 12px 0 20px;
    overflow-x: auto;
    border: 1px solid #4a3728;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: #e8d5b0;
    font-size: 0.85rem;
    line-height: 1.65;
    font-family: 'Courier New', Courier, monospace;
}

/* Terminal (bash) blocks */
.terminal-wrap {
    margin: 12px 0 20px;
}

.terminal-bar {
    background: #2a2a2a;
    border-radius: 8px 8px 0 0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
}

.terminal-bar::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 16px 0 0 #f39c12, 32px 0 0 #2ecc71;
}

.terminal-wrap pre {
    margin: 0;
    border-radius: 0 0 8px 8px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-top: none;
    padding: 18px 20px;
    overflow-x: auto;
}

.terminal-wrap pre code {
    background: none;
    padding: 0;
    color: #b8e6b8;
    font-size: 0.85rem;
    line-height: 1.65;
    font-family: 'Courier New', Courier, monospace;
}

/* Quick Start step list */
.docs-quickstart {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    counter-reset: quickstart-counter;
}

.docs-quickstart li {
    counter-increment: quickstart-counter;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 14px 18px;
    background: #ede0d0;
    border-radius: 8px;
    border-left: 4px solid #d4824a;
    color: #3d2e1f;
}

.docs-quickstart li > div {
    flex: 1;
}

.docs-quickstart li > div > strong:first-child {
    color: #c0562a;
    font-size: 1.05rem;
}

.docs-quickstart li::before {
    content: counter(quickstart-counter);
    font-family: 'Insignia', Georgia, serif;
    font-size: 1.1rem;
    color: #fff;
    background: #d4824a;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Docs footer — narrower than landing footer */
.docs-footer {
    max-width: 760px;
}

/* Docs tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 0.875rem;
}

.docs-content th {
    background: #ede0d0;
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    color: #3d2e1f;
    border-bottom: 2px solid #d5c4b0;
}

.docs-content td {
    padding: 8px 12px;
    color: #3d2e1f;
    border-bottom: 1px solid #e8d5c0;
    vertical-align: top;
}

.docs-content tr:last-child td {
    border-bottom: none;
}
