/* ===============================================
   청춘드라이브 - 게시판 페이지 스타일 (style-board.css)
   =============================================== */

/* Board Page Background */
.board-page {
    background-image:
            radial-gradient(circle at 20% 80%, var(--pink-light) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, var(--pink-pastel) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(232, 249, 245, 0.3) 0%, transparent 50%);
}

/* ===============================================
   Page Content
   =============================================== */
.page-content {
    margin-top: 76px;
    min-height: calc(100vh - 76px);
    padding: 40px 0;
}

/* ===============================================
   Board Header
   =============================================== */
.board-header {
    background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--pink-light);
}

.board-header::before {
    content: '🚗';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.board-header::after {
    content: '✨';
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 40px;
    opacity: 0.3;
    animation: sparkle 2s ease-in-out infinite;
}

.board-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

.board-header h1 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.board-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===============================================
   Search Section
   =============================================== */
.search-section {
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.1);
    margin-bottom: 30px;
    border: 2px solid var(--pink-light);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-select {
    border: 2px solid var(--pink-light);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input {
    border: 2px solid var(--pink-light);
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
    background: white;
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-search i {
    margin-right: 5px;
}

/* ===============================================
   Board List
   =============================================== */
.board-list {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.1);
    border: 2px solid var(--pink-light);
}

.board-table {
    width: 100%;
    margin-bottom: 0;
}

.board-table thead {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
    border-bottom: 2px solid var(--border-color);
}

.board-table th {
    padding: 20px;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    border: none;
    font-size: 1.05rem;
}

.board-table td {
    padding: 25px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--pink-light);
}

.board-table tbody tr {
    transition: all 0.3s ease;
}

.board-table tbody tr:hover {
    background-color: #fff5f9;
    transform: scale(1.01);
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===============================================
   Badge Styles
   =============================================== */
.badge-notice {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
}

.badge-notice i {
    font-size: 0.9rem;
}

.badge-new {
    background: #ff8fab;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}

.badge-current {
    background: var(--accent-color);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-current i {
    font-size: 0.9rem;
}

/* ===============================================
   Post Elements
   =============================================== */
.post-title {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.post-title:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.views-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-light);
    background: var(--pink-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.views-count i {
    color: var(--primary-color);
}

/* ===============================================
   Write Button
   =============================================== */
.btn-write {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    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;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.btn-write:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-write i {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 50%;
}

/* ===============================================
   Post View
   =============================================== */
.post-view {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.1);
    border: 2px solid var(--pink-light);
}

.post-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--pink-light);
    padding: 5px 15px;
    border-radius: 20px;
}

.post-info i {
    color: var(--primary-color);
}

.post-content {
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 300px;
}

.post-content p {
    margin-bottom: 15px;
}

/* ===============================================
   Action Buttons
   =============================================== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--pink-light);
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-action.btn-list {
    background: var(--light-gray);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-action.btn-list:hover {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.btn-action.btn-list i {
    color: var(--primary-color);
}

.btn-action.btn-list:hover i {
    color: white;
}

.btn-action.btn-edit {
    background: #28a745;
    color: white;
}

.btn-action.btn-edit:hover {
    background: #218838;
}

.btn-action.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-action.btn-delete:hover {
    background: #c82333;
}

/* ===============================================
   Responsive - Board Page
   =============================================== */
@media (max-width: 768px) {
    .board-header h1 {
        font-size: 1.8rem;
    }

    .search-form {
        flex-direction: column;
        gap: 15px;
    }

    .search-input {
        width: 100%;
    }

    .board-table {
        font-size: 0.9rem;
    }

    .board-table th,
    .board-table td {
        padding: 15px 10px;
    }

    .hide-mobile {
        display: none;
    }

    .post-view {
        padding: 20px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn-action {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}