/* ──────────────────────────────────────────
   Notice System – Modal Overlay
   Matches dark gaming theme
   ────────────────────────────────────────── */

.notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: noticeFadeIn 0.25s ease-out;
}

@keyframes noticeFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes noticeSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Modal card ────────────────────────── */

.notice-modal {
    background: #111119;
    border: 1px solid #1e1e30;
    border-radius: 12px;
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 168, 83, .08);
    animation: noticeSlideIn 0.3s ease-out;
    overflow: hidden;
}

/* ── Type accent border ────────────────── */

.notice-modal.notice-info {
    border-top: 3px solid #4a9eff;
}

.notice-modal.notice-warning {
    border-top: 3px solid #f0a040;
}

.notice-modal.notice-success {
    border-top: 3px solid #4ade80;
}

.notice-modal.notice-announcement {
    border-top: 3px solid #d4a853;
}

/* ── Header ────────────────────────────── */

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
}

.notice-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.notice-info .notice-icon         { color: #4a9eff; }
.notice-warning .notice-icon      { color: #f0a040; }
.notice-success .notice-icon      { color: #4ade80; }
.notice-announcement .notice-icon { color: #d4a853; }

.notice-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #d8d6d2;
    margin: 0;
    line-height: 1.3;
}

.notice-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    line-height: 1;
}

.notice-close:hover {
    color: #ccc;
    background: rgba(255, 255, 255, .06);
}

/* ── Body ──────────────────────────────── */

.notice-body {
    padding: 12px 20px 20px;
    color: #b0aeb8;
    font-size: .92rem;
    line-height: 1.6;
}

.notice-body p {
    margin: 0 0 8px;
}

.notice-body p:last-child {
    margin-bottom: 0;
}

.notice-body ul {
    margin: 8px 0;
    padding-left: 20px;
    color: #b0aeb8;
}

.notice-body li {
    margin-bottom: 4px;
}

.notice-body strong {
    color: #d8d6d2;
}

/* ── Footer ────────────────────────────── */

.notice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #1e1e30;
    background: rgba(255, 255, 255, .015);
    gap: 12px;
    flex-wrap: wrap;
}

.notice-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.notice-count {
    font-size: .78rem;
    color: #555;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a9eff;
    text-decoration: none;
    font-size: .85rem;
    transition: color .15s;
}

.notice-link:hover {
    color: #7ab8ff;
}

.notice-dismiss-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4a853;
    color: #0a0a0f;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}

.notice-dismiss-btn:hover {
    background: #e0b85f;
    transform: translateY(-1px);
}

.notice-dismiss-btn:active {
    transform: translateY(0);
}
