@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap");

:root {
    --bg-color: #0f1014;
    --card-bg: #1c1e26;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Outfit", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    padding: 2rem 4%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    background: rgba(15, 16, 20, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.95) 32%,
        rgba(150, 166, 189, 0.5) 50%,
        rgba(255, 255, 255, 0.95) 68%,
        rgba(255, 255, 255, 0.95) 100%
    );
    background-size: 320% 100%;
    background-position: -140% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: text-shadow 0.22s ease, color 0.22s ease, transform 0.22s ease, filter 0.22s ease;
    animation: logoShimmer 10s linear infinite;
}

.logo:hover {
    transform: translateY(-1px) scale(1.02);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 30px rgba(255, 255, 255, 0.8), 0 0 56px rgba(139, 92, 246, 0.9), 0 0 88px rgba(109, 40, 217, 0.95);
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.95));
}

@keyframes logoShimmer {
    0% {
        background-position: -140% 50%;
    }
    100% {
        background-position: 140% 50%;
    }
}

.gh-head-menu,
.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 0;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .gh-search,
.header-actions [data-ghost-search] {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f5f8ff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-actions .gh-search svg,
.header-actions [data-ghost-search] svg {
    width: 24px;
    height: 24px;
}

.header-actions .gh-search:hover,
.header-actions [data-ghost-search]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 38px rgba(255, 255, 255, 0.5), 0 0 72px rgba(139, 92, 246, 1);
    filter: brightness(1.18);
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    background: transparent;
    box-shadow: 0 0 38px rgba(255, 255, 255, 0.5), 0 0 72px rgba(139, 92, 246, 1);
}

.menu-line {
    position: absolute;
    height: 3px;
    border-radius: 999px;
    background: #f4f6fb;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.45), 0 0 24px rgba(139, 92, 246, 0.4);
    transition: transform 0.26s ease, width 0.26s ease, opacity 0.2s ease, top 0.26s ease, background-color 0.26s ease;
}

.line-1 {
    width: 26px;
    top: 12px;
    transform: rotate(0deg);
}

.line-2 {
    width: 26px;
    top: 18px;
    transform: rotate(0deg);
}

.line-3 {
    width: 26px;
    top: 24px;
    transform: rotate(0deg);
}

.menu-toggle:hover .menu-line {
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.95), 0 0 78px rgba(139, 92, 246, 1);
    animation: waveGlow 1.2s ease-in-out infinite;
}

.menu-toggle.is-disabled,
.menu-toggle[aria-disabled="true"] {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.menu-toggle.is-disabled .menu-line,
.menu-toggle[aria-disabled="true"] .menu-line {
    animation: none;
    background: #dce3ef;
    box-shadow: 0 0 8px rgba(220, 227, 239, 0.35);
}

body.menu-open .line-1 {
    width: 28px;
    top: 18px;
    transform: rotate(45deg);
}

body.menu-open .line-2 {
    opacity: 0;
    transform: scaleX(0.2);
}

body.menu-open .line-3 {
    width: 28px;
    top: 18px;
    transform: rotate(-45deg);
}

.site-nav {
    position: absolute;
    right: calc(4% + 96px);
    top: 50%;
    margin-left: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) translateX(14px);
    opacity: 0;
    pointer-events: none;
    transition: max-width 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
}

body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    max-width: 900px;
    transform: translateY(-50%) translateX(0);
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
}

.site-nav a {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    color: #d6dbe5;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(255, 255, 255, 1), 0 0 34px rgba(255, 255, 255, 0.95), 0 0 68px rgba(139, 92, 246, 1);
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.4), 0 0 54px rgba(139, 92, 246, 1);
    animation: waveGlow 1.15s ease-in-out infinite;
}

.site-nav a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.35) 48%, rgba(139, 92, 246, 0.28) 58%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.site-nav a:hover::after {
    opacity: 1;
    animation: waveSweep 1.05s linear infinite;
}

