/* =========================================
 * Pages: tac-gia.php
 * Author: Thanh ??
 * Note: Auto-extracted from inline <style>
 * ========================================= */
/* 1. LAYOUT & HERO */
.author-page-wrapper { background: var(--bg-body); min-height: 80vh; padding-bottom: 60px; }
.main-container { margin-top: 30px; }
.author-header {
    position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 20px; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden; border-bottom: 1px solid var(--border);
}
.ah-overlay { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.6; }
.ah-content { position: relative; z-index: 2; max-width: 600px; }
.ah-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ah-desc { font-size: 16px; opacity: 0.9; margin: 0; }
.ah-deco-icon { position: absolute; right: 10%; bottom: -40px; font-size: 150px; opacity: 0.1; transform: rotate(-15deg); pointer-events: none; z-index: 1; }
@media(max-width: 767px) { .ah-deco-icon { display: none; } .ah-title { font-size: 24px; } }
/* 2. TOOLBAR */
.author-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 30px; }
.toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-sec);
    padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: 0.2s; display: flex; align-items: center; gap: 6px;
}
.filter-btn:hover { background: var(--bg-input); color: var(--text-main); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); }
.toolbar-right { width: 100%; max-width: 300px; }
.search-box { position: relative; width: 100%; }
.search-box input {
    width: 100%; padding: 10px 15px 10px 40px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main);
    font-size: 14px; transition: 0.2s;
}
.search-box input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-sec); }
/* 3. GRID & CARDS */
.author-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; min-height: 200px; }
@media(min-width: 768px) { .author-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1024px) { .author-grid { grid-template-columns: repeat(4, 1fr); } }
/* CARD STYLE */
.author-card-modern {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 25px 15px; text-align: center; text-decoration: none; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; position: relative;
}
.author-card-modern:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 25px var(--shadow); }
.acm-head { margin-bottom: 12px; position: relative; }
.acm-body { width: 100%; }
/* AVATAR & VIP SYSTEM */
.user-avatar-container { position: relative; display: inline-block; }
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg-card); background: var(--bg-input); }
.vip-badge-icon {
    position: absolute; bottom: -2px; right: -2px;
    background: #fff; border-radius: 50%; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); font-size: 12px; z-index: 2; border: 2px solid #fff;
}
.vip-level-4::before, .vip-admin::before {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    background: conic-gradient(from 0deg, #f59e0b, #fff, #d97706, #f59e0b);
    z-index: 0; animation: spin-halo 3s linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; -webkit-mask-composite: xor;
}
.vip-admin::before { background: conic-gradient(from 0deg, #ef4444, #fff, #b91c1c, #ef4444); }
@keyframes spin-halo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* CARD DETAILS */
.acm-name { 
    font-size: 16px; font-weight: 700; color: var(--text-main); 
    margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    display: flex; align-items: center; justify-content: center;
}
.verified-icon { color: #3b82f6; margin-left: 4px; vertical-align: middle; flex-shrink: 0; }
.acm-role { font-size: 13px; color: var(--text-sec); font-weight: 500; margin-bottom: 15px; }
.acm-badges { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; min-height: 22px; }
.status-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.acm-stats { display: flex; justify-content: center; gap: 0; border-top: 1px solid var(--border); padding-top: 15px; width: 100%; }
.acm-stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.acm-stat-item:first-child::after { content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: var(--border); }
.acm-stat-item strong { font-size: 15px; color: var(--text-main); font-weight: 800; }
.acm-stat-item span { font-size: 11px; color: var(--text-sec); text-transform: uppercase; margin-top: 2px; }
/* LOADING & ERROR */
.loading-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; color: var(--text-sec); }
.spin-icon { font-size: 32px; animation: spin 1s linear infinite; margin-bottom: 10px; color: var(--primary); }
@keyframes spin { 100% { transform: rotate(360deg); } }
.error-state { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--text-sec); background: var(--bg-card); border-radius: 12px; border: 1px dashed var(--border); }
/* PAGINATION */
.pagination-wrapper { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pg-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); font-weight: 600; cursor: pointer; transition: 0.2s; }
.pg-btn:hover { background: var(--bg-input); border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); pointer-events: none; }
.pg-dots { display: flex; align-items: flex-end; color: var(--text-sec); padding: 0 5px; }
/* MOBILE */
@media (max-width: 600px) {
    .author-toolbar { flex-direction: column; align-items: stretch; gap: 15px; }
    .toolbar-right { max-width: 100%; }
    .toolbar-left { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .filter-btn { flex-shrink: 0; }
    .author-grid { grid-template-columns: 1fr; } 
}