:root { --primary: #7a5dfa; --bg: #f4f7f6; --white: #ffffff; }

body { font-family: sans-serif; margin: 0; background: var(--bg); color: #333; }
.container { display: flex; max-width: 1200px; margin: 0 auto; padding: 30px 20px; gap: 30px; }

/* 메인 영역 */
main { flex: 2; min-width: 0; }
.logo { text-align: center; color: var(--primary); font-size: 32px; margin-bottom: 20px; }

/* 광고 슬롯 */
.ad-slot { background: #e9ecef; border: 1px dashed #adb5bd; text-align: center; padding: 20px; margin-bottom: 20px; border-radius: 10px; font-weight: bold; color: #666; }

/* 글쓰기 카드 */
.post-card { background: var(--white); padding: 20px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 25px; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.btn-primary { background: #28a745; color: white; border: none; padding: 15px; border-radius: 8px; width: 100%; cursor: pointer; font-weight: bold; }

/* MBTI 그리드 */
.mbti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.mbti-card { background: var(--white); padding: 20px 0; text-align: center; border: 2px solid var(--primary); border-radius: 10px; text-decoration: none; color: var(--primary); font-weight: bold; transition: 0.2s; }
.mbti-card:hover { background: var(--primary); color: white; }

/* 사이드바 카페 스타일 */
aside { flex: 1; min-width: 300px; }
.sidebar-card { background: var(--white); padding: 20px; border-radius: 15px; position: sticky; top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.cafe-category { margin-bottom: 20px; }
.category-title { font-weight: 800; border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 10px; font-size: 15px; display: flex; justify-content: space-between; }
.cafe-menu-list { list-style: none; padding: 0; margin: 0; }
.cafe-menu-item { padding: 5px 0 5px 15px; position: relative; font-size: 14px; }
.cafe-menu-item::before { content: "└"; position: absolute; left: 0; color: #ccc; }
.cafe-menu-item a { text-decoration: none; color: #555; }
.cafe-menu-item a:hover { color: var(--primary); text-decoration: underline; }
.badge-n { background: #ff4d4f; color: white; font-size: 10px; padding: 1px 4px; border-radius: 10px; margin-left: 5px; }

@media (max-width: 900px) { .container { flex-direction: column; } .mbti-grid { grid-template-columns: repeat(2, 1fr); } aside { min-width: 100%; } }