:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.04), transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.04), transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Banner */
.banner {
    position: relative;
    padding: 90px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.banner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.banner-gradient {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.05) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    position: relative;
    z-index: 10;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Posts Section */
.posts-section {
    margin-bottom: 70px;
}

.view-all {
    font-size: 0.9rem;
    color: #60a5fa;
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.view-all:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.posts-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.post-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.post-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-radius: 20px;
    margin-right: 16px;
    white-space: nowrap;
}

.post-tag.notice {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.post-title {
    flex: 1;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 16px;
    transition: color 0.2s ease;
}

.post-item:hover .post-title {
    color: #93c5fd;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Menu Section */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Card Styles */
.menu-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-card:not(.disabled):hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.menu-card:not(.disabled):hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-card:not(.disabled):hover .card-icon {
    transform: scale(1.1);
}

.menu-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.menu-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.menu-card.disabled {
    cursor: default;
    background: rgba(15, 20, 30, 0.5);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.05);
}

.menu-card.disabled .card-icon {
    filter: grayscale(100%);
    opacity: 0.4;
}

.menu-card.disabled h3, 
.menu-card.disabled p {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .post-item {
        flex-wrap: wrap;
        padding: 16px 20px;
    }
    
    .post-title {
        width: 100%;
        margin-top: 12px;
        margin-bottom: 6px;
        order: 3;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .post-date {
        margin-left: auto;
    }
    
    .menu-grid {
        gap: 16px;
    }
    
    .menu-card {
        padding: 24px 16px;
        min-height: 180px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

/* -----------------------------
   Main Site Global Banners
----------------------------- */
.side-banner {
    position: absolute; /* 메인 컨텐츠 영역 기준 고정 */
    top: 20px; /* 메인 컨텐츠와 살짝 띄워 자연스러운 라인 형성 */
    width: 160px; /* 가장 예쁜 와이드 스카이스크래퍼 스탠다드 비율 */
    z-index: 50;
    display: none;
    transition: opacity 0.3s, top 0.1s ease-out; /* 스크롤 따라 부드럽게 글라이드 효과 추가 */
}
.side-banner-left {
    right: 100%;
    margin-right: 30px; /* 메인 박스 좌측 바로 옆 */
}
.side-banner-right {
    left: 100%;
    margin-left: 30px; /* 메인 박스 우측 바로 옆 */
}
.side-banner img {
    width: 100%;
    height: 600px; /* 160x600 황금비율 세로 규격 */
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.side-banner img:hover {
    transform: translateY(-3px);
}

@media (max-width: 1550px) {
    .side-banner { display: none !important; }
}
