/* Hero Section */
.hero-wrapper { 
    position: relative; 
    margin-bottom: 3rem; 
}

.hero-image { 
    position: relative; 
    height: 400px; 
    border-radius: 16px; 
    overflow: hidden; 
}

.hero-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); 
}

.hero-content { 
    position: absolute; 
    top: 50%; 
    left: 50px; 
    transform: translateY(-50%); 
    z-index: 2; 
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: white; 
    line-height: 1.1; 
    margin: 0; 
}

.hero-subtitle { 
    font-size: 1.2rem; 
    color: rgba(255,255,255,0.9); 
    margin-top: 1rem; 
}

/* Info Card Overlay */
.info-card-overlay { 
    position: absolute; 
    bottom: -50px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 900px; 
    z-index: 3; 
    background: white; 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}

.info-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.info-icon { 
    width: 50px; 
    height: 50px; 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green gradient */
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 24px; 
}

.info-content { 
    flex: 1; 
}

.info-label { 
    display: block; 
    font-size: 0.85rem; 
    color: #6c757d; 
    margin-bottom: 4px; 
}

.info-value { 
    display: block; 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: #1a1a1a; 
}

/* Section Header */
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 2rem; 
    margin-top: 4rem; 
}

.section-badge { 
    display: inline-block; 
    padding: 6px 16px; 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green gradient */
    color: white; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.section-title { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin: 0.5rem 0; 
}

.section-description { 
    color: #6c757d; 
    font-size: 1rem; 
    margin-top: 0.5rem; 
}

.section-actions { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
}

/* Filter Dropdown */
.filter-dropdown { 
    position: relative; 
}

.filter-btn { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 20px; 
    background: white; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: #495057; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.filter-btn:hover { 
    border-color: #10b981; /* Green */
    background: #f8f9fa; 
}

.filter-btn.active { 
    border-color: #10b981; /* Green */
    background: #f0fdf4; /* Light green */
}

.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    margin-top: 8px; 
    min-width: 220px; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    padding: 8px; 
    z-index: 1000; 
    display: none; 
}

.dropdown-menu.show { 
    display: block; 
}

.dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 16px; 
    color: #495057; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.2s; 
    font-size: 0.95rem; 
}

.dropdown-item:hover { 
    background: #f8f9fa; 
    color: #10b981; /* Green */
}

.dropdown-item.active { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green gradient */
    color: white; 
}

/* Refresh Button */
.btn-refresh { 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    color: #495057; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 20px; 
}

.btn-refresh:hover { 
    border-color: #10b981; /* Green */
    color: #10b981; /* Green */
    transform: rotate(90deg); 
}

.btn-refresh.spinning { 
    animation: spin 1s linear; 
}

@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

/* Loading State */
.loading-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
}

.spinner { 
    width: 50px; 
    height: 50px; 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #10b981; /* Green */
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

.loading-state p { 
    margin-top: 1rem; 
    color: #6c757d; 
    font-size: 1rem; 
}

/* Error & Empty States */
.error-state, .empty-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
    text-align: center; 
}

.error-state i, .empty-state i { 
    font-size: 4rem; 
    color: #dc3545; 
    margin-bottom: 1rem; 
}

.empty-state i { 
    color: #6c757d; 
}

.error-state h3, .empty-state h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.error-state p, .empty-state p { 
    color: #6c757d; 
    margin-bottom: 1.5rem; 
}

.btn-retry { 
    padding: 12px 24px; 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green gradient */
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-retry:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); /* Green shadow */
}

/* Komoditas Grid */
.komoditas-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 3rem; 
}

/* Komoditas Card */
.komoditas-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    transition: all 0.3s; 
    cursor: pointer; 
}

.komoditas-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
}

.card-image { 
    position: relative; 
    height: 180px; 
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.card-image img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.card-content { 
    padding: 1.5rem; 
}

.card-title { 
    font-size: 1rem; 
    font-weight: 600; 
    color: #1a1a1a; 
    margin-bottom: 0.75rem; 
    line-height: 1.4; 
}

.card-price { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #1a1a1a; /* Black - harga tetap hitam */
    margin-bottom: 1rem; 
}

.card-trend { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    border-radius: 10px; 
}

.card-trend.trend-up { 
    background: #fee2e2; /* Light red */
}

.card-trend.trend-down { 
    background: #d1fae5; /* Light green */
}

.card-trend.trend-stable { 
    background: #dbeafe; /* Light blue */
}

.trend-icon { 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 18px; 
}

.trend-up .trend-icon { 
    background: #dc3545; 
    color: white; 
}

.trend-down .trend-icon { 
    background: #10b981; /* Green */
    color: white; 
}

.trend-stable .trend-icon { 
    background: #3b82f6; /* Blue */
    color: white; 
}

.trend-info { 
    flex: 1; 
}

.trend-change { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #1a1a1a; 
}

.trend-percentage { 
    display: block; 
    font-size: 0.85rem; 
    color: #6c757d; 
    margin-top: 2px; 
}

/* Info Section */
.info-section { 
    margin-top: 3rem; 
}

.info-card-full { 
    background: white; 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.info-card-header { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 1.5rem; 
}

.info-card-header i { 
    font-size: 24px; 
    color: #10b981; /* Green */
}

.info-card-header h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin: 0; 
}

.info-card-body ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.info-card-body li { 
    padding: 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
    color: #495057; 
    line-height: 1.6; 
}

.info-card-body li:last-child { 
    border-bottom: none; 
}

.info-card-body li:before { 
    content: "✓"; 
    color: #10b981; /* Green */
    font-weight: bold; 
    margin-right: 12px; 
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { 
        font-size: 2rem; 
    }
    
    .hero-content {
        left: 30px;
    }
    
    .info-card-overlay {
        width: 95%;
        padding: 1.5rem;
        bottom: -80px;
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    
    .section-header { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .section-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .komoditas-grid { 
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    }
    
    .card-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .info-value {
        font-size: 1rem;
    }
    
    .komoditas-grid {
        grid-template-columns: 1fr;
    }
}