/* Master Stylesheet for blogs.nuxsen.xyz */
:root {
    --bg-main: #000000;
    --bg-card: #0d0d0d;
    --bg-border: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-gray: #27272a;
    --accent-light: #3f3f46;
    --accent-green: #22c55e;
    --radius-lg: 12px;
    --radius-md: 6px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    line-height: 1.6;
}

a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

/* ==========================================
   MINIMALIST WHITE LOADER SCREEN
   ========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    width: 60px;
    height: 60px;
    border: 2px solid #ffffff;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    animation: pulseBox 1.6s infinite ease-in-out;
}

.cube-icon i {
    font-size: 1.5rem;
    color: #ffffff;
    animation: spinCube 2.5s linear infinite;
}

.loading-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.loading-subtext {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

@keyframes spinCube {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseBox {
    0%, 100% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================
   HEADER & NAV (GLOBAL)
   ========================================== */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-border);
    margin-bottom: 1.5rem;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--text-secondary);
}

.hub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
}

.hub-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-light);
    background: var(--bg-border);
}

/* ==========================================
   BREADCRUMB & STATUS (UNTUK HALAMAN LAIN)
   ========================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--text-primary);
}

.breadcrumb-nav .separator {
    color: var(--accent-light);
    font-size: 0.75rem;
}

.breadcrumb-nav .current {
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--bg-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

.status-dot.amber {
    background-color: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================
   HERO HEADER BANNER (LANDING PAGE)
   ========================================== */
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 340px;
    background-color: var(--bg-card);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-border);
    overflow: hidden;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e4e4e7;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title-banner {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-desc-banner {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ==========================================
   CARDS & GRID (LANDING PAGE)
   ========================================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:active,
a.btn-primary:hover,
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:active,
.btn-primary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.btn-primary *,
.btn-primary *:link,
.btn-primary *:visited,
.btn-primary *:hover,
.btn-primary *:active {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-border);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-light);
}

/* ==========================================
   TUTORIAL ARTICLE LAYOUT (UNTUK HALAMAN LAIN)
   ========================================== */
.tutorial-container {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.tutorial-header {
    border-bottom: 1px solid var(--bg-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.tutorial-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.tutorial-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   CALLOUT BOX (NOTICE)
   ========================================== */
.notice-box {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 2px;
}

.notice-content {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notice-content h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fbbf24;
}

/* ==========================================
   CONTENT SECTIONS & TOPOLOGY
   ========================================== */
.section-block {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.content-placeholder {
    border: 1px dashed var(--accent-light);
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.topology-box {
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.topology-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.node {
    background: var(--bg-card);
    border: 1px solid var(--accent-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.node-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.connector {
    color: var(--text-secondary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

/* ==========================================
   IMAGE GALLERY, VIEWER & LIGHTBOX
   ========================================== */
.img-placeholder-wrapper {
    background: var(--bg-main);
    border: 1px dashed var(--accent-light);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.img-placeholder-wrapper:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.img-placeholder-wrapper i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.img-placeholder-wrapper p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.img-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.4rem;
    font-style: italic;
}

.zoomable-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-border);
    cursor: zoom-in;
    transition: var(--transition);
}

.zoomable-img:hover {
    border-color: var(--accent-light);
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--text-secondary);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-primary);
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 600px) {
    .hero-banner { 
        aspect-ratio: 16 / 11; 
        padding: 1.5rem; 
        max-height: 280px;
    }
    .hero-title-banner { 
        font-size: 1.5rem; 
    }
    .hero-desc-banner { 
        font-size: 0.85rem; 
    }
    .btn-group {
        flex-direction: column;
    }
    .topology-diagram {
        flex-direction: column;
    }
    .connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

