/**
* Zib Pages Plugin - Frontend Styles
* 
* 信息发布页面表格样式、置顶动画、筛选控件、模态框等
* 
* @package Zib_Pages
* @version 1.0.0
*/

/* ============================================
用户统计卡片样式
============================================ */

/* CSS Block 1 */
.user-stats-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.user-info-header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 14px;
margin-bottom: 12px;
}
.user-avatar-link { flex-shrink: 0; }
.user-avatar-wrap {
width: 44px;
height: 44px;
border-radius: 50%;
overflow: hidden;
border: 2px solid rgba(255,255,255,0.4);
background: #fff;
}
.user-avatar-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}
.user-info-text { flex: 1; min-width: 0; text-align: center; }
.user-name-row {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.user-name {
font-size: 16px;
font-weight: bold;
color: #fff;
}
.fabu-button {
flex-shrink: 0;
}
.fabu-button .but {
background: #e74c3c;
color: #fff;
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
text-decoration: none;
transition: all 0.2s;
}
.fabu-button .but:hover {
background: #c0392b;
}

/* 信息展示列表标题样式 */
.info-list-title {
font-size: 24px;
font-weight: bold;
color: #2c3e50;
background: #e8f4fd;
padding: 8px 16px;
border-radius: 6px;
border: 2px solid #3498db;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
letter-spacing: 8px;
display: block;
width: 100%;
}
.vip-badge {
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: bold;
}
.vip-badge.admin { background: #e74c3c; color: #fff; }
.vip-badge.diamond { background: #3498db; color: #fff; }
.vip-badge.gold { background: #f39c12; color: #fff; }
.vip-badge.normal { background: rgba(255,255,255,0.2); color: #fff; }

.user-stats-row {
display: flex;
flex-wrap: nowrap;
justify-content: center;
gap: 12px;
}
.stat-item {
background: rgba(255,255,255,0.12);
padding: 14px 16px;
border-radius: 10px;
min-width: 150px;
flex: 1;
text-align: center;
}
.stat-header {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stat-header i {
color: #ffd700;
font-size: 14px;
}
.stat-title {
color: #fff;
font-size: 14px;
font-weight: bold;
}
.stat-total {
color: rgba(255,255,255,0.9);
font-size: 16px;
margin-bottom: 6px;
}
.stat-total b {
color: #ffd700;
font-size: 20px;
margin: 0 2px;
}
.stat-detail {
color: rgba(255,255,255,0.6);
font-size: 12px;
}
.stat-row {
display: flex;
align-items: center;
gap: 6px;
margin-top: 4px;
font-size: 14px;
}
.stat-row .label {
color: rgba(255,255,255,0.75);
}
.stat-row .value {
color: #fff;
font-weight: 500;
}
.stat-row .badge {
padding: 1px 6px;
border-radius: 8px;
font-size: 12px;
font-weight: bold;
margin-left: auto;
}
.stat-row .badge.permanent {
background: rgba(46, 204, 113, 0.3);
color: #2ecc71;
}
.stat-row .badge.countdown {
background: rgba(241, 196, 15, 0.3);
color: #f1c40f;
}
.stat-row.system .label { color: #2ecc71; }
.stat-row.purchased .label { color: #f39c12; }
.stat-row.used .label { color: #95a5a6; }
.stat-row.remaining .label { color: #3498db; }
.badge.instant {
background: rgba(52, 152, 219, 0.3);
color: #3498db;
}
.c-red { color: #ff6b6b; }

@media (max-width: 576px) {
.user-stats-card { padding: 12px; }
.user-info-header { gap: 10px; margin-bottom: 10px; }
.user-avatar-wrap { width: 36px; height: 36px; }
.user-name { font-size: 14px; }
.user-stats-row { gap: 8px; }
.stat-item { padding: 10px 12px; min-width: 100%; }
.stat-total { font-size: 12px; }
.stat-total b { font-size: 14px; }
.stat-row { font-size: 11px; }
}

/* CSS Block 2 */
.zib-modal-box, .zib-modal-overlay .zib-modal-box, .zib-modal-wrap, .zib-modal, .m-box, .m-mask .m-box, .zib-modal-overlay {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
bottom: auto !important;
right: auto !important;
position: fixed !important;
}
.zib-modal-overlay, .zib-modal, .m-mask {
display: flex !important;
align-items: center !important;
justify-content: center !important;
position: fixed !important;
}
.zib-modal-box, .m-box {
margin: 0 auto !important;
}
/* ===== Table Layout ===== */
.zib-pages-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.zib-pages-table thead tr {
background: #e8f4fd;
border-radius: 6px;
}
.zib-pages-table thead th {
font-weight: bold;
font-size: 14px;
color: #e74c3c;
padding: 8px 3px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-right: 1px solid #d0e8f5;
}
.zib-pages-table thead th:last-child { border-right: none; }
.zib-pages-table tbody tr {
background: #fff;
border: 1px solid #f0f0f0;
border-radius: 8px;
transition: all 0.2s ease;
}
.zib-pages-table tbody tr:hover {
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
border-color: #e0e0e0;
}
.zib-pages-table tbody td {
padding: 8px 3px;
text-align: center;
vertical-align: middle;
overflow: hidden;
border-right: 1px solid #f0f0f0;
font-size: 14px;
font-weight: 600;
color: #333;
}
.zib-pages-table tbody td:last-child { border-right: none; }
/* 置顶发光效果 */
.zib-pages-table tbody tr.is-pinned-glow {
animation: pin-glow 2s ease-in-out infinite;
background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 50%, #fff9e6 100%);
}
@keyframes pin-glow {
0%, 100% { 
box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}
50% { 
box-shadow: 0 0 20px rgba(255, 193, 7, 0.8), 0 0 30px rgba(255, 193, 7, 0.4);
}
}
100% { background-position: 200% 0; }
}


/* Elements */
.info-badge {
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
color: #555;
padding: 0;
border-radius: 0;
font-size: 13px;
font-weight: normal;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
border: none;
}
.server-name { font-size: 14px; font-weight: bold; color: #333; }

.desc-text {
display: block;
font-size: 13px;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}

.action-btn {
padding: 3px 10px;
font-size: 13px;
font-weight: bold;
border-radius: 4px;
display: inline-flex;
align-items: center;
white-space: nowrap;
margin: 1px;
line-height: 1.4;
}
.btn-download { background: #eef4ff; color: #2d6eff; }
.btn-download:hover { background: #2d6eff; color: #fff; }
.btn-detail { background: #fff3e0; color: #e65100; }
.btn-detail:hover { background: #e65100; color: #fff; }
.btn-register { background: #e8f5e9; color: #2e7d32; }
.btn-register:hover { background: #2e7d32; color: #fff; }

/* QQ Link */
.qq-link {
padding: 3px 10px;
font-size: 13px;
font-weight: bold;
border-radius: 4px;
display: inline-flex;
align-items: center;
white-space: nowrap;
text-decoration: none;
background: #e8f5e9;
color: #2e7d32;
transition: all 0.2s;
}
.qq-link:hover {
background: #2e7d32;
color: #fff;
}


/* Admin Actions */
.admin-actions {
display: block;
font-size: 12px;
margin-top: 4px;
opacity: 0;
transition: all 0.2s;
pointer-events: none;
}
.zib-pages-table tbody tr:hover .admin-actions {
opacity: 1;
pointer-events: auto;
}
.admin-actions a { margin: 0 4px; }

/* Mobile Responsive */
@media (max-width: 768px) {
.zib-pages-table thead { display: none; }
.zib-pages-table, .zib-pages-table tbody, .zib-pages-table tr, .zib-pages-table td { display: block; width: 100%; }
.zib-pages-table tbody td { text-align: left; padding: 6px 10px; }
.admin-actions { opacity: 1; pointer-events: auto; }
}

.text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.badge.daily {
background: rgba(46, 204, 113, 0.3);
color: #27ae60;
}
