/* 호주장터 통합 CSS - 모든 게시판 완전 동일 디자인 v3.0 */

/* CSS 변수 정의 */
:root {
    --primary: #ff6b35;
    --secondary: #ff8c42;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border-radius: 12px;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(255, 107, 53, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* 강제 스타일 적용 - 모든 게시판 동일 */
* {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 전체 강제 스타일 적용 */
* {
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif !important;
}

html,
body {
    font-family: 'Noto Sans KR', sans-serif !important;
    background: #f8f9fa !important;
    color: #333 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
}

/* 메인 콘텐츠 */
.main {
    flex: 1 !important;
    background: transparent !important;
}

/* 컨테이너 */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    background: transparent !important;
}

/* 네비게이션 - 강제 통일 */
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #f1f3f4 !important;
    padding: 1rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

.navbar * {
    font-family: 'Noto Sans KR', sans-serif !important;
}

.logo-container {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.logo-container:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

.logo-icon {
    font-size: 1.5rem !important;
    color: white !important;
    font-weight: bold !important;
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    margin-left: 0.5rem !important;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 0.2rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
}

.nav-link:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* 게시판 컨테이너 - 모든 게시판 완전 동일 */
.board-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    background: transparent !important;
}

.board-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
    background: transparent !important;
}

.board-header .board-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.board-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 0.5rem !important;
}

.board-subtitle {
    color: var(--gray) !important;
    font-size: 1.1rem !important;
}

/* 게시글 목록 - 모든 게시판 완전 동일 */
.post-list {
    background: white !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    border: 1px solid #e9ecef !important;
    min-height: 200px !important;
}

.post-item {
    padding: 1.5rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    background: white !important;
    min-height: 80px !important;
}

.post-item:hover {
    background: #f8f9fa !important;
    transform: translateX(4px) !important;
}

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

.post-item.pinned {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border-left: 4px solid #ffc107 !important;
}

.post-item.admin {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb) !important;
    border-left: 4px solid #17a2b8 !important;
}

.post-item.pinned.admin {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
    border-left: 4px solid #dc3545 !important;
}

.post-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.post-meta {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 0.9rem !important;
    color: var(--gray) !important;
}

.post-badges {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

.badge.pinned {
    background: #ffc107 !important;
    color: #212529 !important;
}

.badge.admin {
    background: #17a2b8 !important;
    color: white !important;
}

/* 빈 상태 - 모든 게시판 동일 */
.empty-state {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: var(--gray) !important;
    background: white !important;
}

.empty-state i {
    font-size: 4rem !important;
    color: #dee2e6 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.empty-state h3 {
    color: var(--dark) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.empty-state p {
    color: var(--gray) !important;
}

/* 글쓰기 버튼 - 모든 게시판 동일 */
.write-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    font-size: 1.6rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.write-btn:hover {
    transform: scale(1.08) rotate(5deg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    color: white !important;
}

.write-btn:active {
    transform: scale(0.95) !important;
}

/* 모달 스타일 - 모든 게시판 동일 */
.modal-content {
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid #e9ecef !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.modal-title {
    font-weight: 600 !important;
}

.modal-body h4 {
    font-weight: 600 !important;
    color: var(--dark) !important;
}

.alert {
    border-radius: 8px !important;
}

/* 버튼 스타일 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    color: white !important;
}

.btn {
    font-weight: 600 !important;
}

/* 폼 스타일 */
.form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
}

/* 게시글 보기 페이지 */
.post-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

.back-btn {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--gray) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
    transition: all 0.2s ease !important;
}

.back-btn:hover {
    color: var(--primary) !important;
    text-decoration: none !important;
    transform: translateX(-4px) !important;
}

.post-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
}

.post-header {
    padding: 2rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.post-body {
    padding: 2rem !important;
}

.post-content {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--dark) !important;
    margin-bottom: 2rem !important;
    white-space: pre-line !important;
    word-wrap: break-word !important;
}

.contact-section {
    background: transparent !important;
    border-radius: 12px !important;
    padding: 1.5rem 0 !important;
    margin-top: 2rem !important;
    border-top: 1px solid #e9ecef !important;
}

.contact-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: none !important;
}

.contact-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.contact-item i {
    width: auto !important;
    margin-right: 0 !important;
}

