/* =============================================================
   REHBERLER — ANILIST DESIGN SYSTEM
   ============================================================= */

.rh-page { max-width: 1000px; margin: 0 auto; padding: 0 2rem 4rem; }

/* Hero */
.rh-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
}
.rh-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.rh-hero h1 i { color: var(--accent); }
.rh-hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Tab Navigation */
.rh-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.rh-tab {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.rh-tab:hover { color: var(--text-bright); background: var(--bg-secondary); }
.rh-tab.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.rh-tab i { font-size: 0.8rem; }

/* Content Panels */
.rh-panel { display: none; }
.rh-panel.active { display: block; animation: rhFadeIn 0.3s ease; }

@keyframes rhFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Card */
.rh-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.rh-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.5;
}

.rh-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rh-section h2 i { color: var(--accent); font-size: 1.1rem; }

.rh-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1.8rem 0 0.75rem;
}
.rh-section h3:first-of-type { margin-top: 1rem; }

.rh-section p,
.rh-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.6rem;
}
.rh-section strong { color: var(--text-bright); }
.rh-section ul, .rh-section ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.rh-section li { margin-bottom: 0.4rem; }

/* Code */
.rh-code {
    display: inline;
    background: var(--bg-secondary);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.82em;
    color: var(--accent);
}

/* Tip Box */
.rh-tip {
    background: rgba(61,180,242,0.06);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.25rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.rh-tip i { color: var(--accent); margin-right: 6px; }
.rh-tip strong { color: var(--text-bright); }

/* Warning Box */
.rh-warn {
    background: rgba(247,154,99,0.06);
    border-left: 3px solid var(--orange);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.25rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.rh-warn i { color: var(--orange); margin-right: 6px; }

/* Steps */
.rh-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.rh-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 40px;
    margin-bottom: 1rem;
}
.rh-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison Table */
.rh-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}
.rh-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-secondary);
    color: var(--text-bright);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}
.rh-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.rh-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Action Button */
.rh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: all 0.15s;
}
.rh-btn:hover { box-shadow: 0 6px 20px var(--accent-glow); transform: translateY(-2px); }

/* Shortcut Key */
.rh-key {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-bright);
}

/* FAQ Accordion */
.rh-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.rh-faq-q {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    padding: 12px 16px;
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}
.rh-faq-q:hover { background: var(--bg-hover); }
.rh-faq-q i { color: var(--accent); transition: transform 0.2s; font-size: 0.75rem; }
.rh-faq-q.open i { transform: rotate(180deg); }
.rh-faq-a {
    display: none;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--bg-card);
}
.rh-faq-a.open { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .rh-page { padding: 0 1rem 3rem; }
    .rh-tabs { flex-direction: column; gap: 4px; }
    .rh-tab { min-width: auto; justify-content: flex-start; }
    .rh-section { padding: 1.25rem; }
    .rh-section h2 { font-size: 1.2rem; }
    .rh-hero h1 { font-size: 1.5rem; }
}