/**
 * FOV Calculator for Sim Racing - Styles
 * Version: 1.0.0
 * Copyright (c) 2024. All rights reserved.
 */

#fov-calculator {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #000F41 0%, #1a2356 100%);
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Pattern overlay */
#fov-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(251,100,60,.02) 35px, rgba(251,100,60,.02) 70px);
    pointer-events: none;
    z-index: 1;
}
/* Header Section */
.fov-header {
    text-align: center;
    padding: 50px 30px 40px;
    position: relative;
    z-index: 2;
}

.fov-header h2 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.fov-separator {
    width: 80px;
    height: 4px;
    background: #FB643C;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.fov-subtitle {
    color: #FB643C;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}
/* Controls Section */
.fov-controls {
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.slider-group {
    margin-bottom: 35px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.control-group label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.value-display {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.value-display span {
    color: #FB643C;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Modern Select Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FB643C;
    pointer-events: none;
    font-size: 0.8rem;
}
#fov-calculator select {
    width: 100%;
    padding: 14px 40px 14px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
}

#fov-calculator select option {
    background-color: #000F41;
    color: #ffffff;
    padding: 10px;
}

#fov-calculator select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(251, 100, 60, 0.5);
}

#fov-calculator select:focus {
    outline: none;
    border-color: #FB643C;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(251, 100, 60, 0.1);
}
/* Modern Range Sliders */
.modern-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FB643C;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(251, 100, 60, 0.4);
    transition: all 0.2s ease;
}

.modern-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #ff7c59;
    box-shadow: 0 2px 20px rgba(251, 100, 60, 0.6);
}

.modern-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FB643C;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(251, 100, 60, 0.4);
    transition: all 0.2s ease;
}

.modern-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #ff7c59;
    box-shadow: 0 2px 20px rgba(251, 100, 60, 0.6);
}
/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    padding-left: 35px;
}

.modern-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #FB643C;
    border-color: #FB643C;
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}
/* Results Section */
.fov-results {
    background: #ffffff;
    padding: 50px 30px;
    position: relative;
    z-index: 2;
    min-height: 200px;
}

.fov-loading {
    text-align: center;
    color: #000F41;
    font-size: 1.2rem;
    padding: 60px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.result-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.result-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.group-title {
    color: #000F41;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #FB643C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 50px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.result-item:hover {
    border-color: #FB643C;
    transform: translateX(5px);
}
.result-item.special {
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border-color: rgba(251, 100, 60, 0.2);
}

.game-name {
    color: #000F41;
    font-weight: 600;
    font-size: 0.95rem;
}

.game-value {
    color: #FB643C;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Footer */
.fov-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 2;
}

.fov-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    .fov-header {
        padding: 40px 25px 30px;
    }
    
    .fov-header h2 {
        font-size: 2rem;
    }
    
    .fov-subtitle {
        font-size: 1.1rem;
    }
    
    .fov-controls {
        padding: 30px 20px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fov-results {
        padding: 40px 20px;
    }
}

/* All elements box-sizing */
#fov-calculator * {
    box-sizing: border-box;
}

/* Focus States */
#fov-calculator *:focus-visible {
    outline: 3px solid #FB643C;
    outline-offset: 2px;
}

/* Smooth scrolling for internal navigation */
#fov-calculator {
    scroll-behavior: smooth;
}
/* Error State */
.fov-error {
    text-align: center;
    color: #dc3545;
    font-size: 1.1rem;
    padding: 60px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px;
}