@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 상단 배너 */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.banner-logo-img {
    height: 28px;
    width: auto;
}

.banner-tagline {
    color: #666;
    font-size: 12px;
}

.banner-login-btn {
    background-color: #E84A27;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.banner-login-btn:hover {
    background-color: #d4401f;
    transform: translateY(-1px);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.home-logo {
    width: 250px;
    height: auto;
}

.home-tagline {
    text-align: center;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: -30px 0 0 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.grid-item {
    background-color: #ffffff;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 주황색 잔상 이펙트 (hover) */
.grid-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(232, 74, 39, 0.15), transparent);
    transition: left 0.4s ease;
}

.grid-item:hover:before {
    left: 100%;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 74, 39, 0.2);
    color: #E84A27;
}

.grid-item span {
    z-index: 1;
}

/* 페이지 로드 시 애니메이션 */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    50% {
        box-shadow: 0 15px 40px rgba(232, 74, 39, 0.35);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
}

@keyframes orangeGlow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 10px 35px rgba(232, 74, 39, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
}

.grid-item.animate-in {
    opacity: 0;
    animation: floatUp 0.8s ease-out forwards;
}

.grid-item.animate-in.delay-1 {
    animation-delay: 0.1s;
}

.grid-item.animate-in.delay-2 {
    animation-delay: 0.4s;
}

/* 홈페이지 푸터 스타일 오버라이드 */
.home-footer {
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0;
    background-color: rgba(248, 249, 250, 0.95);
    border-top: 1px solid #e0e0e0;
    padding: 10px 20px;
    backdrop-filter: blur(5px);
}

.home-footer .footer-content {
    text-align: center;
}

.home-footer .footer-line {
    margin: 3px 0;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.home-footer .footer-line a {
    color: #666;
    text-decoration: none;
}

.home-footer .footer-line a:hover {
    color: #333;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .top-banner {
        padding: 8px 15px;
    }

    .banner-left {
        gap: 12px;
    }

    .banner-logo-img {
        height: 22px;
    }

    .banner-tagline {
        font-size: 10px;
    }

    .banner-login-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .container {
        padding-top: 50px;
        padding-bottom: 80px;
        gap: 30px;
    }

    .home-logo {
        width: 180px;
    }

    .home-tagline {
        font-size: 14px;
        margin: -20px 0 0 0;
    }

    .grid {
        grid-template-columns: repeat(2, 140px);
        grid-template-rows: repeat(2, 140px);
        gap: 10px;
    }

    .grid-item {
        font-size: 18px;
        border-radius: 10px;
    }

    .home-footer {
        padding: 8px 10px;
    }

    .home-footer .footer-line {
        font-size: 9px;
        line-height: 1.3;
    }
}
