/**
 * Public Styles
 *
 * @package ZEG_Publications
 */

/* 2-Column Container */
.zeg-publications-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

/* No-filters layout (author pages) - full width */
.zeg-publications-container.zeg-no-filters {
    display: block;
}

.zeg-publications-container.zeg-no-filters .zeg-publications-main {
    max-width: 100%;
}

/* Main Content (Left) */
.zeg-publications-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar (Right) */
.zeg-publications-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Sticky Filter Sidebar */
.zeg-publications-filters {
    position: sticky;
    top: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.zeg-filter-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.zeg-filter-group {
    margin-bottom: 15px;
}

.zeg-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.zeg-filter-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.zeg-filter-dropdown:focus {
    outline: none;
    border-color: #0066cc;
}

.zeg-filter-reset {
    width: 100%;
    padding: 10px 16px;
    margin-top: 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.zeg-filter-reset:hover {
    background: #e0e0e0;
}

.zeg-results-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Publications List */
.zeg-publications-list {
    /* No max-width needed - inherits from main */
}

.zeg-publication-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.zeg-publication-title {
    display: inline;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
    color: #000;
}

.zeg-publication-authors {
    display: inline;
}

/* Author links */
.zeg-publication-authors a.zeg-author-link {
    color: #19837C;
    text-decoration: underline;
}

.zeg-publication-authors a.zeg-author-link:hover {
    color: #136b65;
}

.zeg-publication-citation {
    font-size: 1em;
    font-style: italic;
    color: #000;
    line-height: 1.5;
}

.zeg-publication-links {
    display: inline;
    font-size: 1em;
    font-style: italic;
}

/* DOI/External link */
.zeg-publication-links a {
    color: #19837C;
    text-decoration: underline;
    margin-right: 15px;
}

.zeg-publication-links a:hover {
    color: #136b65;
}

/* PDF download section - on new line */
.zeg-publication-pdf {
    margin-top: 5px;
    font-size: 1em;
}

/* PDF link */
.zeg-publication-pdf a.zeg-pdf-link {
    color: #19837C;
    text-decoration: underline;
}

.zeg-publication-pdf a.zeg-pdf-link:hover {
    color: #136b65;
}

/* Pagination */
#zeg-pagination-container {
    /* Inherits width from main container */
}

.zeg-pagination {
    margin: 30px 0;
    text-align: center;
}

.zeg-page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.zeg-page-link:hover {
    background: #f0f0f0;
}

.zeg-page-link.current {
    background: #2c5282;
    color: #fff;
    border-color: #2c5282;
    cursor: default;
}

.zeg-page-link.dots {
    border: none;
    cursor: default;
    pointer-events: none;
}

.zeg-page-link.dots:hover {
    background: transparent;
}

/* Author bio styles */
.zeg-author-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.zeg-author-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.zeg-author-photo {
    flex-shrink: 0;
}

.zeg-author-photo img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 300px;
    height: auto;
}

.zeg-author-info {
    flex: 1;
}

.zeg-author-name {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.zeg-author-position {
    font-size: 1.2em;
    color: #2c5282;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.zeg-author-email a {
    color: #2c5282;
    text-decoration: none;
}

.zeg-author-email a:hover {
    text-decoration: underline;
}

.zeg-author-short-description {
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.zeg-author-biography {
    margin-bottom: 50px;
}

.zeg-author-biography h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.zeg-author-publications h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 900px) {
    /* Stack columns on tablet/mobile */
    .zeg-publications-container {
        flex-direction: column;
    }

    .zeg-publications-sidebar {
        width: 100%;
        order: -1; /* Sidebar above content on mobile */
        margin-bottom: 30px;
    }

    .zeg-publications-filters {
        position: static; /* Remove sticky on mobile */
    }

    /* Horizontal filter layout on tablet */
    @media (min-width: 500px) {
        .zeg-publications-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: flex-end;
        }

        .zeg-filter-title {
            width: 100%;
            margin-bottom: 10px;
        }

        .zeg-filter-group {
            flex: 1;
            min-width: 150px;
            margin-bottom: 0;
        }

        .zeg-filter-reset {
            width: auto;
            margin-top: 0;
        }

        .zeg-results-count {
            width: 100%;
            margin-top: 10px;
            padding-top: 10px;
        }
    }
}

@media (max-width: 768px) {
    .zeg-author-header {
        flex-direction: column;
    }

    .zeg-author-photo img {
        max-width: 200px;
    }

    .zeg-author-name {
        font-size: 2em;
    }
}
