@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* LIGHT MODE */
[data-theme="light"] {
    --bg: #f8fafc;
    --card: #ffffff;
    --card-hover: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-dim: #64748b;
}

[data-theme="light"] body { background: #f8fafc !important; color: #0f172a !important; }
[data-theme="light"] nav { background: rgba(248,250,252,0.9) !important; }
[data-theme="light"] .nav-menu { background: rgba(248,250,252,0.98) !important; }
[data-theme="light"] .hamburger span { background: #0f172a; }
[data-theme="light"] .hero-grid { background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); }
[data-theme="light"] .sticky { background: rgba(248,250,252,0.9) !important; }
[data-theme="light"] input, [data-theme="light"] select { background: #ffffff; border-color: #e2e8f0; color: #0f172a; }
[data-theme="light"] input::placeholder { color: #94a3b8; }
[data-theme="light"] .group { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .group:hover { background: #f8fafc; border-color: #f59e0b; }
[data-theme="light"] .footer-social { background: rgba(0,0,0,0.04); border-color: #e2e8f0; color: #64748b; }

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    z-index: 200;
    transition: width 0.1s;
    width: 0%;
}

/* SKELETON */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-color: #e2e8f0;
}
.skeleton-card { height: 200px; }
.skeleton-hero { height: 100px; width: 300px; margin: 0 auto 20px; border-radius: 12px; }
.skeleton-stat { height: 60px; width: 100px; border-radius: 8px; }

/* THEME TOGGLE */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-size: 0.9rem;
}
.theme-toggle:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}
[data-theme="light"] .theme-toggle {
    border-color: #e2e8f0;
    color: #64748b;
}
[data-theme="light"] .theme-toggle:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.05); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }
.hamburger.active span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* MOBILE MENU */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5,5,5,0.98);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-menu.show { display: flex !important; }
    .nav-menu a { font-size: 1rem; }
}

/* HERO GRID */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black, transparent);
}

/* CATEGORY BADGES */
.cat-revolusi { background: rgba(239,68,68,0.15); color: #ef4444; }
.cat-kemerdekaan { background: rgba(34,197,94,0.15); color: #22c55e; }
.cat-perintis { background: rgba(168,85,247,0.15); color: #a855f7; }
.cat-pendidikan { background: rgba(59,130,246,0.15); color: #3b82f6; }
.cat-ulama { background: rgba(234,179,8,0.15); color: #eab308; }
.cat-pembangunan { background: rgba(6,182,212,0.15); color: #06b6d4; }

/* FOOTER */
footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] footer {
    background: #ffffff;
    border-color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
    margin-top: 12px;
}
[data-theme="light"] .footer-brand p { color: #64748b; }
.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover { color: #f59e0b; }
[data-theme="light"] .footer-links a { color: #64748b; }
[data-theme="light"] .footer-links a:hover { color: #f59e0b; }
.footer-links a i { width: 16px; text-align: center; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .footer-bottom { border-color: #e2e8f0; }
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
[data-theme="light"] .footer-bottom p { color: #94a3b8; }

/* FOOTER SOCIAL */
.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.footer-social:hover {
    background: rgba(245,158,11,0.15);
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
}

/* LINE CLAMP */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-brand p { margin: 12px auto 0; }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}
