:root {
    --primary-color: #1a1a2e;
    --accent-color: #e94560;
    --bg-light: #f8f9fa;
}

body { margin: 0; font-family: 'Pretendard', sans-serif; background: var(--bg-light); }

/* 배너 디자인 */
.main-banner {
    background: var(--primary-color);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.logo-main {
    font-size: 80px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 10px;
}

.logo-sub {
    font-size: 20px;
    font-weight: 300;
    margin-top: -10px;
    opacity: 0.8;
}

/* 레이아웃 */
.main-layout { display: flex; max-width: 1400px; margin: 0 auto; }

.sidebar {
    width: 250px;
    background: white;
    padding: 30px;
    height: calc(100vh - 200px);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.category-list { list-style: none; padding: 0; }
.category-list li {
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}
.category-list li:hover { background: #eee; color: var(--accent-color); }

/* 그리드 시스템 (6개 카드) */
.content-area { flex: 1; padding: 40px; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 */
    grid-template-rows: repeat(2, 1fr);    /* 2행 = 총 6개 */
    gap: 25px;
}

.ai-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.ai-card:hover { transform: translateY(-10px); }

.thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-content p {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.play-btn {
    display: block;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-top: auto;
}

.play-btn:hover {
    background-color: #d6344d;
}

.pay-btn {
    width: 100%; padding: 15px; background: gold;
    border: none; font-weight: bold; border-radius: 10px; cursor: pointer;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Single column grid on mobile */
    }

    .logo-main {
        font-size: 50px; /* smaller font for banner */
        letter-spacing: 5px;
    }

    .logo-sub {
        font-size: 16px;
    }

    .main-banner {
        padding: 60px 20px;
    }
}