@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Gaya Dasar --- */
body {
    font-family: 'Inter', sans-serif;
}

/* --- Peta Leaflet --- */
#leafletMapDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

/* --- Kontrol UI Peta (Legenda & Kontrol Layer) --- */
.leaflet-control-layers, .legend {
    background: rgba(2, 6, 23, 0.8);
    color: #cbd5e1;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 6px 10px;
}
.leaflet-control-layers-base label, .leaflet-control-layers-overlays label {
    font-weight: normal;
}

/* --- Legenda Collapsible --- */
.legend h4 {
    margin: 0 0 5px;
    color: #f1f5f9;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.legend h4::after {
    content: '▲';
    font-size: 10px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.legend.collapsed h4::after {
    transform: rotate(180deg);
}
.legend-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.legend.collapsed .legend-content {
    max-height: 0;
    padding-top: 0;
    margin-top: -5px;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.9;
}

/* --- Popup Peta --- */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #1e293b;
    color: #f1f5f9;
}
.leaflet-popup-close-button {
    color: #f1f5f9 !important;
}

/* --- Kartu Interaktif --- */
.wisdom-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}
.wisdom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.memory-card {
    transition: all 0.3s ease;
}
.memory-card:hover {
    transform: scale(1.02);
}

/* --- Linimasa Vertikal --- */
#vertical-timeline-container {
    position: relative;
    padding-left: 25px;
}
#vertical-timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #334155;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #60a5fa;
    border: 2px solid #1e293b;
}
.timeline-item-content {
    background-color: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}
.timeline-item-content.clickable:hover {
    background-color: #334155; /* bg-slate-700 */
    cursor: pointer;
}
.timeline-item-content img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}
.timeline-item-content h5 {
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.25rem;
}
.timeline-item-content p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* === GAYA BARU UNTUK PENANDA BERDENYUT === */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.pulse-marker {
    border-radius: 50%;
    animation: pulse 2s infinite;
}
/* === GAYA BARU UNTUK MEMORY MAPPING === */
#story-map {
    cursor: crosshair;
}

.story-card {
    background-color: #1e293b; /* bg-slate-800 */
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.story-card.clickable:hover {
    background-color: #334155; /* bg-slate-700 */
    cursor: pointer;
}

.story-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.story-card-content h5 {
    font-weight: 600;
    color: #93c5fd; /* text-blue-300 */
}

.story-card-content .meta {
    font-size: 0.75rem;
    color: #64748b; /* text-slate-500 */
    margin-bottom: 0.5rem;
}

.story-card-content p {
    font-size: 0.875rem;
    color: #cbd5e1; /* text-slate-300 */
}
