/* guide-style.css - Shared style for BrainText Guide Pages */
:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --secondary: #6366F1;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-main: #F8FAFC;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

[data-theme="dark"] {
    --bg-main: #020617;
    --card-bg: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #1E293B;
    --primary-light: rgba(79, 70, 229, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(var(--bg-main), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-main); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.15rem; }
.logo-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.btn-dashboard { text-decoration: none; background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.8rem; transition: 0.3s; }

/* Header Area */
.article-header { padding: 4rem 0 3rem; text-align: center; }
.article-header h1 { font-family: 'Outfit', sans-serif; font-size: 2.75rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; margin-bottom: 1.25rem; color: var(--text-main); max-width: 800px; margin-left: auto; margin-right: auto; }
.meta-info { display: none; }

/* Article Main */
.article-main { background: var(--card-bg); border: 1px solid var(--border); border-radius: 32px; padding: 3.5rem; margin-bottom: 4rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.03); }
.intro-text { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 3rem; line-height: 1.6; border-left: 4px solid var(--primary); padding-left: 1.5rem; }

h2 { font-family: 'Outfit', sans-serif; font-size: 1.85rem; margin: 3.5rem 0 1.25rem; color: var(--text-main); display: flex; align-items: center; gap: 0.75rem; }
h2 .step-num { background: var(--primary); color: white; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

p { margin-bottom: 1.5rem; font-size: 1.05rem; opacity: 0.9; }

/* Step Card Integration */
.step-tool {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    transition: 0.3s;
}
.step-tool:hover { border-color: var(--primary); transform: translateY(-3px); }
.tool-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tool-icon { width: 44px; height: 44px; background: var(--card-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.tool-title { font-size: 1.35rem; font-weight: 700; font-family: 'Outfit', sans-serif; margin-bottom: 0.5rem; }
.tool-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.tool-links { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-use { display: inline-flex; align-items: center; gap: 0.75rem; background: var(--primary); color: white; padding: 0.75rem 1.5rem; border-radius: 10px; text-decoration: none; font-weight: 600; transition: 0.3s; justify-content: space-between; cursor: pointer; border: none; font-family: inherit; font-size: 0.9rem; }
.btn-use:hover { background: var(--secondary); transform: translateX(2px); }

.btn-secondary-tool { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary-tool:hover { background: var(--primary-light); color: var(--primary); }

/* Extra Components */
.disclaimer { 
    background: var(--primary-light); 
    border: 1px solid var(--border); 
    padding: 2rem; 
    border-radius: 20px; 
    margin: 3rem 0; 
    display: flex; 
    gap: 1.25rem; 
    align-items: center;
}
.disclaimer i { color: var(--primary); flex-shrink: 0; font-size: 1.25rem; }
.disclaimer p { margin-bottom: 0; font-size: 0.95rem; opacity: 1; color: var(--text-main); font-weight: 500; }

.conclusion { text-align: center; padding: 5rem 0; border-top: 1px solid var(--border); }
.conclusion h3 { font-family: 'Outfit', sans-serif; font-size: 2rem; margin-bottom: 1.5rem; }

/* Mobile View - Compact & Small */
@media (max-width: 768px) {
    .navbar .logo span { display: none; }
    .nav-content { gap: 0.5rem; }
    .btn-dashboard { padding: 0.4rem 0.75rem; font-size: 0.75rem; white-space: nowrap; border-radius: 8px; }
    
    .article-header { padding: 8rem 0 2.5rem; }
    .article-header h1 { font-size: 1.85rem; line-height: 1.25; margin-bottom: 1rem; }
    .meta-info { flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; margin-bottom: 1.25rem; }
    
    .article-main { padding: 2rem 1.25rem; border-radius: 28px; margin-bottom: 3rem; }
    .intro-text { font-size: 1rem; padding-left: 1.25rem; margin-bottom: 2rem; }
    
    h2 { font-size: 1.5rem; margin: 3rem 0 1rem; gap: 0.75rem; }
    h2 .step-num { width: 30px; height: 30px; font-size: 0.9rem; }
    
    p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    
    .step-tool { padding: 1.5rem; margin: 1.5rem 0; border-radius: 16px; }
    .tool-title { font-size: 1.2rem; }
    .tool-desc { font-size: 0.85rem; margin-bottom: 1.25rem; }
    
    .btn-use { padding: 0.65rem 1rem; font-size: 0.8rem; border-radius: 8px; }
    .disclaimer { padding: 1.5rem; flex-direction: column; gap: 0.75rem; border-radius: 16px; text-align: center; }
    .disclaimer i { font-size: 1.5rem; }
}

/* Portal Specific Styles (panduan.php) */
.hero { padding: 6rem 0 2rem; text-align: center; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 1.5rem; }

.section-title { font-family: 'Outfit', sans-serif; font-size: 2.25rem; margin-bottom: 2rem; text-align: center; font-weight: 800; color: var(--text-main); }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.guide-grid.core-features {
    grid-template-columns: repeat(2, 1fr);
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 24px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.guide-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.card-icon { 
    width: 60px; 
    height: 60px; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.75rem;
    background: var(--primary-light);
    color: var(--primary);
    transition: 0.3s;
}

.guide-card:hover .card-icon {
    background: var(--primary);
    color: white;
}

.guide-card h3 { color: var(--text-main); font-family: 'Outfit', sans-serif; font-size: 1.35rem; margin-bottom: 0.5rem; }
.guide-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 0; }

.how-it-works { padding: 5rem 0; margin-bottom: 3rem; }
.steps { display: flex; gap: 3rem; margin-top: 3rem; text-align: center; }
.step { flex: 1; position: relative; }
.step-icon { width: 64px; height: 64px; background: var(--primary-light); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-weight: 800; color: var(--primary); font-size: 1.5rem; box-shadow: var(--shadow-sm); }
.step h4 { margin-bottom: 1rem; font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 700; }
.step p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

footer { text-align: center; padding: 4rem 0; color: var(--text-muted); border-top: 1px solid var(--border); }

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero { padding: 8rem 0 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; padding: 0 1rem; }
    
    .section-title { font-size: 1.75rem; margin-bottom: 1rem; }
    
    .guide-grid { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
    .guide-card { padding: 1.5rem; border-radius: 20px; }
    .guide-card h3 { font-size: 1.2rem; }
    
    .how-it-works { padding: 2.5rem 0; border-radius: 32px; margin-bottom: 2.5rem; }
    .steps { flex-direction: column; gap: 2.5rem; padding: 0 1.5rem; }
    .step-icon { width: 54px; height: 54px; font-size: 1.25rem; margin-bottom: 1rem; }
    .step h4 { font-size: 1.2rem; margin-bottom: 0.75rem; }
    .step p { font-size: 0.95rem; }
    
    .guide-grid.core-features { grid-template-columns: 1fr !important; }
}
