/**
 * Professional Recommendation Display Styles
 * ALGOPK Solar System Recommender
 */

/* =====================================================
   BACKUP HOURS SELECTION
   ===================================================== */
.backup-hours-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid #0284C7;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
}

.backup-hours-section h3 {
    font-size: 1.75rem;
    color: #0D3B6E;
    margin-bottom: 8px;
    text-align: center;
}

.backup-subtitle {
    text-align: center;
    color: #64748B;
    margin-bottom: 32px;
    font-size: 1rem;
}

.backup-slider-container {
    max-width: 600px;
    margin: 0 auto 32px;
}

.backup-display {
    text-align: center;
    margin-bottom: 24px;
}

.backup-hours-big {
    font-size: 4rem;
    font-weight: 800;
    color: #1565C0;
    line-height: 1;
    margin-bottom: 8px;
}

.backup-label {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 600;
}

.backup-slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #FEF3C7 0%, #F59E0B 50%, #1565C0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 16px;
}

.backup-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1565C0;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    transition: all 0.2s;
    border: 4px solid white;
}

.backup-slider::-webkit-slider-thumb:hover {
    background: #0D3B6E;
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(13, 59, 110, 0.5);
}

.backup-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.backup-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1565C0;
    cursor: grab;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    transition: all 0.2s;
}

.backup-slider::-moz-range-thumb:hover {
    background: #0D3B6E;
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(13, 59, 110, 0.5);
}

.backup-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.backup-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748B;
    font-weight: 600;
}

.backup-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.backup-info-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.backup-info-card:hover {
    border-color: #1565C0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.info-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-value {
    font-size: 1.25rem;
    color: #0D3B6E;
    font-weight: 700;
}

/* =====================================================
   SYSTEM OPTIONS GRID
   ===================================================== */
.system-options-header {
    text-align: center;
    margin-bottom: 48px;
}

.system-options-header h2 {
    font-size: 2.5rem;
    color: #0D3B6E;
    margin-bottom: 16px;
    font-weight: 800;
}

.system-options-header p {
    font-size: 1.125rem;
    color: #64748B;
}

.system-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    padding: 0 16px;
}

.system-option-card {
    background: white;
    border: 3px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.system-option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #1565C0;
}

.system-option-card.recommended {
    border-color: #10B981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25);
    background: linear-gradient(180deg, #F0FDF4 0%, white 100%);
}

.system-option-card.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10B981 0%, #059669 50%, #10B981 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.option-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.option-header {
    background: linear-gradient(135deg, #0D3B6E 0%, #1565C0 100%);
    color: white;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.option-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.option-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.option-body {
    padding: 32px 24px;
    background: linear-gradient(180deg, white 0%, #F8FAFC 100%);
}

.component-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid #E2E8F0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.2s;
}

.component-section:hover {
    background: #F8FAFC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.component-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.component-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.component-icon {
    font-size: 1.5rem;
}

.component-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0D3B6E;
}

.component-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.component-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

.component-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-badge {
    background: #E0F2FE;
    color: #0369A1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.spec-badge.quantity {
    background: #FEF3C7;
    color: #D97706;
}

.spec-badge.wiring {
    background: #E0E7FF;
    color: #4F46E5;
}

.component-price {
    font-size: 1.125rem;
    color: #10B981;
    font-weight: 700;
}

.option-footer {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 32px 24px;
    border-top: 3px solid #E2E8F0;
}

.total-cost-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.total-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 2.25rem;
    color: #0D3B6E;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.backup-time {
    display: inline-block;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.select-option-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #1565C0 0%, #0D3B6E 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
    position: relative;
    overflow: hidden;
}

.select-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.select-option-btn:hover::before {
    left: 100%;
}

.select-option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.45);
}

.select-option-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.35);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Category Headers with Animated Backgrounds */
.category-header {
    background: linear-gradient(135deg, #0D3B6E 0%, #1565C0 100%);
    color: white;
    padding: 32px;
    border-radius: 20px;
    margin: 48px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13, 59, 110, 0.25);
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.category-header.traditional {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.category-header.maintenance-free {
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
}

.category-header.premium-bms {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.category-description {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.category-best-for {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Empty Category Message */
.empty-category-message {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 3px dashed #F59E0B;
    border-radius: 20px;
    margin: 24px 0;
}

.empty-category-message .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-category-message h3 {
    font-size: 1.5rem;
    color: #92400E;
    margin-bottom: 8px;
    font-weight: 700;
}

.empty-category-message p {
    font-size: 1rem;
    color: #78350F;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1279px) {
    .system-options-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .backup-hours-section {
        padding: 24px 16px;
    }
    
    .backup-hours-big {
        font-size: 3rem;
    }
    
    .backup-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .system-options-header h2 {
        font-size: 1.75rem;
    }
    
    .option-title {
        font-size: 1.25rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
}
