/* ===================================
   Notice Page Styles
   =================================== */

/* Page Title */
.page-title {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Notice Content */
.notice-content {
    padding: 80px 0;
    background: var(--gray-50);
    min-height: 60vh;
}

/* Notice Controls */
.notice-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex: 1;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.notice-stats {
    color: var(--gray-700);
    font-size: 1rem;
}

.notice-stats strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.loading-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.loading-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Notice Table */
.notice-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table thead {
    background: var(--gray-100);
}

.notice-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--gray-200);
}

.notice-table td {
    padding: 18px 20px;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}

.notice-table tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.notice-table tbody tr:hover {
    background: var(--gray-50);
}

/* Table Columns */
.col-num {
    width: 80px;
    text-align: center;
}

.col-title {
    width: auto;
}

.col-author {
    width: 120px;
}

.col-date {
    width: 150px;
}

.col-views {
    width: 100px;
    text-align: center;
}

/* Notice Badge */
.notice-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.notice-badge.important {
    background: #fee;
    color: #e74c3c;
}

/* Notice Title in Table */
.notice-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-title-text {
    font-weight: 500;
    color: var(--gray-900);
}

.notice-title-text:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Notice Detail View */
.notice-detail-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Back Button */
.back-btn {
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 30px 30px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: var(--gray-200);
    transform: translateX(-5px);
}

/* Notice Header */
.notice-header {
    padding: 40px 40px 30px;
    border-bottom: 2px solid var(--gray-200);
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.notice-number {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
}

.notice-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.4;
}

.notice-info {
    display: flex;
    gap: 25px;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.notice-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-info i {
    color: var(--primary);
}

/* Notice Body */
.notice-body {
    padding: 40px;
}

.notice-text {
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1.05rem;
}

.notice-text p {
    margin-bottom: 15px;
}

.notice-text strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* Notice Footer */
.notice-footer {
    padding: 30px 40px;
    border-top: 2px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.btn-secondary {
    padding: 12px 30px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Notice Navigation */
.notice-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    flex: 1;
    padding: 15px 25px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn.prev {
    justify-content: flex-start;
}

.nav-btn.next {
    justify-content: flex-end;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .page-title h1 {
        font-size: 2rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    .notice-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .notice-stats {
        text-align: center;
    }

    /* Hide author column on tablet */
    .col-author,
    .notice-table td:nth-child(3) {
        display: none;
    }

    .notice-header {
        padding: 30px 25px 20px;
    }

    .notice-header h2 {
        font-size: 1.6rem;
    }

    .notice-body {
        padding: 30px 25px;
    }

    .notice-footer {
        padding: 20px 25px;
    }

    .notice-navigation {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .notice-content {
        padding: 40px 0;
    }

    .page-title {
        padding: 40px 0;
    }

    .page-title h1 {
        font-size: 24px;
    }

    /* Responsive Table */
    .col-date,
    .notice-table td:nth-child(4) {
        display: none;
    }

    .col-num {
        width: 60px;
    }

    .col-views {
        width: 80px;
    }

    .notice-table th,
    .notice-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .notice-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .notice-header {
        padding: 25px 20px 15px;
    }

    .notice-header h2 {
        font-size: 1.4rem;
    }

    .notice-info {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.85rem;
    }

    .notice-body {
        padding: 25px 20px;
    }

    .notice-text {
        font-size: 1rem;
    }

    .notice-footer {
        padding: 20px;
    }

    .back-btn {
        margin: 20px 20px 0;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
