/* E6B Wind Calculator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}

.title-section {
    flex: 1;
}

.home-link {
    display: inline-block;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-flex-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.input-section, .results-section, .wind-triangle-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex: 1;
    min-width: 300px;
}

.input-section h2, .results-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group label {
    font-weight: 600;
    color: #34495e;
    min-width: 140px;
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.result-item label {
    font-weight: 600;
    color: #2c3e50;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
    min-width: 60px;
    text-align: right;
}

.unit {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 5px;
}

.wind-triangle-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    text-align: center;
}

.wind-triangle-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

#windTriangle {
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.triangle-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.instructions {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.instructions h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 30px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.formula {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.formula h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.formula p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.formula strong {
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-flex-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .input-section, .results-section, .wind-triangle-section {
        min-width: auto;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .input-group label {
        min-width: auto;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .triangle-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Animation for results */
.result-value {
    transition: color 0.3s ease;
}

.result-value.updated {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
} 