/* ==========================================================================
   EXPERTPULSE — ARCHIVE / TAXONOMY / AUTHOR PAGE STYLES
   Covers: archive.php, taxonomy-index.php, author.php
   ========================================================================== */

/* ==========================================================================
   1. SHARED ARCHIVE HEADER BANNER
   ========================================================================== */
.archive-header {
    background: var(--bg-section-alt);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

/* Visual tag thumbnail (circle) inside archive header */
.archive-header .vt-circle-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3.5rem;
}

.archive-header .vt-circle-img img { width: 100%; height: 100%; object-fit: cover; }

.archive-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.archive-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   2. VISUAL TAXONOMY INDEX (taxonomy-index.php)
   ========================================================================== */

/* Site main margin */
.vt-index-main { margin-bottom: 5rem; }

/* Grid layouts */
.vt-grid-circle {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
    text-align: center;
}

.vt-circle-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    background: var(--bg-section-alt);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.vt-circle-img i { font-size: 4rem; color: var(--border); line-height: 150px; }
.vt-circle-img img { width: 100%; height: 100%; object-fit: cover; }

.vt-grid-circle a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.vt-grid-circle a:hover { transform: translateY(-5px); }
.vt-grid-circle h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.vt-grid-square {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.vt-square-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-section-alt);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.vt-square-img img { width: 100%; height: 100%; object-fit: cover; }
.vt-square-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.vt-square-placeholder i { font-size: 4rem; color: var(--border); }

.vt-grid-square a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s;
}
.vt-grid-square a:hover { transform: translateY(-5px); }
.vt-grid-square h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* Pagination wrapper */
.vt-pagination-wrapper { margin-top: 40px; }

/* Empty state */
.vt-empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 40px;
}

/* Mobile */
@media (max-width: 600px) {
    .vt-grid-circle { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .vt-circle-img { width: 120px; height: 120px; }
    .vt-circle-img i { line-height: 120px; font-size: 3rem; }
    .vt-grid-square { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 400px) {
    .vt-circle-img { width: 100px; height: 100px; }
    .vt-circle-img i { line-height: 100px; font-size: 2.5rem; }
}

/* ==========================================================================
   3. AUTHOR PAGE (author.php)
   ========================================================================== */

/* Hero banner */
.author-hero-section {
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border);
    padding: 80px 20px;
    margin-bottom: 60px;
}

.author-profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.author-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-body);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; margin: 0; }

.author-role {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 51, 102, 0.1);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.author-hero-section .author-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.author-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 25px;
}

.author-socials { display: flex; gap: 10px; justify-content: center; }

/* Articles section */
.author-articles-section { margin-bottom: 80px; }
.author-section-heading { margin-bottom: 40px; }

/* Profile tabs (own profile view) */
.ep-profile-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.ep-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0 0 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    margin-bottom: -1px;
}
.ep-tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--accent);
}
.ep-tab-pane { display: none; }
.ep-tab-pane.active { display: block; }

/* Empty state inside author grid */
.author-empty-state {
    padding: 30px;
    text-align: center;
    background: var(--bg-section-alt);
    border-radius: var(--radius);
    grid-column: 1 / -1;
    color: var(--text-muted);
}
.author-empty-state i { font-size: 2rem; margin-bottom: 10px; display: block; }

/* Author not-found fallback */
.author-not-found {
    padding: 100px 20px;
    text-align: center;
    min-height: 50vh;
}
.author-not-found h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.author-not-found p { color: var(--text-muted); margin-bottom: 25px; }

@media (max-width: 600px) {
    .author-hero-section { padding: 50px 20px; }
    .author-avatar { width: 100px; height: 100px; }
    .ep-tab-btn { font-size: 1.2rem; }
}

/* ==========================================================================
   SAVED ARTICLES TAB
   ========================================================================== */
.ep-loading-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.ep-loading-state i { font-size: 2.5rem; color: var(--accent); }
.ep-loading-state p { margin-top: 15px; font-weight: 600; }
.ep-no-saved-state { text-align: center; padding: 60px 20px; background: var(--bg-section-alt); border-radius: var(--radius); color: var(--text-muted); }
.ep-no-saved-state i { font-size: 4rem; margin-bottom: 15px; display: block; color: var(--border); }
.ep-no-saved-state h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 5px; font-family: var(--font-heading); font-weight: 800; }
.ep-no-saved-state p { font-size: 1rem; }
