/**
 * Tumbuh - Custom Styles
 * Tema: Pagi yang Ceria (light, calm, cheerful)
 */

/* ============================================
   FLOATING DOCK (iOS Style - Light Glass)
   ============================================ */

.dock-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow:
        0 8px 30px rgba(120, 113, 108, 0.18),
        0 2px 6px rgba(120, 113, 108, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #a8a29e;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.dock-item:hover {
    color: #44403c;
    background: rgba(28, 25, 23, 0.05);
    transform: translateY(-2px);
}

.dock-item:active {
    transform: scale(0.92);
}

.dock-item.active {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #10b981;
}

/* Capture button - menonjol & ceria */
.dock-item.capture-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    margin: 0 4px;
}

.dock-item.capture-btn:hover {
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
    color: white;
}

.dock-item.capture-btn:active {
    transform: scale(0.95);
}

.dock-item.capture-btn.active::after {
    background: white;
}

.dock-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
}

.dock-item:hover .dock-label,
.dock-item.active .dock-label {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WIKI LINKS
   ============================================ */

.wiki-link {
    color: #059669;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #6ee7b7;
    text-underline-offset: 3px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.wiki-link:hover {
    background: #d1fae5;
    color: #047857;
}

.wiki-link.missing {
    color: #d97706;
    text-decoration-style: dashed;
    text-decoration-color: #fcd34d;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 380px) {
    .dock-item {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .dock-item.capture-btn {
        width: 52px;
        height: 52px;
    }

    .dock-container {
        gap: 2px;
        padding: 8px 10px;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    nav.fixed.bottom-6 {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* ============================================
   SCROLLBAR (lembut)
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(28, 25, 23, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 25, 23, 0.25);
}

/* ============================================
   UTILITIES & SENTUHAN CERIA
   ============================================ */

::selection {
    background: #a7f3d0;
    color: #065f46;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

* {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}