/**
 * NOC Fuel Prices - Frontend Styles
 */

/* Main Wrapper */
.noc-fuel-prices-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* Header */
.noc-fuel-header {
    text-align: center;
    margin-bottom: 40px;
}

.noc-fuel-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    color: #005a88;
    margin: 0 0 10px;
    font-weight: 700;
}

.noc-title-icon {
    width: 36px;
    height: 36px;
    color: #005a88;
}

.noc-fuel-subtitle {
    color: #2b82ac;
    font-size: 16px;
    margin: 0 0 10px;
    font-style: italic;
}

.noc-last-updated {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Zone Container */
.noc-zone-container {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 28px;
    border: 1px solid rgba(0,90,136,0.1);
}

.noc-zone-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #1d2327;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #005a88;
    font-weight: 600;
}

.noc-location-icon {
    width: 24px;
    height: 24px;
    color: #005a88;
}

/* Price Cards Grid */
.noc-price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}

.noc-price-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.noc-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005a88, #2b82ac);
    opacity: 0;
    transition: opacity 0.3s;
}

.noc-price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,90,136,0.15);
}

.noc-price-card:hover::before {
    opacity: 1;
}

.noc-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
}

.noc-card-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.noc-fuel-name {
    font-size: 13px;
    color: #495057;
    margin: 0 0 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noc-fuel-price {
    font-size: 20px;
    font-weight: 700;
    color: #005a88;
}

.noc-price-currency {
    font-size: 14px;
    font-weight: 600;
}

.noc-price-value {
    font-size: 26px;
    display: inline-block;
    margin: 0 2px;
}

.noc-price-unit {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

/* Fuel type specific colors */
.noc-petrol .noc-fuel-price { color: #c0392b; }
.noc-petrol .noc-price-card::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }

.noc-diesel .noc-fuel-price { color: #d35400; }
.noc-diesel .noc-price-card::before { background: linear-gradient(90deg, #f39c12, #d35400); }

.noc-kerosene .noc-fuel-price { color: #e67e22; }
.noc-kerosene .noc-price-card::before { background: linear-gradient(90deg, #e67e22, #d35400); }

.noc-aviation-fuel-duty-free .noc-fuel-price { color: #c0392b; }
.noc-aviation-fuel-duty-free .noc-price-card::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }

.noc-aviation-fuel-jet .noc-fuel-price { color: #2980b9; }
.noc-aviation-fuel-jet .noc-price-card::before { background: linear-gradient(90deg, #3498db, #2980b9); }

.noc-gas-price .noc-fuel-price { color: #2980b9; }
.noc-gas-price .noc-price-card::before { background: linear-gradient(90deg, #3498db, #2980b9); }

/* Footer */
.noc-fuel-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

.noc-source {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.noc-source a {
    color: #005a88;
    text-decoration: none;
    font-weight: 500;
}

.noc-source a:hover {
    text-decoration: underline;
}

/* No Prices Message */
.noc-no-prices {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
    font-size: 16px;
}

/* Chart Wrapper */
.noc-chart-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 28px;
    margin: 30px 0;
    border: 1px solid rgba(0,90,136,0.1);
}

.noc-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.noc-chart-title {
    margin: 0;
    color: #005a88;
    font-size: 20px;
    font-weight: 600;
}

.noc-chart-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.noc-chart-select {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 120px;
}

.noc-chart-select:focus {
    outline: none;
    border-color: #005a88;
}

.noc-chart-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #005a88 0%, #2b82ac 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.noc-chart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,90,136,0.3);
}

.noc-chart-container {
    position: relative;
    height: 320px;
    margin-bottom: 24px;
}

.noc-chart-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.noc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noc-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.noc-legend-label {
    font-size: 13px;
    color: #495057;
}

/* Single Price Widget */
.noc-single-price {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.noc-single-icon {
    width: 36px;
    height: 36px;
    color: #005a88;
}

.noc-single-icon svg {
    width: 100%;
    height: 100%;
}

.noc-single-info {
    display: flex;
    flex-direction: column;
}

.noc-single-name {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.noc-single-value {
    font-size: 20px;
    font-weight: 700;
    color: #005a88;
}

.noc-single-value small {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .noc-fuel-prices-wrapper {
        padding: 15px;
    }
    
    .noc-fuel-title {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }
    
    .noc-zone-container {
        padding: 20px;
    }
    
    .noc-price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .noc-price-card {
        padding: 18px 12px;
    }
    
    .noc-card-icon {
        width: 52px;
        height: 52px;
    }
    
    .noc-fuel-name {
        font-size: 11px;
    }
    
    .noc-fuel-price {
        font-size: 18px;
    }
    
    .noc-price-value {
        font-size: 22px;
    }
    
    .noc-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .noc-chart-controls {
        width: 100%;
    }
    
    .noc-chart-select {
        flex: 1;
        min-width: auto;
    }
    
    .noc-chart-container {
        height: 260px;
    }
    
    .noc-chart-legend {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .noc-price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .noc-price-card {
        padding: 14px 10px;
    }
    
    .noc-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    
    .noc-fuel-name {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .noc-fuel-price {
        font-size: 16px;
    }
    
    .noc-price-value {
        font-size: 18px;
    }
    
    .noc-zone-name {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .noc-fuel-prices-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .noc-zone-container {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .noc-price-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .noc-chart-wrapper {
        display: none;
    }
}
