/* ===============================================
   청춘드라이브 - 게시판2 전용 스타일 (style-board2.css)
   공통 스타일은 /sub/style.css와 /sub/style-component.css에서 처리
   =============================================== */

/* ===============================================
   Page Header 스타일 (도로연수와 동일)
   =============================================== */
.page-header {
    background: linear-gradient(135deg, var(--pink-medium) 0%, var(--pink-pastel) 100%);
    padding: 120px 0 60px;

    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '🚗';
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    animation: float 10s ease-in-out infinite;
}
/**/

.page-header::after {
    content: '🛣️';
    position: absolute;
    bottom: 20px;
    left: 10%;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(15deg);
    animation: float 10s ease-in-out infinite reverse;
}

.page-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.page-header h1::after {
    content: ' 💕';
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-dark);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 페이지 콘텐츠 상단 마진 제거 */
.page-content {
    margin-top: 0;
    min-height: calc(100vh - 76px);
    padding: 40px 0;
}

/* ===============================================
   Breadcrumb 게시판 전용 스타일
   =============================================== */
.breadcrumb {
    background: white;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.1);
    margin-bottom: 30px;
    display: inline-flex;
    border: 2px solid var(--pink-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "❤️";
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 0 10px;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===============================================
   Board Header (게시판 헤더)
   =============================================== */
.board-header, .faq-header {
    background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--pink-light);
}

.board-header::before, .faq-header::before {
    content: '📝';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 150px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.board-header::after, .faq-header::after {
    content: '💡';
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.board-header h1, .faq-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
    font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
    position: relative;
    z-index: 1;
}

.board-header h1 i, .faq-header h1 i {
    color: var(--primary-color);
    margin-right: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.board-header p, .faq-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* ===============================================
   상단 정보 및 버튼 섹션 (깔끔하게 수정)
   =============================================== */
.board-top-section {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.08);
    border: 1px solid var(--pink-light);
    margin-bottom: 20px;
}

.board-top-section .d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    min-height: 40px;
}

.board-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.board-info .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.board-info .text-muted {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    line-height: 1;
}

/* 버튼 스타일 개선 - 더 깔끔하게 */
.board-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    line-height: 1;
    margin: 0;
}

.board-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
    height: 32px;
    min-width: auto;
}

.board-actions .btn-primary {
    background: var(--gradient-main);
    border: none;
    font-weight: 500;
}

.board-actions .btn-outline-secondary,
.board-actions .btn-outline-warning,
.board-actions .btn-outline-info {
    border-width: 1px;
    font-weight: 400;
}

/* 드롭다운 버튼 */
.board-actions .dropdown .btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
}

/* ===============================================
   Search Section (게시판 검색)
   =============================================== */
.search-section, .faq-search {
    margin-bottom: 40px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    background: white;
    border: 2px solid var(--pink-light);
    border-radius: 50px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.search-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 10px 0;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

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

/* ===============================================
   Board List (게시판 목록) - 개선됨
   =============================================== */
.board-list {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.1);
    border: 2px solid var(--pink-light);
    margin-bottom: 40px;
}

.board-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.board-table thead {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
}

.board-table th {
    border: none;
    padding: 20px 15px;
    font-weight: 600;
    color: var(--accent-color);
    vertical-align: middle;
    word-wrap: break-word;
    font-size: 1rem;
    text-align: left;
}

.board-table th:first-child {
    text-align: left;
}

.board-table th:nth-child(2) {
    text-align: left;
    padding-left: 15px;
}

.board-table th:nth-child(3) {
    text-align: left;
    padding-left: 15px;
}

.board-table td {
    border: none;
    padding: 20px 15px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
    text-align: left;
}

.board-table td:nth-child(2) {
    text-align: left;
    padding-left: 15px;
}

.board-table td:nth-child(3) {
    text-align: left;
    padding-left: 15px;
}

.board-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--pink-light);
}

