/* Promotion Timing Calculator Specific Styles */

/* Timing Analysis Display */
.timing-analysis {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #10b981;
}

.timing-header {
    text-align: center;
    margin-bottom: 20px;
}

.timing-title {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.timing-subtitle {
    font-size: 14px;
    color: #064e3b;
}

.timing-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.timing-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.timing-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.timing-card.optimal {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.timing-card.good {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.timing-card.fair {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.timing-card.poor {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.timing-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.timing-card.optimal .timing-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.timing-card.good .timing-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.timing-card.fair .timing-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.timing-card.poor .timing-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timing-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timing-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timing-card.optimal .timing-value {
    color: #059669;
}

.timing-card.good .timing-value {
    color: #1d4ed8;
}

.timing-card.fair .timing-value {
    color: #d97706;
}

.timing-card.poor .timing-value {
    color: #dc2626;
}

.timing-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Seasonal Calendar */
.seasonal-calendar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.month-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.month-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.month-card.peak-season {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #10b981;
}

.month-card.good-season {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.month-card.slow-season {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.month-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.discount-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.month-card.peak-season .discount-badge {
    background: #dcfce7;
    color: #059669;
}

.month-card.good-season .discount-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.month-card.slow-season .discount-badge {
    background: #fee2e2;
    color: #dc2626;
}

.month-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-item {
    font-size: 13px;
    color: #475569;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item strong {
    color: #1e293b;
}

/* Savings Forecast Chart */
.savings-forecast {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.forecast-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    margin: 20px 0;
    padding: 0 20px;
    border-bottom: 2px solid #e2e8f0;
    border-left: 2px solid #e2e8f0;
    position: relative;
}

.forecast-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 4px;
}

.bar {
    width: 100%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.bar.peak {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bar.good {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bar.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bar.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.bar-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Timing Recommendations */
.timing-recommendations {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.recommendation-item.optimal {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #10b981;
}

.recommendation-item.warning {
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
    border-color: #f59e0b;
}

.recommendation-item.urgent {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.recommendation-item .recommendation-icon {
    background: #2563eb;
}

.recommendation-item.optimal .recommendation-icon {
    background: #10b981;
}

.recommendation-item.warning .recommendation-icon {
    background: #f59e0b;
}

.recommendation-item.urgent .recommendation-icon {
    background: #ef4444;
}

.recommendation-content {
    flex: 1;
}

.recommendation-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.recommendation-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Sale Periods Sidebar */
.sale-periods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.period-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.period-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.period-item.excellent {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #10b981;
}

.period-item.good {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.period-item.average {
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
    border-color: #f59e0b;
}

.period-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.period-item span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.period-item.excellent span {
    color: #059669;
}

.period-item.good span {
    color: #1d4ed8;
}

.period-item.average span {
    color: #d97706;
}

.period-item small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timing-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .forecast-chart {
        height: 150px;
        padding: 0 10px;
    }
    
    .forecast-bar {
        margin: 0 2px;
    }
    
    .bar {
        max-width: 30px;
    }
    
    .bar-label {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 10px;
    }
    
    .timing-analysis {
        padding: 20px;
    }
    
    .seasonal-calendar {
        padding: 20px;
    }
    
    .timing-recommendations {
        padding: 20px;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .timing-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .timing-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .timing-card {
        padding: 16px;
    }
    
    .timing-value {
        font-size: 18px;
    }
    
    .timing-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .timing-analysis {
        padding: 16px;
    }
    
    .seasonal-calendar {
        padding: 16px;
    }
    
    .timing-recommendations {
        padding: 16px;
    }
    
    .month-card {
        padding: 12px;
    }
    
    .forecast-chart {
        height: 120px;
        padding: 0 5px;
    }
    
    .bar {
        max-width: 25px;
    }
    
    .bar-value {
        font-size: 10px;
        top: -20px;
    }
    
    .period-item {
        padding: 10px;
    }
}
