/* Common styles */
.weather-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: white;
    border-radius: 8px;
    padding: 15px;
    background: #2d5a27;
}

/* Landscape view */
.weather-container.landscape {
    padding: 20px;
    background: #2d5a27;
    min-width: 300px;
}

.landscape .weather-main {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.landscape .column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.landscape .temp-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0px;
}

.landscape .temp-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.landscape .temp-container i {
    font-size: 32px;
    opacity: 0.9;
}

.landscape .temp {
    font-size: 30px;
    font-weight: 500;
}

.landscape .location-time {
    font-size: 13px;
    opacity: 0.9;
}

.landscape .details-1,
.landscape .details-2 {
    padding: 0 15px;
}

.landscape .detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.landscape .detail-item i {
    font-size: 16px;
    opacity: 0.9;
}

.landscape .detail-item span {
    font-size: 14px;
}

.landscape .weather-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.landscape .location {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.landscape .time {
    font-size: 14px;
    opacity: 0.9;
}

/* Mobile view */
.weather-container.mobile {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.mobile .mobile-weather {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.mobile .weather-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 20px;
    height: 20px;
}

.mobile .weather-icon i {
    font-size: 20px;
    opacity: 0.9;
}

.mobile .temp {
    font-size: 18px;
    font-weight: 500;
}

.mobile .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.mobile .mobile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.mobile .mobile-info i {
    font-size: 14px;
    opacity: 0.9;
}

/* Portrait view (sidebar) */
.weather-container.portrait {
    max-width: 300px;
    padding: 20px;
    background: linear-gradient(to bottom, #2d5a27, #1a4314);
}

.portrait .location {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.portrait .temp {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.portrait .details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobile header view */
.weather-container.mobile-header {
    padding: 8px 15px;
    background: linear-gradient(to right, #2d5a27, #1a4314);
}

.mobile-header .basic-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header .temp {
    font-size: 1.5em;
    font-weight: bold;
}

/* Full page view */
.weather-container.full {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #2d5a27, #1a4314);
}

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

.full .location {
    font-size: 2em;
}

.full .temp {
    font-size: 3.5em;
    font-weight: bold;
}

.full .details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.full .forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Common elements */
.weather-icon {
    width: 50px;
    height: 50px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item i {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .landscape .details {
        display: none;
    }
    
    .full .header {
        flex-direction: column;
        text-align: center;
    }
    
    .full .forecast {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