@keyframes waveGlow {
    0% {
        filter: brightness(1.08);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(139, 92, 246, 0.65);
    }
    50% {
        filter: brightness(1.32);
        box-shadow: 0 0 24px rgba(255, 255, 255, 0.72), 0 0 52px rgba(139, 92, 246, 1);
    }
    100% {
        filter: brightness(1.08);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(139, 92, 246, 0.65);
    }
}

@keyframes waveSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes heroWaveShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gh-head-menu a,
.nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.gh-head-menu a:hover,
.nav a:hover {
    color: #fff;
}

.hero {
    text-align: center;
    padding: 5rem 1rem 4rem;
    background: radial-gradient(circle at top center, rgba(109, 40, 217, 0.18), transparent 60%);
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    transition: transform 0.22s ease, filter 0.22s ease, text-shadow 0.22s ease;
}

.hero h1:hover {
    transform: translateY(-2px);
    background-image: linear-gradient(110deg, #ffffff 0%, #8be9fd 16%, #7ee787 32%, #ffd166 48%, #ff7ab6 64%, #c4b5fd 80%, #ffffff 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 0 40px rgba(139, 92, 246, 0.55);
    filter: brightness(1.16);
    animation: heroWaveShift 4.8s ease-in-out infinite;
}

.hero p {
    color: #cfd7e5;
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
    max-width: 620px;
    margin: 0 auto;
}

.container {
    width: min(1400px, 92%);
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(255, 122, 182, 0.45),
        0 0 80px rgba(139, 92, 246, 0.35),
        0 0 120px rgba(139, 233, 253, 0.25),
        0 0 160px rgba(126, 231, 135, 0.15);
}

.post-link {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.card-source-content {
    display: none;
}

.card-image {
    display: block;
    flex-shrink: 0;
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    background: #2a2d36;
}

.post-grid .card-image,
.post-grid img.card-image {
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: 50% 38% !important;
}

.js-card-image {
    background-size: cover;
    background-position: 50% 38%;
    background-repeat: no-repeat;
}

.gradient-fallback {
    background-image: linear-gradient(180deg, #33445d 0%, #253349 34%, #1a2433 64%, #111827 100%);
}

.post-card:nth-child(2n) .gradient-fallback {
    background-image: linear-gradient(180deg, #384a63 0%, #293a50 34%, #1b2839 64%, #121a27 100%);
}

.post-card:nth-child(3n) .gradient-fallback {
    background-image: linear-gradient(180deg, #32445f 0%, #24374d 34%, #1a2a3f 64%, #101a2a 100%);
}

.tag-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2.2rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    background: #171a22 !important;
    background-image: none !important;
}

.post-title {
    color: #f7f9fc;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 0.275rem;
    transition: text-shadow 0.3s ease;
}

.post-card:hover .post-title {
    background-image: linear-gradient(110deg, #ffffff 0%, #8be9fd 16%, #7ee787 32%, #ffd166 48%, #ff7ab6 64%, #c4b5fd 80%, #ffffff 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.35), 0 0 40px rgba(139, 92, 246, 0.4);
    animation: heroWaveShift 4s ease-in-out infinite;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #c2c9d4;
    line-height: 1.75;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-spacer {
    flex: 1;
    min-height: 2.4rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 30px;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar.placeholder {
    background: linear-gradient(135deg, #ff7ab6, #ffd166, #7ee787, #8be9fd, #c4b5fd, #ff7ab6);
    background-size: 360% 360%;
    transition: box-shadow 0.3s ease;
}

.post-card:hover .author-avatar.placeholder {
    animation: avatarRainbow 4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6), 0 0 18px rgba(255, 122, 182, 0.4);
}

@keyframes avatarRainbow {
    0% { background-position: 0% 50%; box-shadow: 0 0 8px rgba(255, 122, 182, 0.6), 0 0 18px rgba(139, 92, 246, 0.4); }
    25% { background-position: 50% 100%; box-shadow: 0 0 12px rgba(255, 209, 102, 0.7), 0 0 24px rgba(126, 231, 135, 0.5); }
    50% { background-position: 100% 50%; box-shadow: 0 0 14px rgba(139, 233, 253, 0.7), 0 0 28px rgba(196, 181, 253, 0.6); }
    75% { background-position: 50% 0%; box-shadow: 0 0 12px rgba(196, 181, 253, 0.7), 0 0 24px rgba(255, 122, 182, 0.5); }
    100% { background-position: 0% 50%; box-shadow: 0 0 8px rgba(255, 122, 182, 0.6), 0 0 18px rgba(139, 92, 246, 0.4); }
}

.author-name {
    color: #f1f4f8;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.single-post {
    max-width: 900px;
    padding: 3rem 0 4rem;
    overflow-x: clip;
}

.single-header h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.post-meta {
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.single-feature {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.single-content {
    color: #e4e6eb;
    font-size: 1.11rem;
    line-height: 2.05;
}

.single-content > * + * {
    margin-top: 2.25rem;
}

.single-content p {
    margin: 0 0 2.25rem;
}

.single-content p + p {
    margin-top: 0;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 2.7rem;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.single-content ul,
.single-content ol {
    margin-left: 1.35rem;
    padding-left: 0.5rem;
}

.single-content li + li {
    margin-top: 0.65rem;
}

.single-content blockquote {
    margin: 2.3rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid rgba(139, 92, 246, 0.9);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.single-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.8rem 0;
}

.single-content br {
    display: block;
    content: "";
    margin-top: 1.2rem;
}

.single-content img,
.single-content video,
.single-content iframe {
    max-width: 100%;
    height: auto;
}

.single-content figure {
    margin: 1.5rem 0;
}

.single-content figcaption {
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.single-content .kg-card {
    margin: 1.5rem 0;
}

.single-content .kg-image-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.single-content .kg-width-wide {
    width: min(1200px, calc(100% + 180px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.single-content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.single-content .kg-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.single-content .kg-gallery-card {
    width: 100%;
}

.single-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-content .kg-gallery-row {
    display: flex;
    gap: 0.75rem;
}

.single-content .kg-gallery-image {
    flex: 1;
}

.single-content .kg-gallery-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.site-footer {
    margin-top: 4rem;
    padding: 3rem 4%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    background: #0a0a0c;
}

.post-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.login-panel {
    max-width: 680px;
    margin: 1rem auto 4rem;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(31, 34, 45, 0.94), rgba(18, 20, 27, 0.96));
}

.login-panel h2 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}

.login-panel p {
    color: #c7ced9;
    line-height: 1.7;
}

.login-actions {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.login-btn {
    border: 0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, #4b556a 0%, #374151 100%);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(148, 163, 184, 0.28);
}

.login-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
}

.gh-post-upgrade-cta,
.single-content .gh-post-upgrade-cta {
    max-width: 760px !important;
    margin: 3rem auto !important;
    padding: 2rem 1.5rem !important;
    background: linear-gradient(180deg, rgba(24, 27, 36, 0.96), rgba(16, 18, 25, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    color: #e8ecf5 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
    text-align: left !important;
}

.gh-post-upgrade-cta-content h2,
.gh-post-upgrade-cta-content p {
    color: #e8ecf5 !important;
}

.gh-post-upgrade-cta-content h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem) !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.7rem !important;
}

.gh-post-upgrade-cta-content p {
    color: #c5cddd !important;
    line-height: 1.75 !important;
    margin-bottom: 1.1rem !important;
}

.gh-post-upgrade-cta a,
.gh-post-upgrade-cta .gh-btn,
.gh-post-upgrade-cta button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0.6rem 1rem !important;
    font-weight: 600 !important;
    background: linear-gradient(120deg, #4b556a 0%, #374151 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.2) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.gh-post-upgrade-cta a:hover,
.gh-post-upgrade-cta .gh-btn:hover,
.gh-post-upgrade-cta button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 0 14px rgba(148, 163, 184, 0.32) !important;
}

.gh-post-upgrade-cta small,
.gh-post-upgrade-cta .gh-post-upgrade-cta-footer {
    color: #9ea7b8 !important;
}

.gh-post-upgrade-cta small a,
.gh-post-upgrade-cta .gh-post-upgrade-cta-footer a {
    color: #cfd6e4 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Front 12-card grid: force consistent footer and card heights */
.fp-card-grid .post-card .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.fp-card-grid .post-card .post-excerpt {
    min-height: 8.75em;
}

.fp-card-grid .post-card .author-meta {
    padding: 0 !important;
    margin-top: auto !important;
    min-height: 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    position: static !important;
    isolation: auto !important;
    overflow: visible !important;
}

.fp-card-grid .post-card .author-meta::before,
.fp-card-grid .post-card .author-meta::after {
    content: none !important;
    display: none !important;
}

.fp-card-grid .post-card .author-name {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .menu-toggle-force {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 200 !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset !important;
    }

    .menu-line {
        background: #ffffff !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.75), 0 0 20px rgba(139, 92, 246, 0.35) !important;
    }

    .menu-toggle.is-disabled,
    .menu-toggle[aria-disabled="true"] {
        opacity: 1 !important;
    }

    /* Mobile: use a fixed white hamburger icon image for stable visibility */
    .menu-line {
        display: none !important;
    }

    .menu-toggle-force::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 18px;
        transform: translate(-50%, -50%);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Crect y='1' width='24' height='2.2' rx='1.1' fill='white'/%3E%3Crect y='8' width='24' height='2.2' rx='1.1' fill='white'/%3E%3Crect y='14.8' width='24' height='2.2' rx='1.1' fill='white'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 2;
    }

    .site-header {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .logo {
        font-size: 1.28rem;
        letter-spacing: -0.02em;
        background: none;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
        animation: none;
    }

    .hero h1,
    .single-header h1 {
        background-image: linear-gradient(110deg, #ffffff 0%, #8be9fd 16%, #7ee787 32%, #ffd166 48%, #ff7ab6 64%, #c4b5fd 80%, #ffffff 100%);
        background-size: 260% 260%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 18px rgba(255, 255, 255, 0.38), 0 0 40px rgba(139, 92, 246, 0.45);
        animation: heroWaveShift 10s ease-in-out infinite;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        right: 4%;
        left: auto;
        top: calc(100% + 0.35rem);
        max-width: 0;
        width: min(280px, 86vw);
        white-space: normal;
        transform: translateY(0) translateX(8px);
        background: rgba(15, 16, 20, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 0.25rem;
        overflow: hidden;
    }

    body.menu-open .site-nav {
        max-width: min(280px, 86vw);
        transform: translateY(0) translateX(0);
    }

    .site-nav ul {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 0.1rem;
    }

    .site-nav a {
        width: 100%;
        white-space: normal;
        padding: 0.55rem 0.7rem;
    }
}

/* ═══ Anti-Crawling: CSS Text Protection ═══ */
.single-content,
.post-excerpt,
.hero p {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Anti-Crawling: Honeypot trap */
.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Anti-Crawling: Print Block */
@media print {
    body * {
        display: none !important;
    }

    body::after {
        content: "© Football Prophecy — This content cannot be printed.";
        display: block;
        text-align: center;
        font-size: 2rem;
        padding: 4rem;
        color: #333;
    }
}

/* Anti-Crawling: Decoy text */
.content-decoy {
    position: absolute;
    left: -9999px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .menu-toggle-force {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 200 !important;
    }

    .menu-toggle {
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.14) !important;
        border: 1px solid rgba(255, 255, 255, 0.34) !important;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset !important;
        position: relative;
        isolation: isolate;
    }

    .menu-toggle::before {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: 14px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0) 80%);
        filter: blur(1.2px);
        opacity: 0.95;
        z-index: -1;
        pointer-events: none;
    }

    .menu-line {
        background: #ffffff !important;
        height: 3.5px;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.85), 0 0 24px rgba(255, 255, 255, 0.45) !important;
    }

    .menu-toggle.is-disabled,
    .menu-toggle[aria-disabled="true"] {
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.14) !important;
        border: 1px solid rgba(255, 255, 255, 0.34) !important;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset !important;
    }

    .menu-toggle.is-disabled .menu-line,
    .menu-toggle[aria-disabled="true"] .menu-line {
        background: #ffffff !important;
        height: 3.5px;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.85), 0 0 24px rgba(255, 255, 255, 0.45) !important;
    }
}
