/* Responsive Design */

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .weather-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .weather-additional-section {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
    
    .wind-meter-section {
        grid-column: 1 / -1;
        margin-top: 10px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        position: relative;
    }
    
    .container {
        padding: 0 15px;
        min-height: auto;
        height: auto;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
    }
    
    .header {
        margin-top: 55px;
        padding: 10px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .weather-container {
        grid-template-columns: 1fr;
        gap: 15px;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wind-meter-section {
        min-height: 250px;
    }
    
    .current-weather,
    .weather-details-section,
    .weather-additional-section {
        padding: 15px;
    }
    
    .current-weather {
        min-height: 500px;
    }
    
    .temperature-element {
        font-size: 9rem;
    }
    
    .weather-icon {
        width: 50px;
        height: 50px;
    }
    
    .forecast-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .forecast-day {
        padding: 15px;
    }
    
    .chart-container {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .chart-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .chart-controls {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .chart-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .chart-wrapper {
        height: 250px;
        padding: 10px;
    }
    
    .chart-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chart-stats {
        text-align: left;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu li a {
        font-size: 0.8rem;
    }
    
    .header {
        margin-top: 50px;
        padding: 8px 0;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .current-weather,
    .weather-details-section,
    .weather-additional-section {
        padding: 12px;
    }
    
    .current-weather {
        min-height: 400px;
    }
    
    .temperature-element {
        font-size: 7rem;
    }
    
    .weather-icon {
        width: 40px;
        height: 40px;
    }
    
    .forecast-day {
        padding: 12px;
    }
    
    .forecast-day h4 {
        font-size: 1rem;
    }
    
    .forecast-day .date {
        font-size: 0.8rem;
    }
    
    .forecast-icon {
        width: 40px;
        height: 40px;
    }
    
    .forecast-day p {
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 15px 10px;
    }
    
    .chart-title {
        font-size: 1.2rem;
    }
    
    .chart-controls {
        gap: 6px;
    }
    
    .chart-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .chart-wrapper {
        height: 200px;
        padding: 8px;
    }
    
    .chart-range {
        font-size: 0.85rem;
    }
    
    .chart-stats {
        font-size: 0.75rem;
    }
    
    /* Wind Meter Responsive */
    .wind-meter-section {
        min-height: 200px;
        padding: 15px;
    }
    
    .wind-compass {
        width: 120px;
        height: 120px;
    }
    
    .arrow-shaft {
        height: 35px;
    }
    
    .wind-speed {
        font-size: 1.1rem;
    }
    
    .wind-direction-text {
        font-size: 0.85rem;
    }
    
    .compass-marking {
        font-size: 12px;
    }
    
    .compass-marking.ne,
    .compass-marking.se,
    .compass-marking.sw,
    .compass-marking.nw {
        font-size: 10px;
    }
}
