:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #203040;
    --muted: #64748b;
    --accent: #4f46e5;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
.mobile-protection-banner {
    display: none;
    background: #111827;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-protection-banner.is-visible {
    display: block;
}
.login-popup {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    background: #2563eb;
    color: #fff;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
    z-index: 9999;
    animation: fadeOutToast 15s ease forwards;
}
.login-popup p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.98rem;
}
@keyframes fadeOutToast {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 1.25rem));
    }
    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .site-header nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .site-header a {
        margin-left: 0;
    }
    .hero {
        padding: 2rem 0 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .card,
    .post-detail {
        padding: 1rem;
    }
    .mobile-protection-banner {
        display: none;
    }
}
.container {
    width: min(1000px, 90vw);
    margin: 0 auto;
}
.site-header, .site-footer {
    background: #111827;
    color: white;
}
.site-header .container, .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.site-header a { color: white; text-decoration: none; margin-left: 1rem; }
.brand { font-weight: bold; font-size: 1.1rem; margin-left: 0 !important; }
.hero {
    padding: 3rem 0 1.5rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    padding-bottom: 2.5rem;
}
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.date {
    color: var(--accent);
    font-weight: bold;
    margin: 0 0 0.4rem;
}
.card h2 { margin: 0 0 0.4rem; }
.button {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 999px;
}
.post-detail {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0 2.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.post-detail img {
    width: 100%;
    border-radius: 12px;
    margin-top: 1rem;
}
.image-gallery {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
.image-gallery img {
    margin-top: 0;
}
.back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    text-decoration: none;
}
