/* Yazarlar Sayfası CSS */

/* Section Genel Stilleri */
.authors-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h1:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 20px;
}

/* Filtreler */
.authors-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-weight: 600;
    margin-right: 20px;
    color: #333;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 30px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #e74c3c;
    color: #fff;
}

/* Yazarlar Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Yazar Kutusu */
.author-box {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-top: 20px;
    border-top: 4px solid #e74c3c;
    padding-left: 15px;
    padding-right: 15px;
}

.author-box:nth-child(2n) {
    border-color: #3498db;
}

.author-box:nth-child(3n) {
    border-color: #2ecc71;
}

.author-box:nth-child(4n) {
    border-color: #9b59b6;
}

.author-box:nth-child(5n) {
    border-color: #f39c12;
}

.author-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Yazar Resmi */
.author-image {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
    margin: 30px auto 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    aspect-ratio: 4/3;
}

.author-image::after {
    content: "";
    display: block;
    padding-bottom: 75%; /* 4:3 oran */
}

.author-image::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 0;
    border: 2px solid #e74c3c;
    z-index: 1;
}

.author-box:nth-child(2n) .author-image::before {
    border-color: #3498db;
}

.author-box:nth-child(3n) .author-image::before {
    border-color: #2ecc71;
}

.author-box:nth-child(4n) .author-image::before {
    border-color: #9b59b6;
}

.author-box:nth-child(5n) .author-image::before {
    border-color: #f39c12;
}

.author-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    display: block;
    z-index: 0;
}

.author-box:hover .author-image img {
    transform: scale(1.08);
}

/* Yazar Sosyal Medya */
.author-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.author-box:hover .author-social {
    opacity: 1;
    transform: translateY(0);
}

.author-social a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

/* Yazar Bilgileri */
.author-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.author-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
}

.author-category.gundem {
    background-color: #e74c3c;
}

.author-category.ekonomi {
    background-color: #3498db;
}

.author-category.spor {
    background-color: #2ecc71;
}

.author-category.siyaset {
    background-color: #9b59b6;
}

.author-category.kultur {
    background-color: #f39c12;
}

.author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Yazar Makaleleri */
.author-articles {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.author-articles h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.author-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-articles li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 12px;
}

.author-articles li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #e74c3c;
}

.author-articles li:last-child {
    margin-bottom: 0;
}

.article-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.author-articles a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
    display: block;
}

.author-articles a:hover {
    color: #e74c3c;
}

/* Yazar Tüm Yazılar Linki */
.author-link {
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-link i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.author-link:hover {
    background-color: #e74c3c;
    color: #fff;
}

.author-link:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-link, .page-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-link.active {
    background-color: #e74c3c;
    color: #fff;
}

.page-dots {
    margin: 0 5px;
    color: #888;
}

.page-next {
    font-size: 12px;
}

.page-link:hover, .page-next:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-link.active:hover {
    background-color: #e74c3c;
}

/* AdSense Banner */
.ad-banner {
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Yardımcı Sınıflar */
.text-center {
    text-align: center;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .author-image {
        width: 180px;
        height: 135px;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 992px) {
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .section-title h1 {
        font-size: 28px;
    }
    .author-image {
        width: 160px;
        height: 120px;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 30px;
    }
    .authors-filter {
        flex-direction: column;
        padding: 15px;
    }
    .filter-title {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .section-title h1 {
        font-size: 24px;
    }
    .author-image {
        width: 200px;
        height: 150px;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 576px) {
    .authors-page {
        padding: 30px 0;
    }
    .section-title {
        margin-bottom: 25px;
    }
    .author-name {
        font-size: 18px;
    }
    .author-info {
        padding: 15px;
    }
    .author-image {
        width: 180px;
        height: 135px;
        margin: 20px auto 15px;
        aspect-ratio: 4/3;
    }
    .author-articles {
        padding: 10px;
    }
    .author-box {
        padding-left: 8px;
        padding-right: 8px;
    }
}

body > :not(header):not(footer) {
    padding-left: 15px;
    padding-right: 15px;
}

/* Yazarlar sayfası stilleri */
.authors-page {
    padding: 40px 0;
}

.page-title {
    margin-bottom: 30px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Filtre Bölümü */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.filter-btn:hover {
    background-color: #eaeaea;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Yazar Kutuları */
.authors-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.author-box {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: white;
    opacity: 0;
    transform: translateY(20px);
}

.author-box.show {
    opacity: 1;
    transform: translateY(0);
}

.author-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.author-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-box:hover .author-image img {
    transform: scale(1.05);
}

.author-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.author-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.author-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
}

.author-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: auto;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-social a {
    color: #777;
    transition: all 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.author-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.author-link:hover {
    background-color: var(--secondary-color);
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-link,
.pagination-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #ddd;
}

.pagination-link:hover,
.pagination-btn:hover {
    background-color: #eaeaea;
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    padding: 0 5px;
    color: #777;
}

/* Sonuç bulunmadı mesajı */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    font-size: 18px;
    color: #777;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .authors-content {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .authors-content {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .authors-content {
        grid-template-columns: 1fr;
    }
    
    .author-image {
        height: 180px;
    }
    
    .pagination-link,
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* Dark Theme Yazarlar Sayfası */
body.dark-theme .authors-page {
    background-color: #1a1a1a;
}

body.dark-theme .section-title h1 {
    color: #fff;
}

body.dark-theme .section-title p {
    color: #bbb;
}

body.dark-theme .authors-filter {
    background-color: #222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .filter-title {
    color: #ddd;
}

body.dark-theme .filter-btn {
    background-color: #333;
    color: #ccc;
}

body.dark-theme .filter-btn:hover {
    background-color: #444;
}

body.dark-theme .filter-btn.active {
    background-color: #e74c3c;
    color: #fff;
}

body.dark-theme .author-box {
    background-color: #222;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme .author-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

body.dark-theme .author-image {
    border-color: #333;
    background-color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .author-name {
    color: #fff;
}

body.dark-theme .author-bio {
    color: #aaa;
}

body.dark-theme .author-articles {
    background-color: #2a2a2a;
}

body.dark-theme .author-articles h3 {
    color: #eee;
    border-bottom-color: #444;
}

body.dark-theme .author-articles ul li {
    border-bottom-color: #444;
}

body.dark-theme .author-articles ul li a {
    color: #bbb;
}

body.dark-theme .author-articles ul li a:hover {
    color: #e74c3c;
}

body.dark-theme .article-date {
    color: #888;
}

body.dark-theme .author-link {
    background-color: #e74c3c;
    color: #fff;
}

body.dark-theme .author-link:hover {
    background-color: #c0392b;
}

body.dark-theme .page-link {
    background-color: #333;
    color: #ccc;
}

body.dark-theme .page-link:hover, 
body.dark-theme .page-next:hover {
    background-color: #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .page-link.active {
    background-color: #e74c3c;
    color: #fff;
}

body.dark-theme .ad-banner {
    background-color: #222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} 