/* ========================================
   SCUMPIRI.RO - Custom Styles
   Inflație și Prețuri România
   ======================================== */

:root {
    --inflation-red: #e74a3b;
    --inflation-orange: #f6c23e;
    --inflation-green: #1cc88a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Sidebar Danger Gradient ===== */
.bg-gradient-danger {
    background: linear-gradient(180deg, #e74a3b 0%, #be2617 100%);
}

/* ===== Stat Cards ===== */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== Price Increase List ===== */
.price-increase-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-increase-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: 10px;
    border-left: 4px solid #e74a3b;
    transition: all 0.2s ease;
}

.price-increase-item:hover {
    background: #e3e6f0;
    transform: translateX(5px);
}

.price-increase-item .rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74a3b;
    width: 40px;
}

.price-increase-item .product-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.price-increase-item .product-info {
    flex: 1;
}

.price-increase-item .product-name {
    font-weight: 600;
    font-size: 1rem;
}

.price-increase-item .product-price {
    font-size: 0.85rem;
    color: #858796;
}

.price-increase-item .increase-badge {
    background: #e74a3b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-increase-item .trend {
    margin-left: 1rem;
    font-size: 0.8rem;
}

/* ===== Basket Items ===== */
.basket-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.basket-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.basket-item:hover {
    background: #e3e6f0;
}

.basket-item.selected {
    background: rgba(28, 200, 138, 0.1);
    border: 1px solid #1cc88a;
}

.basket-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.basket-item .item-name {
    flex: 1;
    font-weight: 500;
}

.basket-item .item-qty {
    color: #858796;
    font-size: 0.85rem;
    margin-right: 1rem;
}

.basket-item .item-price {
    font-weight: 600;
    color: #e74a3b;
}

/* ===== Chart Area ===== */
.chart-area {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ===== Ad Placeholders ===== */
.ad-card {
    border: 2px dashed #d1d3e2;
    background-color: #fafafa;
}

.ad-placeholder {
    padding: 2rem;
    border-radius: 8px;
    background-color: #f0f0f0;
}

/* ===== Card Gradients ===== */
.bg-gradient-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #5a5c69 0%, #373840 100%);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 74, 59, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 74, 59, 0); }
}

.stat-card:hover .stat-icon.bg-danger {
    animation: pulse-red 1s infinite;
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .price-increase-item {
        padding: 0.75rem;
    }
    
    .price-increase-item .rank {
        font-size: 1.2rem;
        width: 30px;
    }
    
    .price-increase-item .product-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .price-increase-item .increase-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .chart-area {
        height: 250px;
    }
    
    .form-control {
        font-size: 16px;
    }
    
    .basket-items {
        max-height: 250px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== Selection ===== */
::selection {
    background-color: rgba(231, 74, 59, 0.2);
    color: #be2617;
}
