/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background with animated gradient */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
header {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 34px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
}

header .subtitle {
    font-size: 15px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main */
main {
    padding: 30px 20px;
}

/* Weather Card with glass effect */
.weather-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Weather text */
.city {
    font-size: 26px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.temperature {
    font-size: 72px;
    color: #4A90E2;
    font-weight: bold;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #357ABD; }
    100% { transform: scale(1); }
}

.condition {
    font-size: 22px;
    color: #555;
    margin-bottom: 5px;
}

.description {
    font-size: 15px;
    color: #777;
}

/* Buttons */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.6);
}

/* Status messages */
.status {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Offline indicator */
.offline-indicator {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.offline-indicator.hidden {
    display: none;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: #444;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }

    .temperature {
        font-size: 56px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }
}

