/* public/css/guide.css */

/* ==========================================================================
   1. LAYOUT UTAMA & SCROLLING
   ========================================================================== */
.guide-wrapper { 
    display: flex; 
    flex-direction: column; 
    height: calc((100vh / var(--global-zoom)) - var(--topbar-tinggi) - var(--topbar-jarak-atas) - 2px); 
    padding: 0 var(--padding-x) 2px var(--padding-x); 
    overflow: hidden; 
}

.guide-body { 
    flex-grow: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding-bottom: 40px; 
    padding-right: 8px; 
}

.guide-body::-webkit-scrollbar { width: 6px; }
.guide-body::-webkit-scrollbar-track { background: transparent; }
.guide-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.guide-body::-webkit-scrollbar-thumb:hover { background: var(--tirta-gold); }

/* ==========================================================================
   2. INFO BADGE & NAV PILLS (SEJAJAR SEPERTI SCHEDULE)
   ========================================================================== */
.info-badge { 
    background-color: #ffffff; 
    color: var(--tirta-gold); 
    border: 1px solid rgba(167, 135, 89, 0.3); 
    height: 40px; 
    padding: 0 16px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
}

.nav-pills-modern { 
    background-color: #f1f5f9; 
    border: 1px solid #cbd5e1; 
    border-radius: 50px; 
    padding: 4px; 
    display: flex; 
    justify-content: space-between; 
    height: 44px; 
    align-items: center;
}
.nav-pills-modern .nav-item { flex: 1; height: 100%; }
.nav-pills-modern .nav-link { 
    color: #64748b; 
    font-weight: 800; 
    font-size: 0.85rem; 
    padding: 0 16px; 
    border-radius: 50px; 
    width: 100%; 
    height: 100%;
    border: none; 
    background: transparent; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.nav-pills-modern .nav-link:hover:not(.active) { 
    color: var(--tirta-blue); 
    background: rgba(255,255,255,0.5); 
}
.nav-pills-modern .nav-link.active { 
    background: #ffffff; 
    color: var(--tirta-blue); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

/* Animasi Transisi Tab yang Mulus */
.tab-content > .tab-pane {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.tab-content > .tab-pane.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    height: auto;
    overflow: visible;
}

/* OVERRIDE UNTUK MODE SEARCH GLOBAL */
.tab-pane.search-active {
    display: flex !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    transform: none !important;
}
.tab-pane.search-active > div { width: 100%; }

/* ==========================================================================
   3. SECTION HEADINGS
   ========================================================================== */
.section-heading {
    font-weight: 800;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

/* ==========================================================================
   4. GUIDE CARDS (KARTU DOKUMEN & ADMIN)
   ========================================================================== */
.guide-card { 
    display: flex; 
    align-items: center; 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 16px; 
    padding: 16px 20px; 
    text-decoration: none; 
    color: #1e293b; 
    height: 100%; 
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 2px 6px rgba(0,0,0,0.02); 
    border-left: 4px solid transparent; 
}
.guide-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 25px rgba(48,82,138,0.08); 
    border-color: var(--tirta-blue); 
}

.guide-card.admin-card {
    border-left: 1px solid #e2e8f0 !important;
    padding: 14px 16px;
}
.guide-card.admin-card:hover {
    border-color: var(--tirta-blue) !important;
}

.g-icon { 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    margin-right: 16px; 
    flex-shrink: 0; 
}

.g-title { font-weight: 800; font-size: 0.9rem; color: #1e293b; display: block; margin-bottom: 4px; }
.g-desc { font-weight: 600; font-size: 0.75rem; color: #64748b; line-height: 1.3; display: block; }

/* Pewarnaan Aksen */
.bg-soft-blue { background: rgba(48,82,138,0.1); color: var(--tirta-blue); }
.bg-soft-green { background: #f0fdf4; color: #10b981; }
.bg-soft-purple { background: rgba(167, 135, 89, 0.1); color: var(--tirta-gold); }
.bg-soft-orange { background: rgba(236, 54, 58, 0.1); color: var(--tirta-red); }
.bg-soft-cyan { background: rgba(48,82,138,0.08); color: #3b82f6; }

/* ==========================================================================
   5. DEPT MINI CARDS & SIGNAGE GALLERY
   ========================================================================== */
.dept-mini { 
    display: flex; 
    align-items: center; 
    padding: 12px 16px; 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    text-decoration: none; 
    color: #1e293b; 
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.dept-mini:hover { 
    border-color: var(--tirta-blue); 
    background: #f8fafc; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(48,82,138,0.08) !important; 
}
.dept-icon { 
    width: 32px; 
    height: 32px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.85rem; 
    margin-right: 12px; 
    flex-shrink: 0;
}

.gallery-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 16px; 
    padding: 20px 10px; 
    text-decoration: none; 
    color: #475569; 
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); 
    height: 100%; 
}
.gallery-item:hover { 
    border-color: var(--tirta-blue); 
    background: #f8fafc; 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(48,82,138,0.08); 
}

.emoji-wrapper {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: 0.2s;
}
.gallery-item:hover .emoji-wrapper {
    background: rgba(48,82,138,0.1);
    transform: scale(1.1);
}

.gallery-label { font-weight: 800; font-size: 0.75rem; text-align: center; }

/* ==========================================================================
   6. QUICK COPY BUTTON 
   ========================================================================== */
.btn-quick-copy {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-quick-copy:hover {
    background: var(--tirta-blue);
    color: #ffffff;
    border-color: var(--tirta-blue);
    transform: scale(1.1);
}