/* =====================================================
   크리에이터 커뮤니티 CSS - 쌈뽕한 디자인
   ===================================================== */

/* 공통 스타일 */
.community-container,
.write-post-container,
.view-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 커뮤니티 헤더 - 그라데이션 + 글래스모피즘 */
.community-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 18px;
    color: white;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.25);
}

.community-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
}

.community-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    font-weight: 800;
    text-shadow: 0 3px 6px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

.community-header p {
    font-size: .95rem;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.write-btn {
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.write-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.write-btn:hover::before {
    opacity: 1;
}

.write-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.3);
}

/* 카테고리 네비게이션 - 글래스모피즘 */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-btn:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn:hover {
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 검색 및 정렬 - 모던한 디자인 */
.search-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 25px;
    padding: 25px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: #1a202c;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-box input::placeholder {
    color: #718096;
    font-weight: 500;
    opacity: 0.8;
    font-style: italic;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), inset 0 2px 4px rgba(0,0,0,0.1);
    color: #1a202c;
    transform: translateY(-1px);
    z-index: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-box input:focus + .search-btn {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    z-index: 1;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: -2px;
    border: 2px solid #667eea;
    border-left: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-btn:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 0 4px 12px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.sort-options select {
    padding: 15px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: #1a202c;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.sort-options select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    color: #1a202c;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), inset 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    z-index: 1;
}

.sort-options select option {
    background: white;
    color: #1a202c;
    font-weight: 500;
    padding: 10px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.sort-options select option:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 게시글 목록 - 카드 디자인 */
.posts-container {
    margin-bottom: 50px;
}

.post-item {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.post-item:hover::before {
    transform: scaleY(1);
}

.post-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.post-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-right: 20px;
}

.post-category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
}

.post-title:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.post-stats {
    display: flex;
    gap: 25px;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
}

.post-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 페이지네이션 - 모던한 디자인 */
.pagination {
    display: none; /* 기본적으로 숨김, 데이터가 있을 때만 표시 */
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.pagination button {
    padding: 12px 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #667eea;
    min-width: 45px;
}

.pagination button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* 게시글 작성 폼 - 글래스모피즘 */
.write-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.write-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.write-post-form {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.char-count {
    text-align: right;
    margin-top: 8px;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.help-text {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

/* CAPTCHA - 스타일리시한 디자인 */
.captcha-group {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.captcha-image {
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.refresh-captcha {
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.refresh-captcha:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 폼 버튼 - 그라데이션 + 호버 효과 */
.form-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    box-shadow: 0 8px 20px rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(113, 128, 150, 0.4);
}

/* 게시글 상세보기 - 모던한 레이아웃 */
.back-button-container {
    margin-bottom: 25px;
}

.back-btn {
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    padding: 12px 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(113, 128, 150, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(113, 128, 150, 0.4);
}

.post-content {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 35px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.post-header-detail {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid rgba(102, 126, 234, 0.2);
}

.post-title-detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta-detail {
    display: flex;
    gap: 25px;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

.post-body {
    line-height: 1.9;
    color: #2d3748;
    font-size: 1.15rem;
}

/* 게시글 액션 - 인터랙티브 버튼 */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.author-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: white;
    box-shadow: 0 6px 15px rgba(246, 173, 85, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(246, 173, 85, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
    box-shadow: 0 6px 15px rgba(252, 129, 129, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(252, 129, 129, 0.4);
}

/* 댓글 섹션 - 모던한 디자인 */
.comments-section {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.comments-section h3 {
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.comment-form {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 35px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.comment-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-input-group input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.comment-content-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-content-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.comment-submit {
    text-align: right;
    margin-top: 20px;
}

/* 댓글 목록 - 카드 스타일 */
.comment-item {
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding: 25px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.comment-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.comment-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.comment-like {
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

/* 모달 - 글래스모피즘 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255,255,255,0.95);
    padding: 35px;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content p {
    margin-bottom: 25px;
    color: #4a5568;
    line-height: 1.6;
}

.modal-content input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 로딩 상태 - 애니메이션 */
.loading {
    text-align: center;
    padding: 60px;
    color: #718096;
    font-size: 1.2rem;
    font-weight: 500;
}

.loading h3 {
    margin: 20px 0 10px 0;
    color: #2d3748;
    font-weight: 600;
}

.loading p {
    color: #718096;
    font-size: 1rem;
}

.loading .fa-spinner {
    color: #667eea;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 메시지 스타일 */
.error-message {
    text-align: center;
    padding: 60px;
    color: #718096;
}

.error-message h3 {
    color: #e53e3e;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-message p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.error-message .btn {
    margin: 0 5px;
}

/* 게시글 없음 메시지 스타일 */
.no-posts {
    text-align: center;
    padding: 60px;
    color: #718096;
}

.no-posts h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-posts p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.no-posts .btn {
    margin-top: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .community-container,
    .write-post-container,
    .view-post-container {
        padding: 15px;
    }
    
    .community-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .community-header h1 {
        font-size: 1.6rem;
    }
    
    .community-header p {
        font-size: 0.9rem;
    }
    
    .category-nav {
        padding: 15px;
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 20px;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .search-sort-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .sort-options select {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .post-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-input-row {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .action-buttons,
    .author-actions {
        justify-content: center;
    }
    
    .post-title-detail {
        font-size: 2rem;
    }
    
    .write-post-form,
    .post-content,
    .comments-section {
        padding: 25px;
    }
    
    .post-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-category-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .community-header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .community-header h1 {
        font-size: 1.4rem;
    }
    
    .community-header p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .write-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .category-nav {
        padding: 10px;
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
    
    .search-sort-bar {
        padding: 10px;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .search-box input {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .sort-options select {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .post-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-category-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .post-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .post-stats {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    /* 게시물 조회 페이지 모바일 최적화 */
    .back-button-container {
        margin-bottom: 15px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .post-content {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .post-header-detail {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .post-title-detail {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .post-meta-detail {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .post-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .comments-section h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .comment-form {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .comment-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .comment-input-group input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .comment-content-group textarea {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 100px;
    }
    
    .comment-submit {
        text-align: center;
        margin-top: 15px;
    }
    
    .comment-submit .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .comment-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .comment-header {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .comment-author {
        font-size: 1rem;
    }
    
    .comment-date {
        font-size: 0.85rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: 90%;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-content input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .modal-buttons {
        gap: 10px;
    }
    
    .modal-buttons .btn {
        flex: 1;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px;
        margin: 15px;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-image {
        width: 100%;
        max-width: 200px;
    }
    
    /* 게시물 조회 페이지 480px 이하 최적화 */
    .back-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .post-content {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .post-header-detail {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .post-title-detail {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .post-meta-detail {
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .post-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .comments-section {
        padding: 15px;
    }
    
    .comments-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .comment-form {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .comment-input-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .comment-input-group input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .comment-content-group textarea {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-height: 80px;
    }
    
    .comment-submit {
        margin-top: 12px;
    }
    
    .comment-submit .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .comment-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .comment-header {
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .comment-author {
        font-size: 0.9rem;
    }
    
    .comment-date {
        font-size: 0.8rem;
    }
    
    .comment-content {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px;
        max-width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
    
    .modal-content input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .modal-buttons .btn {
        padding: 10px;
        font-size: 0.85rem;
    }
}
