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

body { 
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif; 
    background: #f8f8fc;
    padding-top: 120px;
}

/* 네비게이션 */
.navbar { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white; 
    padding: 15px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.nav-brand { 
    font-size: 26px; 
    font-weight: 900;
    background: linear-gradient(90deg, #ff6b9d, #c44dff, #4d79ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.nav-menu a { 
    color: white; 
    text-decoration: none; 
    margin-left: 15px;
    background: linear-gradient(135deg, #ff6b9d, #c44dff);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196,77,255,0.4);
}
.nav-menu span {
    color: #ccc;
    font-size: 14px;
    margin-right: 5px;
}

/* 로그인 */
.login-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh;
    background: linear-gradient(135deg, #f8f8fc 0%, #ede9ff 100%);
}
.login-box { 
    background: white; 
    padding: 50px; 
    border-radius: 24px; 
    text-align: center; 
    box-shadow: 0 8px 40px rgba(196,77,255,0.15);
    border: 1px solid rgba(196,77,255,0.1);
}
.login-box h1 { 
    font-size: 40px; 
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff6b9d, #c44dff, #4d79ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-box p { color: #888; margin-bottom: 30px; font-size: 16px; }

/* 게시글 작성 폼 */
.post-form { 
    max-width: 620px; 
    margin: 30px auto 0; 
    background: white; 
    padding: 24px; 
    border-radius: 20px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0eaff;
}
.post-form textarea { 
    width: 100%; 
    height: 100px; 
    padding: 14px; 
    border: 1.5px solid #e8e0ff; 
    border-radius: 12px; 
    resize: none; 
    margin-bottom: 12px;
    font-size: 15px;
    transition: border 0.3s;
    outline: none;
}
.post-form textarea:focus { border-color: #c44dff; }
.post-form input[type="text"] { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1.5px solid #e8e0ff; 
    border-radius: 12px; 
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
.post-form input[type="text"]:focus { border-color: #c44dff; }
.post-form input[type="file"] { 
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}
.post-form button { 
    background: linear-gradient(135deg, #ff6b9d, #c44dff);
    color: white; 
    padding: 12px 28px; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
}
.post-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196,77,255,0.4);
}

/* 피드 */
.feed { max-width: 620px; margin: 20px auto; padding-bottom: 40px; }

/* 게시글 카드 */
.post-card { 
    background: white; 
    border-radius: 20px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0eaff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196,77,255,0.12);
}
.post-header { 
    display: flex; 
    align-items: center; 
    padding: 16px 20px; 
    gap: 12px;
    border-bottom: 1px solid #f8f5ff;
}
.avatar { 
    width: 44px; 
    height: 44px; 
    border-radius: 50%;
    border: 2px solid #c44dff;
    object-fit: cover;
}
.post-header span { font-weight: 700; font-size: 15px; color: #1a1a2e; }
.post-time { color: #aaa !important; font-size: 12px !important; font-weight: 400 !important; margin-left: auto; }

.post-content { 
    padding: 16px 20px; 
    font-size: 15px; 
    line-height: 1.7;
    color: #333;
}
.post-image { 
    width: 100%; 
    max-height: 420px; 
    object-fit: cover;
}
.post-hashtags { 
    padding: 8px 20px 12px; 
    color: #c44dff;
    font-size: 13px;
    font-weight: 600;
}

/* 액션 버튼 */
.post-actions { 
    padding: 12px 20px; 
    border-top: 1px solid #f8f5ff;
    display: flex; 
    gap: 20px;
    align-items: center;
}
.like-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 15px;
    font-weight: 600;
    color: #ff6b9d;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff0f5;
    transition: all 0.2s;
}
.like-btn:hover { background: #ffe0ec; transform: scale(1.05); }
.post-actions span { 
    font-size: 15px; 
    color: #888;
    font-weight: 600;
}

/* 댓글 */
.comments { 
    padding: 12px 20px 16px; 
    background: #faf8ff;
}
.comment { 
    padding: 6px 0; 
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.comment strong { 
    color: #c44dff; 
    margin-right: 6px;
}
.comment-form { 
    display: flex; 
    gap: 10px; 
    margin-top: 12px;
}
.comment-form input { 
    flex: 1; 
    padding: 10px 14px; 
    border: 1.5px solid #e8e0ff; 
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
.comment-form input:focus { border-color: #c44dff; }
.comment-form button { 
    background: linear-gradient(135deg, #c44dff, #4d79ff);
    color: white; 
    padding: 10px 18px; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
}
.comment-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196,77,255,0.4);
}
