@charset "UTF-8";

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

body.blog-page {
    font-family: 'Poppins', sans-serif;
    background: #1e0340;
    color: #e0d4ff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sunburst-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #7c3aed 0%, #5b21b6 30%, #4c1d95 50%, #3b0764 70%, #1e0340 100%);
}
.sunburst-bg::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 250vmax; height: 250vmax;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.04) 0deg 5deg, transparent 5deg 10deg);
    animation: sunburst-spin 240s linear infinite;
}
.sunburst-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(30,3,64,0.5) 80%);
    pointer-events: none;
}
@keyframes sunburst-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(167,139,250,0.35);
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}
@keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

#nav, #nav *, .nav-list, .nav-list * {
    font-family: 'Lilita One', cursive !important;
}

header {
    position: relative;
    z-index: 10;
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
}

footer {
    position: relative;
    z-index: 1;
}

.blog-hero {
    position: relative;
    z-index: 1;
    padding: 220px 20px 40px;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.15s forwards;
}
.blog-hero h1 {
    font-family: 'Lilita One', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 14px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    line-height: 1.15;
    letter-spacing: .02em;
}
.blog-hero p {
    margin: 0 auto;
    max-width: 660px;
    color: #c4b5fd;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.blog-grid {
    width: min(1100px, 92%);
    margin: 20px auto 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(30,3,64,0.55);
    border: 1.5px solid rgba(167,139,250,0.18);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(14px);
    opacity: 0;
    animation: cardIn 0.5s ease-out forwards;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s, border-color 0.35s;
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167,139,250,0.45);
    box-shadow: 0 16px 48px rgba(124,58,237,0.3), 0 0 24px rgba(167,139,250,0.1);
}

.blog-card-header {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.blog-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.08) 20px,
        rgba(255,255,255,0.08) 40px
    );
}
.blog-card-header.gradient-guide     { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%); }
.blog-card-header.gradient-geogamer  { background: linear-gradient(135deg, #059669 0%, #0891b2 100%); }
.blog-card-header.gradient-challenge { background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%); }
.blog-card-header.gradient-default   { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.blog-card:hover .blog-card-header {
    filter: brightness(1.15);
}

.blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(167,139,250,0.25);
    color: #a78bfa;
    background: rgba(124,58,237,0.1);
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: lowercase;
}
.blog-card:hover .blog-tag {
    border-color: rgba(167,139,250,0.4);
    background: rgba(124,58,237,0.18);
}

.blog-card-title {
    font-family: 'Lilita One', cursive;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.35;
    transition: text-shadow 0.3s;
}
.blog-card:hover .blog-card-title {
    text-shadow: 0 0 16px rgba(167,139,250,0.4);
}

.blog-card-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(167,139,250,0.1);
    font-size: 0.8rem;
    color: #c4b5fd;
    opacity: 0.7;
}
.blog-read-time {
    margin-left: auto;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #c4b5fd;
    font-size: 1.1rem;
}

.article-container {
    width: min(800px, 92%);
    margin: 0 auto;
    padding: 200px 0 40px;
}

.article-header {
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.1s forwards;
    margin-bottom: 32px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(167,139,250,0.2);
    background: rgba(124,58,237,0.08);
    transition: all 0.25s;
}
.article-back:hover {
    background: rgba(124,58,237,0.18);
    border-color: rgba(167,139,250,0.4);
    color: #c4b5fd;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.article-title {
    font-family: 'Lilita One', cursive;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #c4b5fd;
    opacity: 0.8;
    flex-wrap: wrap;
}
.article-sep {
    opacity: 0.4;
}

.article-hero-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 36px;
    border: 1.5px solid rgba(167,139,250,0.15);
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.2s forwards;
}
.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    background: rgba(30,3,64,0.55);
    border: 1.5px solid rgba(167,139,250,0.15);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(14px);
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.3s forwards;
}

.article-body h2 {
    font-family: 'Lilita One', cursive;
    color: #a78bfa;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 36px 0 16px;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(167,139,250,0.3);
}
.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: 'Lilita One', cursive;
    color: #ec4899;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 28px 0 12px;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(236,72,153,0.3);
}

.article-section-content {
    color: rgba(255,255,255,0.82);
    font-size: 0.98rem;
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 8px;
}

.article-section-content .bullet {
    color: #fbbf24;
    font-weight: 700;
    margin-right: 2px;
}

.article-cta {
    text-align: center;
    margin: 48px 0 40px;
    padding: 36px 24px;
    background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(236,72,153,0.15));
    border: 1.5px solid rgba(167,139,250,0.3);
    border-radius: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.4s forwards;
}
.article-cta h3 {
    font-family: 'Lilita One', cursive;
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 8px;
}
.article-cta p {
    color: #c4b5fd;
    font-size: 0.95rem;
    margin: 0 0 20px;
}
.article-cta-btn {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-family: 'Lilita One', cursive;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.related-articles {
    width: min(800px, 92%);
    margin: 0 auto 80px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.5s forwards;
}
.related-articles h2 {
    font-family: 'Lilita One', cursive;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card-small .blog-card-image {
    height: 150px;
}
.blog-card-small .blog-card-title {
    font-size: 1.05rem;
}
.blog-card-small .blog-card-body {
    padding: 14px 16px 16px;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 180px 16px 30px;
    }
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .article-container {
        padding: 170px 0 30px;
    }
    .article-title {
        font-size: 1.7rem;
    }
    .article-body {
        padding: 24px 18px;
    }
    .article-body h2 {
        font-size: 1.3rem;
    }
    .article-body h3 {
        font-size: 1.1rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    .article-title {
        font-size: 1.4rem;
    }
    .article-body {
        padding: 18px 14px;
        border-radius: 14px;
    }
}
