/* ============================================================
   gamesinflutter.test — Light Mode Only Color Theme
   Colors: #F8AC49 / #4995F8 / #A25F06 / #CEE2FD
   ============================================================ */

/* ─── Brand Colors ─── */
:root {
    --orange-50: #fef6ee;
    --orange-100: #fdedd3;
    --orange-200: #fadba7;
    --orange-300: #f8c47b;
    --orange-400: #f8ac49;
    --orange-500: #f09535;
    --orange-600: #d97a26;
    --orange-700: #a25f06;
    --orange-800: #7a4a0a;
    --orange-900: #5c380a;

    --blue-50: #f0f7ff;
    --blue-100: #cee2fd;
    --blue-200: #9dc5fa;
    --blue-300: #6ba8f7;
    --blue-400: #4995f8;
    --blue-500: #2b7de2;
    --blue-600: #1a65c7;
    --blue-700: #1550a3;
    --blue-800: #144080;
    --blue-900: #153668;

    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    --white: #ffffff;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, #4995f8 0%, #f8ac49 100%);
    --gradient-warm: linear-gradient(135deg, #f8ac49 0%, #a25f06 100%);
    --gradient-cool: linear-gradient(135deg, #4995f8 0%, #1550a3 100%);

    --prose-text: #374151;
    --prose-heading: #111827;
    --prose-link: #4995f8;
    --prose-strong: #111827;
    --prose-code-bg: #f0f7ff;
    --prose-code-text: #1550a3;
    --prose-pre-bg: #1e293b;
    --prose-quote-border: #f8ac49;
    --prose-quote-bg: rgba(248, 172, 73, 0.08);
    --prose-table-border: #e5e7eb;
    --prose-table-stripe: #fafafa;
    --prose-hr: #e5e7eb;

    --prose-max-width: 65ch;
    --content-max-width: 80rem;

    --font-sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, monospace;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ─── Base Typography ─── */
body {
    font-family: var(--font-sans);
    color: var(--prose-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    background: var(--neutral-50);
}

/* ─── Prose Container ─── */
.prose {
    max-width: var(--prose-max-width);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--prose-text);
}

.prose-lg {
    max-width: var(--prose-max-width);
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose :where(p) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

/* ─── Headings ─── */
.prose :where(h1, h2, h3, h4, h5, h6) {
    color: var(--prose-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
}

.prose :where(h1) {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prose :where(h2) {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--blue-100);
    padding-bottom: 0.5rem;
}

.prose :where(h3) {
    font-size: 1.375rem;
    color: var(--orange-700);
}

.prose :where(h4) {
    font-size: 1.125rem;
}

/* ─── Lists ─── */
.prose :where(ul, ol) {
    padding-left: 1.5rem;
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose :where(li) {
    margin-top: 0.375em;
    margin-bottom: 0.375em;
}

.prose :where(ul > li) {
    list-style-type: disc;
}

.prose :where(ol > li) {
    list-style-type: decimal;
}

.prose :where(li > ul, li > ol) {
    margin-top: 0;
    margin-bottom: 0;
}

/* ─── Links ─── */
.prose :where(a) {
    color: var(--prose-link);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    border-bottom: 1px solid transparent;
}

.prose :where(a:hover) {
    border-bottom-color: var(--prose-link);
}

/* ─── Strong / Bold ─── */
.prose :where(strong) {
    color: var(--prose-strong);
    font-weight: 600;
}

/* ─── Inline Code ─── */
.prose :where(code) {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--prose-code-bg);
    color: var(--prose-code-text);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ─── Pre & Code Blocks ─── */
.prose :where(pre) {
    background: var(--prose-pre-bg);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prose :where(pre code) {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    border-radius: 0;
}

/* ─── Blockquote ─── */
.prose :where(blockquote) {
    border-left: 4px solid var(--prose-quote-border);
    background: var(--prose-quote-bg);
    padding: 1rem 1.5rem;
    margin: 1.5em 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--prose-text);
}

.prose :where(blockquote p:first-of-type) {
    margin-top: 0;
}

.prose :where(blockquote p:last-of-type) {
    margin-bottom: 0;
}

/* ─── Images & Figures ─── */
.prose :where(figure) {
    margin: 2em 0;
}

.prose :where(figure img) {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    height: auto;
}

.prose :where(figcaption) {
    text-align: center;
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: 0.75rem;
    font-style: italic;
}

.prose :where(img) {
    border-radius: var(--radius-lg);
    max-width: 100%;
    height: auto;
}

/* ─── Horizontal Rules ─── */
.prose :where(hr) {
    border: none;
    height: 1px;
    background: var(--prose-hr);
    margin: 2.5em 0;
}

/* ─── Tables ─── */
.prose :where(table) {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.prose :where(th) {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose :where(td) {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--prose-table-border);
}

.prose :where(tr:last-child td) {
    border-bottom: none;
}

.prose :where(tr:nth-child(even) td) {
    background: var(--prose-table-stripe);
}

/* ════════════════════════════════════════════════
   WordPress Block Classes
   ════════════════════════════════════════════════ */

/* ─── WP Paragraph ─── */
.wp-block-paragraph {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

/* ─── WP Image ─── */
.wp-block-image {
    margin: 2em 0;
    text-align: center;
}

.wp-block-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-image img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-xl);
}

.wp-block-image .wp-element-caption,
.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: 0.75rem;
}

.wp-block-image.is-resized img {
    max-width: 100%;
    height: auto;
}

.wp-block-image.size-large img,
.wp-block-image.size-full img {
    width: 100%;
}

/* ─── WP Gallery ─── */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2em 0;
    list-style: none;
    padding: 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* ─── WP Columns ─── */
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2em 0;
}

.wp-block-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wp-block-column .wp-block-image {
    margin: 0;
}

.wp-block-column .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wp-block-column figcaption {
    margin-top: 0.5rem;
}

/* ─── WP List ─── */
.wp-block-list {
    padding-left: 1.5rem;
    margin: 1em 0;
}

.wp-block-list li {
    margin: 0.5em 0;
    line-height: 1.7;
}

/* ─── WP Latest Posts / Categories ─── */
.wp-block-latest-posts,
.wp-block-latest-posts__list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    display: grid;
    gap: 0.75rem;
}

.wp-block-latest-posts__list li,
.wp-block-latest-posts li {
    margin: 0;
    padding: 0;
}

.wp-block-latest-posts__post-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--prose-link);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--blue-100);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wp-block-latest-posts__post-title:before {
    content: "\2192";
    font-weight: 700;
    transition: transform 0.2s ease;
}

.wp-block-latest-posts__post-title:hover {
    background: var(--blue-200);
    transform: translateX(4px);
}

/* ─── WP Buttons ─── */
.wp-block-button {
    margin: 2em 0;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    border-bottom: none;
}

/* ─── WP Separator ─── */
.wp-block-separator {
    border: none;
    height: 2px;
    background: var(--gradient-primary);
    margin: 3em auto;
    max-width: 200px;
    border-radius: 2px;
    opacity: 0.6;
}

/* ─── WP Code / Preformatted ─── */
.wp-block-code,
.wp-block-preformatted {
    background: var(--prose-pre-bg);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1.5em 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-block-code code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ─── WP Table ─── */
.wp-block-table {
    overflow-x: auto;
    margin: 1.5em 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wp-block-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-block-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--prose-table-border);
}

.wp-block-table tr:last-child td {
    border-bottom: none;
}

.wp-block-table tr:nth-child(even) td {
    background: var(--prose-table-stripe);
}

/* ─── WP Alignments ─── */
.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: var(--content-max-width);
    margin-left: calc(50% - min(50%, 40rem));
    margin-right: calc(50% - min(50%, 40rem));
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 calc((100vw - min(100vw, var(--content-max-width))) / 2);
}

