/* ==========================================================================
 * customer-notices.css — 공지사항 목록 페이지(/notices) 전용 스타일
 *  · customer.ts 인라인 <style> 에서 분리 (정적 CSS)
 * ========================================================================== */

/* 공지사항 목록 너비 확장 */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0px auto 80px;
    padding: 60px 0px;
    box-sizing: border-box;
}

.notice-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.notice-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}
/* PC에서만 hover 적용 */
@media (hover: hover) and (pointer: fine) {
    .notice-item:hover {
        background: #f8f9fa;
    }
}

/* 모바일 + PC 클릭 시 */
.notice-item:active {
    background: #f8f9fa;
}
.notice-item:last-child {
    border-bottom: none;
}
.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
}
.notice-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}
.notice-date {
    font-size: 14px;
    color: var(--text-light);
    text-align: right;
}
.notice-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}
.notice-badge-new {
    display: inline-block;
    padding: 4px 12px;
    background: red;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}
.notice-badge-new .badge-full { display: inline; }
.notice-badge-new .badge-short { display: none; }
@media (max-width: 768px) {
    .notice-badge-new .badge-full { display: none; }
    .notice-badge-new .badge-short { display: inline; }
}
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    background: white;
}
/*.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}*/
@media (hover: hover) and (pointer: fine) {
    .pagination a:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}
.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}
.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .notice-list {
        max-width: 1000px;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 60px 4px;
    }
    .notice-list {
        max-width: 100%;
    }
    .notice-item {
        padding: 20px 4px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 4px 60px;
    }
    .notice-item {
        grid-template-columns: 40px 1fr 80px;
        gap: 8px;
        padding: 20px 4px !important;
    }
    .notice-number {
        font-size: 18px;
    }
    .notice-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .notice-title {
        font-size: 18px;
    }
    .notice-date {
        font-size: 12px;
    }
    .notice-badge-new {
        padding: 3px 8px;
        font-size: 8px;
        margin-right: 6px;
    }
}
