/* Author Directory Styles */
.eaf-author-directory {
    max-width: 100%;
    margin: 20px 0;
}

/* Directory Controls */
.eaf-directory-controls {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.eaf-search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.eaf-search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.eaf-search-box button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.eaf-search-box button:hover {
    background: #005a87;
}

.eaf-filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eaf-filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* Results Info */
.eaf-results-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* Author Container Layouts */
.eaf-authors-container {
    margin-bottom: 30px;
}

/* Grid Layout */
.eaf-layout-grid {
    display: grid;
    gap: 25px;
}

.eaf-layout-grid.eaf-columns-1 { grid-template-columns: 1fr; }
.eaf-layout-grid.eaf-columns-2 { grid-template-columns: repeat(2, 1fr); }
.eaf-layout-grid.eaf-columns-3 { grid-template-columns: repeat(3, 1fr); }
.eaf-layout-grid.eaf-columns-4 { grid-template-columns: repeat(4, 1fr); }
.eaf-layout-grid.eaf-columns-5 { grid-template-columns: repeat(5, 1fr); }

/* List Layout */
.eaf-layout-list .eaf-author-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
}

.eaf-layout-list .eaf-author-avatar {
    flex-shrink: 0;
}

.eaf-layout-list .eaf-author-info {
    flex: 1;
}

/* Author Item Styles */
.eaf-author-item {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eaf-author-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.eaf-author-avatar {
    margin-bottom: 15px;
}

.eaf-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.eaf-author-avatar img:not([src]),
.eaf-author-avatar img[src=""],
.eaf-author-avatar img[src*="mystery"] {
    background-color: #f0f0f0;
}

.eaf-author-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.eaf-author-name a {
    color: #333;
    text-decoration: none;
}

.eaf-author-name a:hover {
    color: #0073aa;
}

.eaf-author-post-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.eaf-author-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Social Media Mini Icons */
.eaf-author-social-mini {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.eaf-social-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.eaf-social-mini:hover {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
}

/* Pagination */
.eaf-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.eaf-pagination a,
.eaf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.eaf-pagination a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.eaf-pagination-current {
    background: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

/* Loading State */
.eaf-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eaf-directory-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .eaf-search-box {
        min-width: auto;
    }
    
    .eaf-filter-controls {
        justify-content: center;
    }
    
    .eaf-layout-grid.eaf-columns-3,
    .eaf-layout-grid.eaf-columns-4,
    .eaf-layout-grid.eaf-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eaf-layout-list .eaf-author-item {
        flex-direction: column;
        text-align: center;
    }
    
    .eaf-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .eaf-layout-grid.eaf-columns-2,
    .eaf-layout-grid.eaf-columns-3,
    .eaf-layout-grid.eaf-columns-4,
    .eaf-layout-grid.eaf-columns-5 {
        grid-template-columns: 1fr;
    }
    
    .eaf-author-item {
        padding: 15px;
    }
    
    .eaf-author-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* Table Layout */
.eaf-layout-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.eaf-layout-table .eaf-author-item {
    display: table-row;
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.eaf-layout-table .eaf-author-item:hover {
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
}

.eaf-layout-table .eaf-author-avatar,
.eaf-layout-table .eaf-author-info {
    display: table-cell;
    padding: 15px;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
}

.eaf-layout-table .eaf-author-avatar {
    width: 80px;
    text-align: center;
}

.eaf-layout-table .eaf-author-avatar img {
    width: 50px;
    height: 50px;
}

.eaf-layout-table .eaf-author-info {
    text-align: left;
}

.eaf-layout-table .eaf-author-name {
    margin-bottom: 5px;
}

.eaf-layout-table .eaf-author-social-mini {
    justify-content: flex-start;
    margin-top: 5px;
} 