/* ════════════════════════════════════════════════
   Content Container
   ════════════════════════════════════════════════ */

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

article header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════
   Navigation Links
   ════════════════════════════════════════════════ */

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--blue-400);
    background: var(--blue-100);
}

.nav-link-active {
    color: var(--blue-500);
    font-weight: 600;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* ════════════════════════════════════════════════
   Responsive Navigation (Hamburger)
   ════════════════════════════════════════════════ */

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.375rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: var(--blue-100);
}

.nav-toggle-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--neutral-600);
    border-radius: 1px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
    border-top: 1px solid transparent;
}

.nav-mobile.open {
    max-height: 300px;
    opacity: 1;
    border-top-color: var(--neutral-200);
}

.nav-mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-mobile-link:hover {
    color: var(--blue-400);
    background: var(--blue-100);
    border-left-color: var(--blue-400);
}

.nav-mobile-link.nav-link-active {
    color: var(--blue-500);
    border-left-color: var(--blue-400);
    background: var(--blue-100);
}

/* ════════════════════════════════════════════════
   Cookie Consent Banner
   ════════════════════════════════════════════════ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    border-top: 1px solid var(--neutral-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.cookie-consent.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--blue-400);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.cookie-consent-text a:hover {
    border-bottom-color: var(--blue-400);
}

.cookie-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--orange-400);
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.cookie-btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--neutral-400);
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    line-height: 1;
}

.cookie-btn-secondary:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

@media (max-width: 640px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-consent-text {
        font-size: 0.8125rem;
    }
}

/* ════════════════════════════════════════════════
   Utilities
   ════════════════════════════════════════════════ */

.max-w-4xl {
    max-width: 56rem;
}

.max-w-none {
    max-width: none;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hover\:text-flutter-blue:hover {
    color: var(--blue-400);
}

.transition-colors {
    transition: color 0.2s ease;
}

/* ─── Card-like sections ─── */
.wp-block-column {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wp-block-column:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ─── Flutter Gradient Divider ─── */
.flutter-divider {
    height: 4px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 2px;
    margin: 2rem auto;
    max-width: 120px;
}

/* ─── Flutter Badge ─── */
.flutter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ─── Extra ─── */
html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--blue-400);
    color: white;
}

@media (max-width: 768px) {
    .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .wp-block-gallery {
        grid-template-columns: 1fr;
    }

    article header h1,
    .prose h1 {
        font-size: 1.75rem;
    }

    .prose h2 {
        font-size: 1.375rem;
    }

    .prose h3 {
        font-size: 1.125rem;
    }

    .alignleft,
    .alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}
