:root {
    --bg-color: #0b1120;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --accent-color: #10b981; /* 주식 아이콘을 위한 신비하고 고급스러운 그린 색상 */
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(30, 41, 59, 0.8);
    --card-hover-border: rgba(16, 185, 129, 0.4);
}

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

body {
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* 스크롤 방지 */
    /* 신비로운 분위기를 연출하는 우아한 배경 효과 */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.04), transparent 30%);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Header (상단, 5vh) */
.header {
    height: 5vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Main (중단, 90vh) */
.main {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    max-height: 100%;
}

/* Menu Item Card */
.menu-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 1.2rem;
}

.menu-item.active {
    cursor: pointer;
}

.menu-item.active:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(16, 185, 129, 0.15),
                inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.menu-item.active:hover .icon-container {
    transform: scale(1.15);
}

.menu-item.inactive {
    cursor: not-allowed;
    opacity: 0.4;
    background: rgba(15, 23, 42, 0.2);
}

.icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-container svg {
    width: 100%;
    height: 100%;
}

.title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Custom SVG Icon Styling */
.icon-active svg {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.icon-inactive svg {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Footer (하단, 5vh) */
.footer {
    height: 5vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 4rem;
}

.email-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.email-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .grid-container {
        grid-gap: 1rem;
    }
    .icon-container {
        width: 45px;
        height: 45px;
    }
    .title {
        font-size: 1rem;
    }
    .header, .footer {
        padding: 0 2rem;
    }
    .main {
        padding: 1rem;
    }
}
