:root {
    --bg-gradient: linear-gradient(135deg, oklch(70% 0.15 250), oklch(60% 0.2 280));
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: oklch(98% 0.01 250);
    --text-secondary: oklch(85% 0.02 250);
    --accent: oklch(85% 0.12 90);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow: hidden;
}

/* Texture effect */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
}

.weather-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: transform 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);
}

header {
    text-align: center;
}

.location {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.date {
    font-size: 1rem;
    color: var(--text-secondary);
}

.weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.temp-container {
    display: flex;
    align-items: baseline;
}

.temp {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.unit {
    font-size: 1.5rem;
    font-weight: 400;
    margin-left: 4px;
}

.weather-info {
    text-align: center;
    width: 100%;
}

.description {
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 400;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.value {
    font-size: 1.1rem;
    font-weight: 700;
}

.refresh-container {
    display: flex;
    justify-content: center;
}

.refresh-btn {
    background: var(--text-primary);
    color: oklch(60% 0.2 280);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.refresh-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .weather-card {
        padding: 30px 20px;
    }
    .temp {
        font-size: 4rem;
    }
}

/* Using :has() for subtle feedback */
.weather-card:has(.refresh-btn:hover) {
    border-color: var(--accent);
}