.board-table tbody tr:hover {
    background-color: #fff5f9;
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

.notice-row {
    background: linear-gradient(135deg, #fff5f9 0%, #ffeef5 100%) !important;
}

.notice-row:hover {
    background: linear-gradient(135deg, #ffeef5 0%, #ffe0ee 100%) !important;
}

/* ===============================================
   게시글 스타일 (제목 위치 조정)
   =============================================== */
.post-title {
    text-align: left;
    padding-left: 15px;
}

.post-title-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    word-break: break-word;
    margin-left: 0;
}

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

.title-wrapper {
    width: 100%;
}

.post-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-left: 0;
}

.post-meta {
    margin-left: 0;
    margin-top: 5px;
}

.comment-count {
    background: var(--info-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-badge {
    background: var(--warning-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    text-decoration: none;
    margin-right: 5px;
    white-space: nowrap;
}

/* ===============================================
   게시판 전용 뱃지 스타일
   =============================================== */
.badge-notice {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.badge-current {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-new {
    background: #ff6350;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: pulse 1.5s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.author-name {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
    text-align: left;
    display: block;
    padding-left: 15px;
}

.empty-state {
    padding: 60px 20px;
}

.empty-state i {
    opacity: 0.3;
}

/* ===============================================
   게시판 페이지네이션
   =============================================== */
.board-pagination, .pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--pink-light);
    background: white;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient-main);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* ===============================================
   글쓰기 버튼
   =============================================== */
.btn-write-board {
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
    margin-top: 20px;
}

.btn-write-board:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-write-board i {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
}

/* ===============================================
   버튼 hover 효과
   =============================================== */
.btn-outline-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-outline-secondary:hover {
    background-color: var(--pink-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* ===============================================
   드롭다운 메뉴 스타일
   =============================================== */
.dropdown-menu {
    border: 2px solid var(--pink-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.15);
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--pink-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* ===============================================
   반응형 - 게시판 전용 (수정됨)
   =============================================== */
@media (max-width: 992px) {
    .board-top-section {
        padding: 12px 18px;
    }

    .board-top-section .d-flex {
        gap: 12px;
    }

    .board-actions .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
        height: 30px;
    }

    .board-actions .dropdown .btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    /* Page Header 반응형 - PC 버전 스타일 유지 */
    .page-header {
        padding: 100px 0 50px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header h1::after {
        content: ' 💕';
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }

    .page-header::before {
        font-size: 6rem;
        top: 15px;
        right: 5%;
    }
    
    .page-header::after {
        font-size: 4.5rem;
        bottom: 15px;
        left: 5%;
    }
    
    /* 페이지 콘텐츠 */
    .page-content {
        padding: 30px 0;
    }

    /* Board Header 반응형 - PC 비율 유지 */
    .board-header, .faq-header {
        padding: 35px 25px;
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .board-header::before, .faq-header::before {
        font-size: 100px;
        top: -20px;
        right: -20px;
    }
    
    .board-header::after, .faq-header::after {
        font-size: 70px;
        bottom: -15px;
        left: -15px;
    }

    .board-header h1, .faq-header h1 {
        font-size: 2.2rem;
    }
    
    .board-header p, .faq-header p {
        font-size: 1rem;
    }

    /* Breadcrumb 반응형 - PC 스타일 유지 */
    .breadcrumb {
        padding: 15px 20px;
        border-radius: 30px;
        margin-bottom: 25px;
        font-size: 0.9rem;
        display: inline-flex;
        border: 2px solid var(--pink-light);
    }

    /* 상단 섹션 - PC 스타일 유지 */
    .board-top-section {
        padding: 12px 18px;
        border-radius: 12px;
        margin-bottom: 18px;
        box-shadow: 0 2px 8px rgba(255, 107, 157, 0.08);
        border: 1px solid var(--pink-light);
    }

    .board-top-section .d-flex {
        gap: 10px;
    }

    .board-info {
        gap: 8px;
    }

    .board-info .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .board-info .text-muted {
        font-size: 0.75rem;
    }

    .board-actions {
        gap: 4px;
    }

    .board-actions .btn-sm {
        padding: 6px 8px;
        font-size: 0.7rem;
        height: 28px;
    }

    .board-actions .dropdown .btn {
        width: 28px;
        height: 28px;
    }

    /* Search 반응형 - PC 스타일 유지 */
    .search-box {
        flex-direction: column;
        gap: 15px;
        padding: 18px 25px;
        border-radius: 35px;
        border: 2px solid var(--pink-light);
        box-shadow: 0 4px 18px rgba(255, 107, 157, 0.1);
    }

    .search-input {
        width: 100%;
    }

    /* 게시판 테이블 반응형 - PC 스타일 유지 */
    .board-list {
        border-radius: 20px;
        margin-bottom: 35px;
        box-shadow: 0 8px 25px rgba(252, 116, 166, 0.1);
        border: 2px solid var(--pink-light);
    }

    .board-table {
        table-layout: auto;
        font-size: 0.9rem;
    }

    .board-table th,
    .board-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .hide-mobile {
        display: none;
    }

    /* 게시글 제목 반응형 */
    .post-title-link {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .post-icons,
    .post-meta {
        margin-left: 0;
    }

    .sv_guest {
        margin-left: 0;
        font-size: 0.8rem;
    }
    
    .author-name {
        padding-left: 10px;
    }

    /* 배지 반응형 */
    .badge-new,
    .badge-notice,
    .badge-current {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .board-info .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 더 작은 화면 (576px 이하) 추가 최적화 - PC 스타일 비율 유지 */
@media (max-width: 576px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1::after {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .page-header::before {
        font-size: 5rem;
        top: 10px;
        right: 3%;
    }
    
    .page-header::after {
        font-size: 3.5rem;
        bottom: 10px;
        left: 3%;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Breadcrumb 소형 화면 최적화 */
    .breadcrumb {
        padding: 12px 18px;
        border-radius: 25px;
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    /* Board Header 소형 화면 */
    .board-header, .faq-header {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .board-header::before, .faq-header::before {
        font-size: 80px;
    }
    
    .board-header::after, .faq-header::after {
        font-size: 50px;
    }
    
    .board-header h1, .faq-header h1 {
        font-size: 1.8rem;
    }

    .board-top-section .d-flex {
        gap: 8px;
        flex-wrap: wrap;
    }

    .board-info {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .board-info .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .board-info .text-muted {
        font-size: 0.7rem;
    }

    .board-actions {
        justify-content: center;
        gap: 4px;
    }

    .board-actions .btn-sm {
        padding: 5px 8px;
        font-size: 0.65rem;
        height: 26px;
        min-width: 26px;
    }

    .board-actions .dropdown .btn {
        width: 26px;
        height: 26px;
    }

    .board-table th,
    .board-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .post-title-link {
        margin-left: 0;
        font-size: 0.85rem;
    }

    .post-icons,
    .post-meta {
        margin-left: 0;
    }
    
    .author-name {
        padding-left: 8px;
        font-size: 0.8rem;
    }

    /* 아이콘 버튼 최적화 */
    .board-actions .btn-sm:not(.btn-primary) .fas {
        margin: 0;
        font-size: 0.7rem;
    }
    
    /* 게시판 카드 최적화 */
    .board-header, .faq-header {
        padding: 20px 15px;
    }
    
    .board-header h1, .faq-header h1 {
        font-size: 1.6rem;
    }
}