/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;600&display=swap');

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

/* 배경 이미지 서서히 선명해지는 페이드인 애니메이션 */
body > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: fadeInBackground 1.5s ease-out forwards;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

/* 공통 애니메이션 정의 */
@keyframes fadeInBackground {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

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

/* 숨김 클래스 */
.hidden {
    display: none !important;
}

/* 시계 (아래에서 위로 등장) */
#clock {
    font-size: 7rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* 로그인 폼 & 투두 폼 */
#login-form, #todo-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

input[type="text"] {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

input[type="submit"] {
    background: #ffffff;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:active {
    transform: translateY(0);
}

#greeting {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* To-Do 리스트 및 리스트 아이템 애니메이션 */
#todo-list {
    list-style: none;
    width: 100%;
    max-width: 400px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
}

#todo-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    animation: fadeInUp 0.4s ease-out;
    transition: all 0.2s ease;
}

#todo-list li:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateX(4px);
}

#todo-list button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#todo-list button:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* 명언 카드 */
#quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
    animation: fadeInUp 1.2s ease-out;
    transition: background 0.3s ease;
}

#quote:hover {
    background: rgba(0, 0, 0, 0.45);
}

#quote span:last-child {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 날씨 영역 */
/* 날씨 영역 스타일 다듬기 */
#weather {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 16px 6px 10px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1s ease-out;
}

#weather-icon {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

#weather > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

#temp {
    font-size: 1.1rem;
    font-weight: 600;
}

#city {
    font-size: 0.8rem;
    opacity: 0.8;
}