/* =========================================================
   AABW 공지사항 목록 페이지 CSS

   이 파일은 notice.php에서 사용하던 인라인 style을 분리한 파일입니다.
   PHP는 데이터와 HTML 구조만 담당하고, 화면 디자인은 이 CSS 파일이 담당합니다.
========================================================= */

/* =========================================================
   1. 전체 기본 설정
========================================================= */
* {
    font-family: 'NanumSquareAc', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(8, 12, 25, 0.76), rgba(8, 12, 25, 0.88)),
        url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80') center / cover fixed;
}

/* =========================================================
   2. 왼쪽 플로팅 프로필 메뉴는 common/floating-profile.css에서 관리
========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.page-title {
    margin: 0;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}

.page-desc {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.75;
}

.container-wrap {
    position: relative;
    z-index: 5;
    padding: 110px 40px 40px;
}

.content-shell {
    width: min(1220px, calc(100% - 120px));
    margin: 0 auto;
    transform: none;
    transition: transform 0.25s ease, width 0.25s ease;
}

body.is-login .content-shell {
    transform: translateX(130px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
}

.page-desc {
    margin: 8px 0 0;
    font-size: 15px;
    color: rgba(255,255,255,0.72);
}

/* =========================================================
   5. 요약 카드
========================================================= */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card,
.panel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.summary-card {
    border-radius: 25px;
    padding: 20px;
}

.summary-label {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}

.summary-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

/* =========================================================
   6. 검색/필터 패널
========================================================= */
.panel {
    border-radius: 25px;
    padding: 20px 20px 15px 20px;
}

.toolbar-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.icon-btn i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.search-input,
.filter-select {
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    padding: 0 14px;
    outline: none;
    font-size:13px;
}

.search-input {
    width: 280px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.45);
}

.filter-select option {
    color: #000;
}

.action-btn {
    height: 40px;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    font-size: 13px;
}

.notice-write-btn {
    font-size: 15px;
    font-weight: 800;
}

.action-btn:hover {
    text-decoration: none;
}

.action-btn.primary {
    background: rgba(255,255,255,0.92);
    color: #000;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #000;
}

.action-btn.ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
}

.action-btn.ghost:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* =========================================================
   7. 공지사항 테이블
========================================================= */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.notice-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.notice-table th:nth-child(2),
.notice-table td:nth-child(2) {
    width: 55%;
}

.notice-table thead th {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}

.notice-table tbody tr {
    transition: background 0.25s ease;
}

.notice-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.notice-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    vertical-align: middle;
}

.notice-no {
    color: rgba(255,255,255,0.55);
    width: 90px;
}

.notice-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.notice-title a:hover {
    text-decoration: underline;
}

.notice-sub {
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    margin-top: 6px;
}

.badge-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.badge-notice.important {
    background: rgba(255,255,255,0.92);
    color: #000;
}

.badge-notice.normal {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
}

.empty-table-cell {
    text-align: center;
    padding: 30px !important;
    color: rgba(255,255,255,0.7);
}

/* =========================================================
   8. 페이지네이션 / 하단 정보
========================================================= */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 10px 0px 10px;
}

.table-info {
    color: rgba(255,255,255,0.68);
    font-size: 14px;
}

.pagination-custom {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-weight: 700;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active,
.page-btn:hover {
    background: rgba(255,255,255,0.92);
    color: #000;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================================
   9. 등장 애니메이션
========================================================= */
.content-motion {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
    filter: blur(8px);
    will-change: opacity, transform, filter;
}

body.motion-ready .content-motion {
    animation: revealContent 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.38s; }

@keyframes revealContent {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.99);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-motion {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}


/* 1700px ~ 1500px: 왼쪽 플로팅 메뉴와 content-shell 겹침 방지 */
@media (min-width: 1501px) and (max-width: 1700px) {
    body.is-login .content-shell {
        width: min(1040px, calc(100% - 460px));
        transform: translateX(130px);
    }
}


/* 1400px ~ 1260px: 왼쪽 플로팅 메뉴와 content-shell 겹침 방지 */
@media (min-width: 1260px) and (max-width: 1400px) {
    body.is-login .content-shell {
        width: min(920px, calc(100% - 420px));
        transform: translateX(90px);
    }
}

/* =========================================================
   10. 반응형
   - 로그인 상태에서는 content-shell을 오른쪽으로 이동시키되,
     이동한 만큼 실제 폭도 줄여서 화면 축소 시 넘침을 방지합니다.
========================================================= */
@media (max-width: 1500px) {
    body.is-login .content-shell {
        width: min(1120px, calc(100% - 260px));
        transform: translateX(110px);
    }
}

@media (max-width: 1400px) {

    .content-shell {
        width: min(1160px, calc(100% - 70px));
        transform: none;
    }

    body.is-login .content-shell {
        width: min(1080px, calc(100% - 230px));
        transform: translateX(80px);
    }
}

@media (max-width: 1200px) {

    .container-wrap {
        padding: 110px 18px 36px;
    }

    .content-shell,
    body.is-login .content-shell {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-title {
        font-size: 36px;
    }

    .panel {
        padding: 18px;
        border-radius: 22px;
    }

    .search-input {
        width: 100%;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-left .search-input,
    .toolbar-left .filter-select,
    .toolbar-right .action-btn {
        width: 100%;
    }

    .page-desc {
        font-size: 15px;
    }

    .toolbar-icon-group {
        margin-left: 0;
    }
}