.contact-item a {
    color: var(--dark) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.contact-item a:hover {
    color: var(--primary) !important;
}

.openchat-btn {
    background: #fee500 !important;
    color: #3c1e1e !important;
    border: none !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.openchat-btn:hover {
    background: #fdd835 !important;
    color: #3c1e1e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3) !important;
}

.post-footer {
    padding: 1.5rem 2rem !important;
    background: transparent !important;
    text-align: center !important;
}

/* 메인 페이지 스타일 */
.page-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.board-card {
    background: white !important;
    border-radius: var(--border-radius) !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    box-shadow: var(--shadow) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.board-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.board-card:hover::before {
    transform: scaleX(1) !important;
}

.board-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.board-card .board-icon {
    font-size: 3.5rem !important;
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.board-card:hover .board-icon {
    transform: scale(1.1) !important;
}

.board-card h3 {
    color: var(--dark) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
}

.board-card p {
    color: var(--gray) !important;
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* ========================================
   게시판 헤더 & 검색 바 스타일
======================================== */

.modern-board-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem 0 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.modern-board-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.board-header-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.board-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.board-icon-wrapper {
    flex-shrink: 0;
}

.board-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.board-icon-large::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.board-info {
    flex: 1;
}

.board-title-modern {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.6rem 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.board-subtitle-modern {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.stat-item i {
    font-size: 0.95rem;
    color: var(--primary);
}

.stat-divider {
    color: #dee2e6;
    font-weight: 300;
}

/* 게시판 리스트 스타일 */
.modern-post-list {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f3f4;
}

.modern-post-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
}

.modern-post-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(255, 140, 66, 0.02));
    transform: translateX(4px);
}

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

.modern-post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.post-rank {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.modern-post-item:hover .post-rank {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.05);
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
}

.post-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.modern-post-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.modern-post-item:hover .modern-post-title {
    color: var(--primary);
}

.post-actions {
    flex-shrink: 0;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
}

.view-count i {
    color: #17a2b8;
}

.post-preview {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.modern-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modern-post-meta i {
    font-size: 0.9rem;
}

.modern-empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 3rem;
    color: #adb5bd;
}

.modern-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modern-empty-state p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 검색 바 스타일 */
.board-search-bar {
    width: 100%;
}

.search-form-inline {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    pointer-events: none;
}

.search-input-inline {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input-inline:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.search-input-inline::placeholder {
    color: #adb5bd;
}

.search-btn-inline {
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-btn-inline i {
    font-size: 0.95rem;
}

/* 모바일 헤더 최적화 - 심플하고 컴팩트 */
@media (max-width: 768px) {
    .modern-board-header {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin: 1rem 0.5rem;
    }

    .board-header-content {
        gap: 1rem;
    }

    /* 헤더 - 아이콘 숨기고 제목만 */
    .board-title-section {
        gap: 0;
        justify-content: center;
    }

    .board-icon-wrapper {
        display: none;
    }

    .board-info {
        text-align: center;
    }

    .board-icon-large {
        display: none;
    }

    .board-title-modern {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 0;
    }

    /* 부제목 완전히 숨김 */
    .board-subtitle-modern {
        display: none;
    }

    .stat-item {
        display: none;
    }

    /* 모바일 검색 - 왼쪽 정렬 */
    .search-form-inline {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }

    .search-input-wrapper {
        flex: 1;
    }

    .search-input-inline {
        padding: 0.7rem 0.7rem 0.7rem 2.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .search-input-wrapper i {
        left: 0.8rem;
        font-size: 1rem;
    }

    .search-btn-inline {
        padding: 0.7rem 0.85rem;
        justify-content: center;
        font-size: 0.9rem;
        border-radius: 10px;
        flex-shrink: 0;
        min-width: 44px;
    }

    .search-btn-inline span {
        display: none;
    }

    .search-btn-inline i {
        margin: 0;
        font-size: 1.05rem;
    }

    /* 모바일 리스트 - 컴팩트 */
    .modern-post-item {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1rem;
    }

    .post-rank {
        display: none;
    }

    .post-header-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modern-post-title {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.4;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .post-preview {
        font-size: 0.85rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .modern-post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .meta-left {
        display: flex;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .modern-post-meta span {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .modern-post-meta i {
        font-size: 0.85rem;
    }

    /* 게시판 태그 모바일에서 숨김 */
    .meta-right {
        display: none;
    }

    .board-tag {
        display: none;
    }
}

.search-form-inline {
    flex-direction: column;
    gap: 0.6rem;
}

.search-input-inline {
    padding: 0.8rem 0.8rem 0.8rem 2.8rem;
    font-size: 0.95rem;
}

.search-input-wrapper i {
    left: 0.8rem;
    font-size: 1rem;
}

.search-btn-inline {
    padding: 0.8rem 1.2rem;
    justify-content: center;
    font-size: 0.95rem;
}


/* ========================================
   최근 게시글 섹션 - 완전히 새로운 디자인
======================================== */

.recent-posts-info-section {
    margin: 3rem 0;
}

.recent-posts-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f3f4;
}

.recent-posts-list {
    padding: 0;
}

.modern-post-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
}

.modern-post-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(255, 140, 66, 0.02));
    transform: translateX(4px);
}

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

.modern-post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--category-color, #ff6b35);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.post-category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    min-width: 95px;
}

.post-category>div:first-child {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modern-post-item:hover .category-icon {
    transform: scale(1.05);
}

.category-name {
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    line-height: 1;
}

.post-number {
    display: flex;
    align-items: center;
}

.number-badge {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.post-main {
    flex: 1;
    min-width: 0;
}

.post-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-title-link:hover {
    text-decoration: none;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.modern-post-item:hover .post-title {
    color: var(--category-color, #ff6b35);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    font-size: 0.9rem;
}

.post-time {
    color: #6c757d;
}

.post-views {
    color: #17a2b8;
}

.empty-posts-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-posts-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-posts-state h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.empty-posts-state p {
    color: #6c757d;
    margin: 0;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modern-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .post-category {
        display: none;
    }

    .category-icon {
        display: none;
    }

    .category-name {
        display: none;
    }

    .post-title {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-meta {
        font-size: 0.8rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    /* 헤더 */
    .modern-board-header {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }

    .board-title-modern {
        font-size: 1.3rem;
    }

    .search-input-inline {
        padding: 0.65rem 0.65rem 0.65rem 2.3rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .search-input-wrapper i {
        left: 0.7rem;
        font-size: 0.95rem;
    }

    .search-btn-inline {
        padding: 0.65rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-width: 40px;
    }

    .search-btn-inline i {
        font-size: 1rem;
    }

    /* 리스트 */
    .modern-post-item {
        padding: 0.9rem;
        gap: 0.5rem;
    }

    .post-rank {
        display: none;
    }

    .post-category {
        display: none;
    }

    .category-icon {
        display: none;
    }

    .category-name {
        display: none;
    }

    .post-title {
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .modern-post-title {
        font-size: 0.9rem;
    }

    .post-preview {
        font-size: 0.8rem;
    }

    .post-meta {
        font-size: 0.7rem;
        gap: 0.4rem;
    }

    .post-meta span {
        font-size: 0.7rem;
        gap: 0.2rem;
    }

    .post-meta i {
        font-size: 0.8rem;
    }

    .modern-post-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .meta-left {
        gap: 0.6rem;
    }

    .modern-post-meta span {
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .modern-post-meta i {
        font-size: 0.8rem;
    }

    /* 게시판 태그 모바일에서 숨김 */
    .meta-right {
        display: none;
    }

    .board-tag {
        display: none;
    }

    .empty-posts-state {
        padding: 3rem 1.5rem;
    }

    .empty-posts-state i {
        font-size: 3rem;
    }

    .empty-posts-state h4 {
        font-size: 1.1rem;
    }

    .empty-posts-state p {
        font-size: 0.9rem;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem !important;
    }

    .board-container,
    .post-container {
        padding: 1rem !important;
    }

    .board-title {
        font-size: 2rem !important;
    }

    .board-card {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .board-card .board-icon {
        font-size: 3rem !important;
    }

    .post-item {
        padding: 1rem !important;
    }

    .post-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .write-btn {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 64px !important;
        height: 64px !important;
        font-size: 1.6rem !important;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25) !important;
    }

    .write-btn:active {
        transform: scale(0.95) !important;
    }

    .navbar-brand {
        font-size: 1.5rem !important;
    }

    .logo-container {
        width: 40px !important;
        height: 40px !important;
    }

    .logo-icon {
        font-size: 1.3rem !important;
    }

    .post-header,
    .post-body {
        padding: 1.5rem !important;
    }

    .contact-section {
        padding: 1rem !important;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.board-card {
    animation: fadeInUp 0.6s ease forwards !important;
}

.board-card:nth-child(1) {
    animation-delay: 0.1s !important;
}

.board-card:nth-child(2) {
    animation-delay: 0.2s !important;
}

.board-card:nth-child(3) {
    animation-delay: 0.3s !important;
}

.board-card:nth-child(4) {
    animation-delay: 0.4s !important;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* 링크 스타일 */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* 디버깅 정보 스타일 */
.debug-info {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-top: 20px !important;
}

/* 유틸리티 클래스 */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* 테이블 스타일 (시스템 점검용) */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
}

th,
td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
}

th {
    background-color: #f2f2f2 !important;
}

/* 최종 강제 적용 - 모든 요소 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select,
label,
li,
td,
th {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* =
=======================================
   강제 통일 스타일 시스템 v3.0
   모든 게시판에서 동일한 디자인 보장
======================================== */

/* 전체 페이지 강제 스타일 */
html,
body {
    font-family: 'Noto Sans KR', sans-serif !important;
    background: #f8f9fa !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 네비게이션 강제 통일 */
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #f1f3f4 !important;
    padding: 1rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 0.2rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
}

.nav-link:hover {
    background: #ff6b35 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* 게시판 컨테이너 강제 통일 */
.board-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    background: transparent !important;
}

.board-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
    background: transparent !important;
}

.board-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
}

.board-subtitle {
    color: #6c757d !important;
    font-size: 1.1rem !important;
}

/* 게시글 목록 강제 통일 */
.post-list {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    border: 1px solid #e9ecef !important;
}

.post-item {
    padding: 1.5rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    background: white !important;
}

.post-item:hover {
    background: #f8f9fa !important;
    transform: translateX(4px) !important;
}

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

.post-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.post-meta {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 0.9rem !important;
    color: #6c757d !important;
}

/* 빈 상태 강제 통일 */
.empty-state {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: #6c757d !important;
    background: white !important;
}

.empty-state i {
    font-size: 4rem !important;
    color: #dee2e6 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.empty-state h3 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}



/* 푸터 강제 통일 */
.modern-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    margin-top: auto !important;
}

.footer-chat-section {
    padding: 1rem 0 !important;
    text-align: center !important;
    border-bottom: 1px solid #e9ecef !important;
}

.chat-links {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.5rem !important;
}

.chat-link {
    display: inline-flex !important;
    align-items: center !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.8rem !important;
    text-decoration: none !important;
    color: #6c757d !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.chat-link:hover {
    border-color: #ff6b35 !important;
    color: #ff6b35 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.footer-info {
    padding: 1rem 0 !important;
    text-align: center !important;
}

.footer-links {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
}

.footer-link {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.footer-link:hover {
    color: #ff6b35 !important;
    text-decoration: none !important;
}

.copyright {
    color: #adb5bd !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* 모든 텍스트 요소 강제 폰트 적용 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select,
label,
li,
td,
th,
.navbar-brand,
.nav-link,
.board-title,
.board-subtitle,
.post-title,
.post-meta,
.empty-state,
.chat-link,
.footer-link,
.copyright {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 배너 광고 스타일 */
.banner-ad {
    margin: 1rem 0 !important;
}

.banner-ad * {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 모바일 최적화 반응형 디자인 */
@media (max-width: 768px) {

    /* 컨테이너 최적화 */
    .board-container {
        padding: 0.5rem !important;
        margin: 0 !important;
    }

    .container {
        padding: 0 0.5rem !important;
    }

    /* 헤더 최적화 - 모바일 가독성 개선 */
    .board-header {
        padding: 2rem 1.5rem !important;
        margin: 0.5rem 0 1.5rem 0 !important;
        border-radius: 18px !important;
        color: white !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .board-header::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.1) !important;
        z-index: 0 !important;
    }

    .board-title {
        font-size: 1.7rem !important;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
        position: relative !important;
        z-index: 1 !important;
        font-weight: 700 !important;
    }

    .board-subtitle {
        font-size: 0.95rem !important;
        opacity: 0.95 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .board-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)) !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* 게시글 목록 최적화 */
    .post-list {
        padding: 0.6rem !important;
        border-radius: 16px !important;
        margin: 0 0.5rem 1rem 0.5rem !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .post-item {
        padding: 0.8rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.6rem !important;
        border: 1px solid #f1f3f4 !important;
        background: white !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    }

    .post-item:hover {
        transform: none !important;
        background: #f8f9fa !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .post-item:last-child {
        margin-bottom: 0 !important;
    }

    /* 게시물 간 간격 최적화 */
    .post-item+.post-item {
        margin-top: 0.6rem !important;
    }

    /* 제목 최적화 */
    .post-title {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 메타 정보 최적화 - 한 줄 레이아웃 */
    .post-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-top: 0.6rem !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .post-meta span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        background: #f8f9fa !important;
        padding: 0.35rem 0.6rem !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        color: #495057 !important;
        border: 1px solid #e9ecef !important;
        transition: all 0.2s ease !important;
        box-shadow: none !important;
    }

    .post-meta span:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .post-meta span i {
        margin-right: 0.3rem !important;
        font-size: 0.75rem !important;
        opacity: 1 !important;
    }

    /* 각 메타 정보별 색상 구분 */
    .post-meta span:nth-child(1) {
        border-left: none !important;
    }

    .post-meta span:nth-child(1) i {
        color: #ff6b35 !important;
    }

    .post-meta span:nth-child(2) {
        border-left: none !important;
    }

    .post-meta span:nth-child(2) i {
        color: #6c757d !important;
    }

    .post-meta span:nth-child(3) {
        border-left: none !important;
    }

    .post-meta span:nth-child(3) i {
        color: #17a2b8 !important;
    }

    .post-meta span:nth-child(4) {
        border-left: none !important;
    }

    .post-meta span:nth-child(4) i {
        color: #dc3545 !important;
    }

    .post-meta span:nth-child(5) {
        border-left: none !important;
        color: #856404 !important;
        background: #fff3cd !important;
    }

    .post-meta span:nth-child(5) i {
        color: #856404 !important;
    }

    /* 배지 최적화 */
    .post-badges {
        margin-bottom: 0.5rem !important;
        gap: 0.3rem !important;
    }

    .badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
    }

    .badge.pinned {
        background: linear-gradient(135deg, #ffc107, #ffca2c) !important;
        color: #212529 !important;
        box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3) !important;
    }

    .badge.admin {
        background: linear-gradient(135deg, #17a2b8, #20c997) !important;
        color: white !important;
        box-shadow: 0 1px 3px rgba(23, 162, 184, 0.3) !important;
    }

    /* 네비게이션 최적화 */
    .navbar {
        padding: 0.8rem 0 !important;
    }

    .navbar-brand {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
    }

    .logo-container {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    .logo-image {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    /* 글쓰기 버튼 최적화 */
    .write-btn {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }

    .write-btn:hover {
        transform: none !important;
    }

    .write-btn:active {
        transform: scale(0.92) !important;
    }

    /* 빈 상태 최적화 */
    .empty-state {
        padding: 3rem 1.5rem !important;
    }

    .empty-state i {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }

    .empty-state h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    .empty-state p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* 푸터 최적화 */
    .chat-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        padding: 0 1rem !important;
    }

    .chat-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    .footer-link {
        text-align: center !important;
        padding: 0.3rem !important;
    }

    .copyright {
        font-size: 0.7rem !important;
        padding: 0.5rem !important;
    }
}

/* 초소형 모바일 (360px 이하) 최적화 */
@media (max-width: 360px) {
    .board-container {
        padding: 0.25rem !important;
    }

    .board-header {
        padding: 1.2rem 0.8rem !important;
        margin: 0.25rem 0 0.8rem 0 !important;
    }

    .board-title {
        font-size: 1.4rem !important;
    }

    .board-subtitle {
        font-size: 0.8rem !important;
    }

    .post-list {
        padding: 0.6rem !important;
        margin: 0 0.25rem 0.8rem 0.25rem !important;
    }

    .post-item {
        padding: 0.8rem !important;
    }

    .post-title {
        font-size: 1rem !important;
    }

    .post-meta {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.3rem !important;
        padding: 0.5rem !important;
    }

    .post-meta span {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.65rem !important;
        border-radius: 6px !important;
    }

    .post-meta span i {
        font-size: 0.6rem !important;
        margin-right: 0.25rem !important;
    }

    .chat-links {
        grid-template-columns: 1fr !important;
        gap: 0.4rem !important;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
        gap: 0.3rem !important;
    }
}

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .post-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    .post-item:active {
        background: rgba(0, 0, 0, 0.05) !important;
        transform: scale(0.98) !important;
    }

    .chat-link:active,
    .footer-link:active {
        background: rgba(255, 107, 53, 0.1) !important;
        transform: scale(0.95) !important;
    }
}

/* 가로 모드 최적화 */
@media (max-width: 768px) and (orientation: landscape) {
    .board-header {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .board-title {
        font-size: 1.5rem !important;
    }

    .board-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* 최종 강제 적용 - 모든 요소 */
* {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 게시판별 색상 강제 적용 */
.board-icon[style*="color: #ff6b35"] {
    color: #ff6b35 !important;
}

.board-icon[style*="color: #28a745"] {
    color: #28a745 !important;
}

.board-icon[style*="color: #17a2b8"] {
    color: #17a2b8 !important;
}

.board-icon[style*="color: #6f42c1"] {
    color: #6f42c1 !important;
}

.write-btn[style*="background: #ff6b35"] {
    background: #ff6b35 !important;
}

.write-btn[style*="background: #28a745"] {
    background: #28a745 !important;
}

.write-btn[style*="background: #17a2b8"] {
    background: #17a2b8 !important;
}

.write-btn[style*="background: #6f42c1"] {
    background: #6f42c1 !important;
}

/* 디버그 정보 스타일 */
.debug-info {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-top: 20px !important;
    border: 1px solid #e9ecef !important;
}

/* 로고 이미지 스타일 */
.logo-image {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

/* 로고 컨테이너 스타일 수정 */
.logo-container {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

.logo-container:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

/*
 모던 게시판 디자인 */
.modern-board-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.modern-board-header {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.board-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.board-icon-wrapper {
    flex-shrink: 0;
}

.board-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.board-info {
    flex: 1;
}

.board-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.board-stats {
    display: flex;
    gap: 2rem;
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 모던 게시글 리스트 */
.modern-post-list {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-post-item {
    display: flex;
    padding: 1.8rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
}

.modern-post-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.post-rank {
    flex-shrink: 0;
    margin-right: 1.5rem;
    display: flex;
    align-items: flex-start;
    padding-top: 0.2rem;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
}

.post-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.modern-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-count i {
    font-size: 0.8rem;
}

.post-preview {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.meta-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-left i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.meta-right {
    display: flex;
    align-items: center;
}

.board-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.board-tag i {
    font-size: 0.7rem;
}

/* 빈 상태 */
.modern-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-icon i {
    font-size: 3rem;
    color: #6c757d;
}

.modern-empty-state h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modern-empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 모바일 반응형 - 완전히 새로운 디자인 */
@media (max-width: 768px) {
    .modern-board-container {
        padding: 1rem 0.5rem;
    }

    .modern-board-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .board-header-content {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: center;
    }

    .board-icon-large {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .board-title-modern {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .board-stats {
        justify-content: flex-start;
        gap: 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .modern-post-list {
        border-radius: 16px;
        margin: 0 0.5rem;
    }

    /* 모바일 게시글 아이템 - 카드 스타일 */
    .modern-post-item {
        display: block;
        padding: 1.2rem;
        border-radius: 0;
        position: relative;
    }

    .modern-post-item:hover {
        transform: none;
        background: #f8f9fa;
    }

    .post-rank {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
    }

    .rank-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        border-radius: 6px;
    }

    .post-content-wrapper {
        padding-right: 2.5rem;
    }

    .post-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }

    .modern-post-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .post-actions {
        align-self: flex-end;
        margin-top: -1.5rem;
    }

    .view-count {
        font-size: 0.75rem;
        background: rgba(108, 117, 125, 0.1);
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
    }

    .post-preview {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: #6c757d;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 모바일 메타 정보 - 깔끔한 배치 */
    .modern-post-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.8rem;
        border-top: 1px solid #f1f3f4;
        font-size: 0.75rem;
    }

    .meta-left {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }

    .meta-left span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: #6c757d;
    }

    .meta-left i {
        font-size: 0.7rem;
        width: 12px;
        text-align: center;
    }

    .meta-right {
        flex-shrink: 0;
    }

    .board-tag {
        padding: 0.25rem 0.6rem;
        border-radius: 8px;
        font-size: 0.65rem;
        font-weight: 600;
    }

    .board-tag i {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .modern-board-container {
        padding: 0.5rem 0.25rem;
    }

    .modern-board-header {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
        border-radius: 12px;
    }

    .board-header-content {
        gap: 0.8rem;
    }

    .board-icon-large {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 10px;
    }

    .board-title-modern {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .board-stats {
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .modern-post-list {
        margin: 0 0.25rem;
        border-radius: 12px;
    }

    .modern-post-item {
        padding: 1rem;
        border-bottom: 1px solid #f1f3f4;
    }

    .post-content-wrapper {
        padding-right: 2rem;
    }

    .rank-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .modern-post-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 2;
    }

    .post-preview {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 1;
        color: #6c757d;
    }

    .modern-post-meta {
        padding-top: 0.6rem;
        font-size: 0.7rem;
    }

    .meta-left {
        gap: 0.2rem;
    }

    .meta-left span {
        gap: 0.2rem;
    }

    .meta-left i {
        font-size: 0.65rem;
        width: 10px;
    }

    .board-tag {
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        font-size: 0.6rem;
    }

    .board-tag i {
        font-size: 0.55rem;
    }

    /* 빈 상태 모바일 최적화 */
    .modern-empty-state {
        padding: 2rem 1rem;
    }

    .empty-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .empty-icon i {
        font-size: 2rem;
    }

    .modern-empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .modern-empty-state p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* 모바일 터치
 최적화 */
@media (max-width: 768px) {

    /* 터치 영역 최적화 */
    .modern-post-item {
        min-height: 120px;
        padding: 1.2rem;
        margin-bottom: 0.5rem;
        border-radius: 12px !important;
        border: 1px solid #f1f3f4;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .modern-post-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-color: #e9ecef;
    }

    .modern-post-item:last-child {
        border-bottom: 1px solid #f1f3f4;
        margin-bottom: 0;
    }

    /* 순위 배지 개선 */
    .post-rank {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
    }

    .rank-number {
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
        box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
        font-weight: 600;
    }

    /* 제목과 내용 간격 개선 */
    .post-content-wrapper {
        padding-right: 2.2rem;
    }

    .modern-post-title {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.6rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .post-preview {
        background: #f8f9fa;
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        border-left: 3px solid #ff6b35;
        margin-bottom: 0.8rem;
        font-style: italic;
    }

    /* 메타 정보 카드 스타일 */
    .modern-post-meta {
        background: #f8f9fa;
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        margin-top: 0.8rem;
        border-top: none;
    }

    .meta-left span {
        padding: 0.3rem 0.5rem;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 500;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        border: 1px solid #e9ecef;
    }

    .meta-left span:first-child {
        color: #ff6b35;
        border-color: #ff6b35;
        background: rgba(255, 107, 53, 0.05);
    }

    .meta-left span:last-child {
        color: #6c757d;
    }

    .board-tag {
        background: white;
        border: 1px solid currentColor;
        font-weight: 600;
    }
}

/* 초소형 모바일 최적화 */
@media (max-width: 400px) {
    .modern-board-header {
        padding: 1rem;
    }

    .board-header-content {
        gap: 0.6rem;
    }

    .board-icon-large {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 8px;
    }

    .board-title-modern {
        font-size: 1.3rem;
    }

    .board-stats {
        font-size: 0.7rem;
        gap: 0.6rem;
    }

    .modern-post-item {
        padding: 1rem;
        min-height: 100px;
    }

    .post-content-wrapper {
        padding-right: 1.8rem;
    }

    .rank-number {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        border-radius: 4px;
    }

    .modern-post-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .post-preview {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.6rem;
    }

    .modern-post-meta {
        padding: 0.4rem 0.6rem;
        margin-top: 0.6rem;
    }

    .meta-left {
        gap: 0.4rem;
    }

    .meta-left span {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .board-tag {
        padding: 0.15rem 0.4rem;
        font-size: 0.55rem;
        border-radius: 4px;
    }
}

/* ==
======================================
   모던 게시판 디자인 - 모바일 최적화 v3.0
======================================== */

/* 모던 게시판 컨테이너 */
.modern-board-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    background: transparent !important;
}

/* 모던 게시판 헤더 */
.modern-board-header {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-board-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.board-header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
}

.board-icon-wrapper {
    flex-shrink: 0 !important;
}

.board-icon-large {
    width: 80px !important;
    height: 80px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.board-info {
    text-align: left !important;
}

.board-title-modern {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin: 0 0 0.5rem 0 !important;
}

.board-stats {
    display: flex !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    color: var(--gray) !important;
}

.stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

/* 모던 게시글 리스트 */
.modern-post-list {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
}

/* 모던 게시글 아이템 */
.modern-post-item {
    padding: 2rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: white !important;
}

.modern-post-item:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

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

.post-content-wrapper {
    position: relative !important;
}

.post-rank {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.post-header-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
    padding-right: 50px !important;
}

.modern-post-title {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    flex: 1 !important;
}

.post-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: 1rem !important;
}

.view-count {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    color: var(--gray) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.post-preview {
    background: transparent !important;
    border-left: 3px solid var(--board-color, #ff6b35) !important;
    padding: 0 0 0 0.8rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-style: normal !important;
    color: var(--gray) !important;
    line-height: 1.5 !important;
}

.modern-post-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 1.5rem !important;
}

.meta-left {
    display: flex !important;
    gap: 1rem !important;
}

.meta-left span {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.meta-left .author {
    color: #2c3e50 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.meta-left .post-date {
    color: var(--gray) !important;
}

.meta-right .board-tag {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* 모던 빈 상태 */
.modern-empty-state {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: var(--gray) !important;
}

.empty-icon {
    font-size: 4rem !important;
    color: #dee2e6 !important;
    margin-bottom: 1.5rem !important;
}

.modern-empty-state h3 {
    color: var(--dark) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.modern-empty-state p {
    color: var(--gray) !important;
    margin-bottom: 2rem !important;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modern-board-container {
        padding: 0.5rem !important;
    }

    /* 모바일 헤더 최적화 */
    .modern-board-header {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }

    .board-header-content {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .board-info {
        text-align: center !important;
    }

    .board-icon-large {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
        border-radius: 15px !important;
    }

    .board-title-modern {
        font-size: 1.6rem !important;
    }

    .board-stats {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    /* 모바일 게시글 리스트 최적화 */
    .modern-post-list {
        border-radius: 12px !important;
        margin: 0 0.5rem 1rem 0.5rem !important;
    }

    .modern-post-item {
        padding: 1.2rem !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .modern-post-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* 모바일 순위 배지 최적화 */
    .post-rank {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        top: -5px !important;
        right: -5px !important;
    }

    .post-header-row {
        padding-right: 40px !important;
        margin-bottom: 0.8rem !important;
    }

    .modern-post-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .post-actions {
        margin-left: 0.5rem !important;
    }

    .view-count {
        font-size: 0.75rem !important;
    }

    /* 모바일 미리보기 최적화 */
    .post-preview {
        padding: 0.8rem !important;
        margin: 0.8rem 0 !important;
        font-size: 0.9rem !important;
        border-radius: 0 6px 6px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 모바일 메타 정보 카드 스타일 */
    .modern-post-meta {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: stretch !important;
        background: #f8f9fa !important;
        padding: 0.8rem !important;
        border-radius: 10px !important;
        margin-top: 1rem !important;
    }

    .meta-left {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .meta-left span {
        justify-content: center !important;
        padding: 0.6rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .meta-right {
        display: flex !important;
        justify-content: center !important;
    }

    .meta-right .board-tag {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
        border-radius: 15px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* 모바일 빈 상태 최적화 */
    .modern-empty-state {
        padding: 3rem 1rem !important;
    }

    .empty-icon {
        font-size: 3rem !important;
    }

    .modern-empty-state h3 {
        font-size: 1.3rem !important;
    }

    .modern-empty-state p {
        font-size: 0.9rem !important;
    }
}

/* 초소형 모바일 (400px 이하) */
@media (max-width: 400px) {
    .modern-board-header {
        padding: 1rem !important;
    }

    .board-title-modern {
        font-size: 1.4rem !important;
    }

    .board-icon-large {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }

    .modern-post-item {
        padding: 1rem !important;
    }

    .post-rank {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .modern-post-title {
        font-size: 1rem !important;
    }

    .post-preview {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
    }

    .meta-left span {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important;
    }

    .meta-right .board-tag {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.7rem !important;
    }
}

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .modern-post-item {
        min-height: 120px !important;
    }

    .modern-post-item:active {
        background: #e9ecef !important;
        transform: scale(0.98) !important;
    }

    .meta-left span,
    .meta-right .board-tag {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ========================================
   상세 페이지 모바일 최적화
======================================== */

/* 모바일 상세 페이지 - 768px 이하 */
@media (max-width: 768px) {
    .post-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .back-btn {
        margin: 1rem !important;
        padding: 0.8rem 1.2rem !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        display: inline-flex !important;
        font-size: 0.95rem !important;
    }

    .post-card {
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .post-header {
        padding: 1.5rem 1rem !important;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 140, 66, 0.02)) !important;
    }

    .category-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.85rem !important;
        margin-bottom: 1rem !important;
        display: inline-flex !important;
        gap: 0.35rem !important;
        border-radius: 14px !important;
    }

    .post-badges {
        margin-bottom: 0.8rem !important;
        gap: 0.4rem !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    .post-title {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.2rem !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    /* 메타 정보 모바일 최적화 */
    .post-meta-container {
        margin: 1rem 0 !important;
    }

    .post-meta-unified {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .meta-author {
        width: 100% !important;
        justify-content: center !important;
        padding-bottom: 0.8rem !important;
        border-bottom: 2px solid rgba(255, 107, 53, 0.15) !important;
    }

    .author-info {
        font-size: 0.95rem !important;
        gap: 0.5rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .author-info i {
        font-size: 1.2rem !important;
    }

    .meta-stats {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
        justify-content: stretch !important;
    }

    .date-info,
    .views-stat,
    .likes-stat {
        font-size: 0.8rem !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: row !important;
        gap: 0.3rem !important;
        text-align: left !important;
        justify-content: flex-start !important;
        min-height: auto !important;
    }

    .date-info i,
    .views-stat i,
    .likes-stat i {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    /* 본문 최적화 */
    .post-body {
        padding: 1.5rem 1rem !important;
    }

    .post-image {
        margin: 0 -1rem 1.5rem -1rem !important;
    }

    .post-image img {
        border-radius: 0 !important;
        width: 100% !important;
    }

    .post-content {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        color: #2c3e50 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    /* 핫딜 링크 섹션 모바일 최적화 */
    .hotdeal-link-section {
        padding: 1.2rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 12px !important;
    }

    .link-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    .link-container {
        padding: 1rem !important;
    }

    .link-preview {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .link-info {
        order: 1 !important;
    }

    .link-url {
        font-size: 0.85rem !important;
        word-break: break-all !important;
    }

    .link-description {
        font-size: 0.85rem !important;
    }

    .link-action {
        order: 2 !important;
        width: 100% !important;
    }

    .hotdeal-link-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    /* 연락처 섹션 모바일 최적화 */
    .contact-section {
        padding: 1.2rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 12px !important;
    }

    .contact-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-item {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
        border-radius: 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .contact-item i {
        margin: 0 !important;
        font-size: 1.5rem !important;
    }

    .contact-item a {
        font-size: 0.95rem !important;
    }

    .kakao-contact-btn,
    .openchat-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    /* 이전글/다음글 네비게이션 */
    .nav-post {
        margin-bottom: 1rem !important;
    }

    .nav-post-link {
        font-size: 0.9rem !important;
        display: block !important;
        padding: 0.8rem !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
    }

    /* 푸터 최적화 */
    .post-footer {
        padding: 1.5rem 1rem !important;
    }

    .like-section {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    #likeBtn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        order: -1 !important;
    }
}

/* 초소형 모바일 - 480px 이하 */
@media (max-width: 480px) {
    .back-btn {
        margin: 0.8rem !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .post-header {
        padding: 1.2rem 0.8rem !important;
    }

    .category-badge {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
        gap: 0.3rem !important;
        border-radius: 12px !important;
    }

    .post-title {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
    }

    .post-meta-unified {
        padding: 0.8rem !important;
    }

    .author-info {
        font-size: 0.85rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .author-info i {
        font-size: 1rem !important;
    }

    .date-info,
    .views-stat,
    .likes-stat {
        font-size: 0.7rem !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-height: auto !important;
    }

    .date-info i,
    .views-stat i,
    .likes-stat i {
        font-size: 1rem !important;
    }

    .post-body {
        padding: 1.2rem 0.8rem !important;
    }

    .post-content {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .hotdeal-link-section,
    .contact-section {
        padding: 1rem !important;
        margin: 1.2rem 0 !important;
    }

    .link-title,
    .contact-title {
        font-size: 1rem !important;
    }

    .hotdeal-link-btn,
    .kakao-contact-btn {
        padding: 0.9rem 1.2rem !important;
        font-size: 0.95rem !important;
    }

    #likeBtn {
        padding: 0.9rem 1.2rem !important;
        font-size: 1rem !important;
    }
}

/* ========================================
   검색 페이지 기본 스타일
======================================== */

.search-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.search-title i {
    color: #ff6b35;
}

.search-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.search-term {
    color: #ff6b35;
    font-weight: 600;
}

.result-count {
    color: #28a745;
    font-weight: 600;
}

.search-form-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.board-filter {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    min-width: 140px;
    cursor: pointer;
}

.board-filter:focus {
    outline: none;
    border-color: #ff6b35;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.board-badge.hotdeal {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.board-badge.secondhand {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.board-badge.sharerent {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.result-time {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.result-title mark {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
}

.result-preview {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-preview mark {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.result-url {
    font-size: 0.8rem;
    color: #28a745;
    font-family: monospace;
}

.result-arrow {
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.search-result-item:hover .result-arrow {
    transform: translateX(4px);
}

.no-results,
.search-guide {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon,
.guide-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.no-results-icon i,
.guide-icon i {
    font-size: 2rem;
    color: #6c757d;
}

.no-results h3,
.search-guide h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-tips {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.search-tips h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    padding: 0.5rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.search-tips li::before {
    content: '•';
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.popular-searches {
    margin-top: 2rem;
}

.popular-searches h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.search-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.search-tag:hover {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: white;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ff6b35;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.pagination-info {
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
}

/* ========================================
   검색 페이지 모바일 최적화
======================================== */

/* 모바일 검색 페이지 - 768px 이하 */
@media (max-width: 768px) {
    .search-header {
        margin: 1.5rem 0 2rem 0 !important;
        padding: 0 1rem !important;
    }

    .search-title {
        font-size: 1.8rem !important;
        gap: 0.5rem !important;
    }

    .search-title i {
        font-size: 1.8rem !important;
    }

    .search-subtitle {
        font-size: 1rem !important;
    }

    .search-form-container {
        padding: 0 1rem !important;
        margin-bottom: 2rem !important;
    }

    .search-input-group {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .search-input-wrapper {
        order: 1 !important;
    }

    .search-input {
        padding: 1rem 1rem 1rem 3rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    .search-icon {
        left: 1rem !important;
        font-size: 1rem !important;
    }

    .board-filter {
        order: 2 !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        min-width: unset !important;
    }

    .search-btn {
        order: 3 !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        min-width: unset !important;
    }

    /* 검색 결과 모바일 최적화 */
    .search-results {
        padding: 0 1rem !important;
    }

    .search-result-item {
        padding: 1.2rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }

    .result-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.6rem !important;
        margin-bottom: 1rem !important;
    }

    .board-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .result-time {
        font-size: 0.8rem !important;
    }

    .result-title {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.8rem !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    .result-preview {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .result-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.6rem !important;
        padding-top: 1rem !important;
    }

    .result-url {
        font-size: 0.75rem !important;
        word-break: break-all !important;
    }

    /* 검색 안내 모바일 최적화 */
    .no-results,
    .search-guide {
        padding: 3rem 1.5rem !important;
    }

    .no-results-icon,
    .guide-icon {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1.5rem !important;
    }

    .no-results-icon i,
    .guide-icon i {
        font-size: 1.8rem !important;
    }

    .no-results h3,
    .search-guide h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    .no-results p,
    .search-guide p {
        font-size: 0.95rem !important;
    }

    .search-tips {
        padding: 1.2rem !important;
        margin-top: 1.5rem !important;
    }

    .search-tips h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .search-tips li {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
    }

    .popular-searches {
        margin-top: 1.5rem !important;
    }

    .popular-searches h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .search-tags {
        gap: 0.6rem !important;
    }

    .search-tag {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.9rem !important;
    }

    /* 페이지네이션 모바일 최적화 */
    .pagination-container {
        margin-top: 2rem !important;
        padding: 0 1rem !important;
    }

    .pagination-nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.8rem !important;
    }

    .pagination-btn {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
        flex: 1 !important;
        justify-content: center !important;
    }

    .pagination-info {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: 80px !important;
        text-align: center !important;
    }
}

/* 초소형 모바일 검색 - 480px 이하 */
@media (max-width: 480px) {
    .search-header {
        margin: 1rem 0 1.5rem 0 !important;
    }

    .search-title {
        font-size: 1.5rem !important;
    }

    .search-subtitle {
        font-size: 0.9rem !important;
    }

    .search-input {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem !important;
        font-size: 0.95rem !important;
    }

    .search-icon {
        left: 0.9rem !important;
        font-size: 0.95rem !important;
    }

    .board-filter,
    .search-btn {
        padding: 0.9rem !important;
        font-size: 0.95rem !important;
    }

    .search-result-item {
        padding: 1rem !important;
    }

    .board-badge {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
    }

    .result-title {
        font-size: 1rem !important;
    }

    .result-preview {
        font-size: 0.85rem !important;
    }

    .no-results,
    .search-guide {
        padding: 2rem 1rem !important;
    }

    .no-results-icon,
    .guide-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .no-results-icon i,
    .guide-icon i {
        font-size: 1.5rem !important;
    }

    .no-results h3,
    .search-guide h3 {
        font-size: 1.2rem !important;
    }

    .search-tags {
        gap: 0.5rem !important;
    }

    .search-tag {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .pagination-btn {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    .pagination-info {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.85rem !important;
        min-width: 70px !important;
    }
}

/* =
=======================================
   게시판 리스트 & 헤더 - 최종 리디자인 v2.0
   ======================================== */

/* 게시판 헤더 - 새로운 디자인 */
.modern-board-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e9ecef !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-board-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ffa366) !important;
}

.board-title-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
}

.board-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
}

.board-title i {
    font-size: 2rem !important;
    background: linear-gradient(135deg, #ff6b35, #ff8c42) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.board-subtitle {
    font-size: 1.1rem !important;
    color: #6c757d !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* 게시글 리스트 컨테이너 */
.modern-post-list {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    border: 1px solid #f1f3f4 !important;
}

/* 게시글 아이템 - 새로운 디자인 */
.modern-post-list .modern-post-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.2rem !important;
    padding: 1.5rem 1.8rem !important;
    border-bottom: 1px solid #f8f9fa !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    background: white !important;
}

.modern-post-list .modern-post-item:hover {
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.08) !important;
}

.modern-post-list .modern-post-item:last-child {
    border-bottom: none !important;
}

.modern-post-list .modern-post-item::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: linear-gradient(180deg, #ff6b35, #ff8c42) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
}

.modern-post-list .modern-post-item:hover::before {
    transform: scaleY(1) !important;
}

/* 순위 번호 */
.modern-post-list .post-rank {
    flex-shrink: 0 !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
}

.modern-post-list .modern-post-item:hover .post-rank {
    background: linear-gradient(135deg, #ff6b35, #ff8c42) !important;
    color: white !important;
    border-color: #ff6b35 !important;
    transform: scale(1.1) rotate(-5deg) !important;
}

/* 게시글 내용 영역 */
.modern-post-list .post-content-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
}

.modern-post-list .post-header-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 0.8rem !important;
}

/* 제목 */
.modern-post-list .modern-post-title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    flex: 1 !important;
    transition: color 0.3s ease !important;
}

.modern-post-list .modern-post-item:hover .modern-post-title {
    color: #ff6b35 !important;
}

/* 미리보기 */
.modern-post-list .post-preview {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    padding-left: 0.8rem !important;
    border-left: 3px solid var(--board-color, #ff6b35) !important;
}

/* 메타 정보 */
.modern-post-list .modern-post-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.modern-post-list .meta-left,
.modern-post-list .meta-right {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.modern-post-list .meta-left span,
.modern-post-list .meta-right span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.85rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

.modern-post-list .meta-left span i {
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
}

/* 게시판 태그 */
.modern-post-list .board-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.modern-post-list .board-tag i {
    font-size: 0.85rem !important;
}

/* 조회수 */
.modern-post-list .view-count {
    padding: 0.3rem 0.7rem !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .modern-board-header {
        padding: 1.8rem 1.2rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.5rem !important;
    }

    .board-title {
        font-size: 1.8rem !important;
    }

    .board-title i {
        font-size: 1.6rem !important;
    }

    .board-subtitle {
        font-size: 0.95rem !important;
    }

    .modern-post-list .modern-post-item {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.2rem !important;
    }

    .modern-post-list .modern-post-item:hover {
        transform: translateX(0) translateY(-2px) !important;
    }

    .modern-post-list .post-rank {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .modern-post-list .modern-post-title {
        font-size: 1.05rem !important;
    }

    .modern-post-list .post-preview {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3 !important;
    }

    .modern-post-list .modern-post-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
    }

    .meta-left .author {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
        gap: 0.35rem !important;
    }

    .meta-left .author i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .modern-board-header {
        padding: 1.5rem 1rem !important;
        border-radius: 12px !important;
    }

    .board-title {
        font-size: 1.5rem !important;
    }

    .board-subtitle {
        font-size: 0.9rem !important;
    }

    .modern-post-list .modern-post-item {
        padding: 1rem !important;
    }

    .modern-post-list .post-rank {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .modern-post-list .modern-post-title {
        font-size: 0.95rem !important;
    }
}