/* ABOUTME: Styles for Contributors plugin frontend components */
/* ABOUTME: Covers entry meta, contributor panels, profile pages, and archive layouts */

/* ========================================
   Hide Yak Theme Featured Image on Contributor Pages
   ======================================== */

.single-contributor .yak-featured-image-top-wrapper,
.post-type-archive-contributor .yak-featured-image-top-wrapper {
    display: none !important;
}

/* ========================================
   Entry Meta (Byline)
   ======================================== */

.entry-header {
    background: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px;
}

.entry-header .entry-meta {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.entry-header .entry-time {
    font-weight: 500;
    color: #444;
}

.tdc-separator {
    margin: 0 0.5em;
    opacity: 0.6;
    font-weight: 400;
}

.entry-header .entry-meta a {
    color: var(--yak-color-primary);;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.entry-header .entry-meta a:hover {
    color: var(--yak-color-primary);;
    text-decoration: underline;
}

/* ========================================
   Contributor Panels (Post Footer)
   ======================================== */

.tdc-contributor-panels {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tdc-panels-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.tdc-contributor-panel {
    margin-bottom: 2rem;
}

.tdc-contributor-panel:last-child {
    margin-bottom: 0;
}

.tdc-panel-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tdc-panel-thumbnail {
    flex-shrink: 0;
}

.tdc-panel-thumbnail a {
    display: block;
    text-decoration: none;
    border-radius: 50%;
    overflow: hidden;
}

.tdc-panel-thumbnail a:hover img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.tdc-panel-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tdc-panel-content {
    flex: 1;
    min-width: 0;
}

.tdc-contributor-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tdc-contributor-name a {
    color: #333;
    text-decoration: none;
}

.tdc-contributor-name a:hover {
    color: var(--yak-color-primary);;
}

.tdc-contributor-affiliation {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.tdc-contributor-bio {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.tdc-contributor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tdc-contributor-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
}

.tdc-contributor-link:hover {
    background: var(--yak-color-primary);;
    border-color: var(--yak-color-primary);;
    color: #fff;
}

/* ========================================
   Single Contributor Page
   ======================================== */

.tdc-contributor-single {
    max-width: 100%;
}

.tdc-contributor-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.tdc-contributor-image-wrap {
    flex-shrink: 0;
}

.tdc-contributor-featured-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.tdc-contributor-header-content {
    flex: 1;
}

.tdc-contributor-title {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.tdc-contributor-affiliation-large {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.tdc-contributor-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tdc-contributor-link-large {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--yak-color-primary);;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.tdc-contributor-link-large:hover {
    background: #005a87;
    color: #fff;
}

.tdc-contributor-bio-full {
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.tdc-contributor-posts {
    margin-top: 4rem;
}

.tdc-contributor-posts-title {
    margin: 0 0 2rem 0;
    font-size: 2rem;
    font-weight: 600;
}

/* ========================================
   Yak Archive Cards (Contributor Posts)
   ======================================== */

.yak-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.yak-archive-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.yak-archive-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yak-archive-entry {
    display: flex;
    flex-direction: column;
}

.yak-archive-image {
    width: 100%;
    overflow: hidden;
}

.yak-archive-image img {
    width: 100%;
    height: auto;
    display: block;
}

.yak-archive-body {
    padding: 1.5rem;
}

.yak-entry-header {
    margin-bottom: 0.75rem;
}

.yak-entry-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.yak-entry-title a {
    color: #333;
    text-decoration: none;
}

.yak-entry-title a:hover {
    color: var(--yak-color-primary);;
}

.yak-entry-date {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

.yak-entry-excerpt {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* ========================================
   Contributors Archive Page
   ======================================== */

.tdc-contributors-archive {
    max-width: 100%;
}

.tdc-contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tdc-contributor-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.tdc-contributor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tdc-card-inner {
    padding: 1.5rem;
    text-align: center;
}

.tdc-card-thumbnail {
    margin-bottom: 1rem;
}

.tdc-card-thumbnail img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.tdc-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.tdc-card-title a {
    color: #333;
    text-decoration: none;
}

.tdc-card-title a:hover {
    color: var(--yak-color-primary);;
}

.tdc-card-affiliation {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.tdc-card-bio {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #555;
    font-size: 0.95rem;
}

.tdc-card-link {
    display: inline-block;
    color: var(--yak-color-primary);;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.tdc-card-link:hover {
    text-decoration: underline;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: var(--yak-color-primary);;
    border-color: var(--yak-color-primary);;
    color: #fff;
}

.pagination .current {
    background: var(--yak-color-primary);;
    border-color: var(--yak-color-primary);;
    color: #fff;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .tdc-contributor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tdc-contributor-image-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .tdc-contributor-featured-image {
        width: 150px;
        height: 150px;
    }
    
    .tdc-contributor-title {
        font-size: 2rem;
    }
    
    .tdc-panel-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .tdc-panel-thumbnail {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .yak-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .tdc-contributors-grid {
        grid-template-columns: 1fr;
    }
}

