/* ========================================
   NOTICE PAGE - CSS
   ======================================== */

/* Page Header */
.page-header {
    padding: 100px 0 30px;
    text-align: center;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--earth-text-muted);
}

/* Notice Content */
.notice-content {
    padding: 0 0 80px;
}

/* Notice Filter */
.notice-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(26, 58, 92, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 25px;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.4);
    color: var(--earth-text);
}

.filter-btn.active {
    background: var(--earth-gradient);
    border-color: transparent;
    color: var(--earth-dark);
    font-weight: 600;
}

/* Notice List */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.notice-item {
    background: rgba(26, 58, 92, 0.35);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 16px;
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: rgba(26, 58, 92, 0.5);
    border-color: rgba(0, 212, 170, 0.4);
    transform: translateX(5px);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.notice-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.notice-badge.important {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
}

.notice-badge.new {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    color: var(--earth-dark);
    animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notice-badge.event {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9f1c 100%);
    color: var(--earth-dark);
}

.notice-badge.update {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
}

.notice-badge.maintenance {
    background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
    color: #fff;
}

.notice-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--earth-text);
    line-height: 1.4;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notice-date,
.notice-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

.notice-date svg,
.notice-views svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

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

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(26, 58, 92, 0.4);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--earth-primary);
    color: var(--earth-text);
}

.page-btn.active {
    background: var(--earth-gradient);
    border-color: transparent;
    color: var(--earth-dark);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.prev svg,
.page-btn.next svg {
    width: 18px;
    height: 18px;
}

/* Notice Modal */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notice-modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.notice-modal-content .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--earth-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.notice-modal-content .modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.notice-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notice-detail-header {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
}

.notice-detail-header .notice-badge {
    margin-bottom: 15px;
}

.notice-detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--earth-text);
    margin-bottom: 15px;
    line-height: 1.4;
}

.notice-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--earth-text-muted);
}

.notice-detail-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notice-detail-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--earth-text);
}

.notice-detail-body h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--earth-primary);
    margin-bottom: 10px;
}

.notice-detail-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.notice-detail-body li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--earth-text);
    margin-bottom: 5px;
}

.notice-detail-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-prev-notice,
.btn-next-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev-notice:hover,
.btn-next-notice:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--earth-primary);
    color: var(--earth-text);
}

.btn-prev-notice svg,
.btn-next-notice svg {
    width: 16px;
    height: 16px;
}

.btn-list {
    padding: 10px 30px;
    background: var(--earth-gradient);
    border: none;
    border-radius: 8px;
    color: var(--earth-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-list:hover {
    transform: translateY(-2px);
    box-shadow: var(--earth-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .notice-filter {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .notice-item {
        padding: 18px 20px;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-title {
        font-size: 0.95rem;
        margin-top: 8px;
    }

    .notice-meta {
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .notice-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }

    .notice-detail-header,
    .notice-detail-body,
    .notice-detail-footer {
        padding: 20px;
    }

    .notice-detail-title {
        font-size: 1.1rem;
    }

    .notice-detail-footer {
        flex-direction: column;
    }

    .btn-prev-notice,
    .btn-next-notice,
    .btn-list {
        width: 100%;
        justify-content: center;
    }
}
