/* Announcements Page Styles */
body {
    background: #0d1117 url("/static/img/bg-1-1920x1600.jpg") center top / cover no-repeat fixed;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.announcement-card {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.announcement-card:hover {
    border-color: #58a6ff;
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.announcement-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #30363d;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.announcement-author {
    font-weight: 600;
    color: #58a6ff;
    font-size: 0.95rem;
}

.announcement-date {
    color: #8b949e;
    font-size: 0.82rem;
    margin-left: auto;
}

.announcement-content {
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.announcement-content a {
    color: #58a6ff;
}

.announcement-embed {
    border-left: 4px solid #58a6ff;
    background: rgba(88, 166, 255, 0.06);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 10px;
}

.announcement-embed-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.announcement-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #30363d;
}

.announcement-attachment {
    display: inline-flex;
    align-items: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 8px;
    margin-right: 8px;
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.announcement-attachment:hover {
    background: #30363d;
    color: #79c0ff;
}

.announcement-attachment i {
    margin-right: 6px;
}

.page-header {
    text-align: center;
    padding: 40px 0 30px;
}

.page-header img {
    max-width: 100px;
    margin-bottom: 16px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 6px;
}

.page-header p {
    color: #8b949e;
}

.no-announcements {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
}

.bot-badge {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #dee0fc;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 500;
    cursor: default;
}

.discord-channel {
    background: rgba(88, 101, 242, 0.2);
    color: #dee0fc;
    padding: 0 4px;
    border-radius: 3px;
    cursor: default;
}

.announcement-content img.inline-emoji {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
}

.announcement-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.announcement-image-grid img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid #30363d;
    cursor: pointer;
    transition: opacity 0.2s;
}

.announcement-image-grid img:hover {
    opacity: 0.85;
}

.image-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.image-fallback:hover {
    background: #30363d;
    color: #79c0ff;
}

.image-fallback i {
    font-size: 1.4rem;
}

.discord-timestamp {
    background: rgba(88, 101, 242, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    color: #dee0fc;
}

/* In-game news panel (700x641) */
@media (max-width: 750px) {
    .page-header {
        padding: 16px 0 12px;
    }
    .page-header img {
        max-width: 60px;
        margin-bottom: 8px;
    }
    .page-header h1 {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    .page-header p {
        font-size: 0.8rem;
    }
    .announcement-card {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    .announcement-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        margin-right: 8px;
    }
    .announcement-author {
        font-size: 0.85rem;
    }
    .announcement-date {
        font-size: 0.72rem;
    }
    .announcement-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .announcement-embed {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .announcement-image-grid img {
        max-height: 200px;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

