/**
 * Authors Page Styles
 * Custom styles for the Authors page template
 */

/* Authors Grid Layout */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Author Card */
.author-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffe032, #e6c92d);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #ffe032;
}

/* Author Avatar */
.author-avatar {
    margin-bottom: 1rem;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    transition: border-color 0.3s ease;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-card:hover .author-avatar img {
    border-color: #ffe032;
}

/* Author Name */
.author-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #ffe032;
}

/* Author Meta */
.author-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.author-posts-count {
    background: #fff9e6;
    color: #cc9900;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* Author Bio */
.author-bio {
    margin-bottom: 1.5rem;
}

.author-bio p {
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}



/* Latest Posts */
.author-latest-posts {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.author-latest-posts h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.author-latest-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-latest-posts li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.author-latest-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.author-latest-posts a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
}

.author-latest-posts a:hover {
    color: #ffe032;
}

/* Author Link Button */
.author-link .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-link .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 224, 50, 0.3);
}

/* No Authors Message */
.no-authors {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-authors p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .author-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .author-avatar img {
        width: 80px;
        height: 80px;
    }
}


/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-card {
    animation: fadeInUp 0.6s ease forwards;
}

.author-card:nth-child(1) { animation-delay: 0.1s; }
.author-card:nth-child(2) { animation-delay: 0.2s; }
.author-card:nth-child(3) { animation-delay: 0.3s; }
.author-card:nth-child(4) { animation-delay: 0.4s; }
.author-card:nth-child(5) { animation-delay: 0.5s; }
.author-card:nth-child(6) { animation-delay: 0.6s; }

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .author-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .author-name {
        color: #e2e8f0;
    }
    
    .author-bio p {
        color: #cbd5e0;
    }
    
    .author-latest-posts {
        background: #4a5568;
    }
    
    .author-latest-posts h4 {
        color: #e2e8f0;
    }
    
    .author-latest-posts a {
        color: #cbd5e0;
    }
    
    .author-latest-posts li {
        border-color: #718096;
    }
}
