/**
 * AUTHOR PAGE STYLES
 * Yazar Sayfası Tasarımı - Modern ve Profesyonel
 * Version: 1.0
 */

/* ========================================
   AUTHOR PAGE LAYOUT
   ======================================== */
.author-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 30px 0;
}

.author-main-content {
    min-width: 0;
}

.author-sidebar {
    /* Masaüstünde sidebar görünür - AÇIKÇA BELİRTİLDİ */
    display: block !important;
    width: 100%;
}

/* Sidebar içeriği de görünür olmalı */
.author-sidebar .sidebar-content {
    display: block !important;
}

/* ========================================
   AUTHOR PROFILE CARD
   ======================================== */
.author-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.author-profile-header {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e74c3c;
    position: relative;
}

.author-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.author-avatar-wrapper {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.author-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.3);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.author-bio {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.author-bio p {
    margin: 0 0 10px 0;
}

.author-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.author-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.author-meta-item:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.author-meta-item svg {
    flex-shrink: 0;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.author-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.author-social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.author-social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0c5ec7);
}

.author-social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.author-social-link.instagram {
    background: linear-gradient(135deg, #e1306c, #c13584);
}

.author-social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

/* ========================================
   AUTHOR STATS
   ======================================== */
.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e8e8e8;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.author-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.author-stat-item:hover {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================
   AUTHOR POSTS SECTION
   ======================================== */
.author-posts-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #e8e8e8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e74c3c;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
}

.section-title svg {
    color: #e74c3c;
    flex-shrink: 0;
}

.posts-count {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ========================================
   AUTHOR POSTS GRID
   ======================================== */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.author-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.author-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.post-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    z-index: 2;
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.post-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a:hover {
    color: #e74c3c;
}

.post-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.post-card-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ========================================
   NO POSTS MESSAGE
   ======================================== */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-posts-message svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-posts-message p {
    font-size: 16px;
    color: #666;
}

/* ========================================
   PAGINATION
   ======================================== */
.author-posts-section .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.author-posts-section .pagination a,
.author-posts-section .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.author-posts-section .pagination a:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.author-posts-section .pagination .current {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .author-page-layout {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    /* Tablet'te de sidebar görünür */
    .author-sidebar {
        display: block;
    }
    
    .author-profile-header {
        padding: 30px;
        gap: 25px;
    }
    
    .author-avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .author-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobilde sidebar'ı gizle */
    .author-sidebar {
        display: none;
    }
    
    .author-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    
    .author-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 24px;
    }
    
    .author-meta-info {
        justify-content: center;
    }
    
    .author-social-links {
        justify-content: center;
    }
    
    .author-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Mobilde "Tarafından Yazılan Makaleler" yazısını gizle */
    .section-title .articles-text {
        display: none;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .author-profile-card,
    .author-posts-section {
        border-radius: 12px;
        padding: 20px;
    }
    
    .author-profile-header {
        padding: 20px;
    }
    
    .author-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* ========================================
   DARK MODE - AUTHOR PAGE
   ======================================== */

/* Author Profile Card */
.dark-mode .author-profile-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .author-profile-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    border-bottom-color: #e74c3c;
}

.dark-mode .author-profile-header::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.dark-mode .author-avatar-img {
    border-color: #2a2a2a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark-mode .author-avatar-img:hover {
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.6);
}

.dark-mode .author-name {
    color: #ffffff;
}

.dark-mode .author-bio {
    color: #b0b0b0;
}

.dark-mode .author-meta-item {
    color: #999;
    background: #2a2a2a;
}

.dark-mode .author-meta-item:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

/* Social Links - Keep original colors */
.dark-mode .author-social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0c5ec7);
}

.dark-mode .author-social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.dark-mode .author-social-link.instagram {
    background: linear-gradient(135deg, #e1306c, #c13584);
}

.dark-mode .author-social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

/* Author Stats */
.dark-mode .author-stats {
    background: #333;
}

.dark-mode .author-stat-item {
    background: #1a1a1a;
}

.dark-mode .author-stat-item:hover {
    background: linear-gradient(135deg, #2a1a1a, #1a1a1a);
}

.dark-mode .stat-number {
    color: #e74c3c;
}

.dark-mode .stat-label {
    color: #999;
}

/* Author Posts Section */
.dark-mode .author-posts-section {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .section-header {
    border-bottom-color: #e74c3c;
}

.dark-mode .section-title {
    color: #ffffff;
}

.dark-mode .section-title svg {
    color: #e74c3c;
}

.dark-mode .posts-count {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* Author Post Cards */
.dark-mode .author-post-card {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .author-post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: #e74c3c;
}

.dark-mode .post-card-image {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.dark-mode .category-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
}

.dark-mode .post-card-content {
    background: #1a1a1a;
}

.dark-mode .post-card-title a {
    color: #ffffff;
}

.dark-mode .post-card-title a:hover {
    color: #e74c3c;
}

.dark-mode .post-card-excerpt {
    color: #b0b0b0;
}

.dark-mode .post-card-meta {
    border-top-color: #333;
    color: #999;
}

.dark-mode .post-card-meta svg {
    opacity: 0.7;
}

/* No Posts Message */
.dark-mode .no-posts-message {
    color: #999;
}

.dark-mode .no-posts-message svg {
    opacity: 0.3;
}

.dark-mode .no-posts-message p {
    color: #999;
}

/* Pagination */
.dark-mode .author-posts-section .pagination a,
.dark-mode .author-posts-section .pagination span {
    background: #2a2a2a;
    color: #999;
    border-color: #444;
}

.dark-mode .author-posts-section .pagination a:hover {
    background: #e74c3c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

.dark-mode .author-posts-section .pagination .current {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}