/**
 * File: public/assets/css/pages/how-to/how-to.css
 * Module Style: Panduan Praktis (How-To) - EMU Japan Standard Final
 */


/* ============================================================
   1. HERO PROGRESS BANNER (HOW-TO HERO)
   ============================================================ */

.howto-hero-card {
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff;
}

.howto-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .howto-hero-title {
        font-size: 1.75rem;
    }
}

.howto-hero-sub {
    font-size: 0.875rem;
    line-height: 1.5;
}

.howto-progress-percent {
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.howto-hero-progress {
    overflow: hidden;
    background-color: #f1f3f5 !important;
}

.howto-hero-progress .progress-bar {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   2. FILTER & TOOLBAR NAVIGASI
   ============================================================ */

.howto-filter-bar .card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.filter-select-wrapper select {
    min-width: 140px;
    background-color: #f8f9fa;
    border-color: #e9ecef !important;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select-wrapper select:focus {
    border-color: #dc3545 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}


/* ============================================================
   3. ITEM PANDUAN (LISTING VERTIKAL)
   ============================================================ */

.howto-item-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease;
}

.howto-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.howto-icon-box {
    transition: transform 0.2s ease;
}

.howto-item-card:hover .howto-icon-box {
    transform: scale(1.05);
}

.howto-status-icon {
    transition: all 0.2s ease;
}

.howto-item-card:hover .howto-status-icon {
    transform: translateX(2px);
}


/* ============================================================
   4. DETAIL READER AREA & TYPOGRAPHY
   ============================================================ */

.howto-main-card {
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.howto-detail-title {
    font-size: 1.75rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .howto-detail-title {
        font-size: 2.15rem;
    }
}

.howto-reader-area {
    min-height: 250px;
}

.howto-formatted-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2b2b2b;
}

.howto-formatted-text p {
    margin-bottom: 1.5rem;
}

.howto-formatted-text h2,
.howto-formatted-text h3,
.howto-formatted-text h4 {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.howto-formatted-text ul,
.howto-formatted-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.howto-formatted-text li {
    margin-bottom: 0.5rem;
}

.howto-formatted-text blockquote {
    border-left: 4px solid #dc3545;
    padding: 1rem 1.25rem;
    background-color: #fff8f8;
    border-radius: 0 0.75rem 0.75rem 0;
    margin-bottom: 1.5rem;
    font-style: italic;
}


/* ============================================================
   5. SIDEBAR ROADMAP NAVIGATION
   ============================================================ */

.how-to-mini-roadmap::-webkit-scrollbar {
    width: 4px;
}

.how-to-mini-roadmap::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.how-to-mini-roadmap::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.mini-roadmap-item {
    border: 1px solid transparent;
}

.mini-roadmap-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.mini-roadmap-item.active-item {
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.howto-nav-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.howto-nav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 53, 69, 0.3) !important;
}


/* ============================================================
   6. UTILITY CLASSES & HELPERS
   ============================================================ */

.extra-small {
    font-size: 0.75rem;
}

.font-japanese {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.hover-danger {
    transition: color 0.2s ease;
}

.hover-danger:hover {
    color: #dc3545 !important;
}

.shadow-2xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}