/* ========================================
   PRETDIESEL.RO - Custom Styles
   Prețuri Combustibil România
   ======================================== */

:root {
    --primary-warning: #f6c23e;
    --primary-danger: #e74a3b;
    --primary-success: #1cc88a;
}

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

/* ===== No Sidebar - Full Width Layout ===== */
#content-wrapper {
    margin-left: 0 !important;
    width: 100%;
}

.sidebar {
    display: none !important;
}

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

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

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

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

#diesel-price, #gasoline-price, #gpl-price {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

/* ===== Tax Breakdown ===== */
.breakdown-item {
    padding: 0.5rem 0;
}

.breakdown-item .progress {
    border-radius: 10px;
    background-color: #e3e6f0;
}

.breakdown-item .progress-bar {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== Map Styling ===== */
#romania-map {
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 10px 15px;
    font-family: 'Inter', sans-serif;
}

.price-popup h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.price-popup .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74a3b;
}

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

/* ===== Table Styling ===== */
#stations-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#stations-table tbody tr {
    transition: background-color 0.2s ease;
}

#stations-table tbody tr:hover {
    background-color: rgba(246, 194, 62, 0.05);
}

.station-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    font-size: 0.7rem;
}

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

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

/* ===== Calculator Results ===== */
.result-box {
    border: 2px dashed #d1d3e2;
    transition: all 0.3s ease;
}

.result-box.highlight {
    border-color: #1cc88a;
    background-color: rgba(28, 200, 138, 0.05);
}

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

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

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

/* ===== Card Header 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-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 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%);
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .fuel-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    #diesel-price, #gasoline-price, #gpl-price {
        font-size: 1.1rem;
    }

    .text-xs {
        font-size: 0.7rem !important;
    }

    #romania-map {
        min-height: 280px;
    }

    .chart-area {
        height: 220px;
    }

    .form-control {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-header {
        padding: 0.5rem 0.75rem;
    }

    .card-header h6 {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .h3, h3 {
        font-size: 1.1rem;
    }

    .h4, h4 {
        font-size: 1rem;
    }

    .alert {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    #stations-table {
        font-size: 0.75rem;
    }

    #stations-table th {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }

    #stations-table td {
        padding: 0.4rem 0.25rem;
    }

    .progress {
        height: 20px !important;
    }

    .progress-bar {
        font-size: 0.75rem;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 13px;
    }

    #diesel-price, #gasoline-price, #gpl-price {
        font-size: 1rem;
    }

    .fuel-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.5rem;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 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(246, 194, 62, 0.3);
    color: #dda20a;
}
