/*
Theme Name: Yahoo News Haber Teması
Theme URI: https://example.com/yahoo-news-theme
Author: MiniMax Agent
Author URI: https://minimax.io
Description: Yahoo News tarzında modern ve şık haber portalı WordPress teması. Görsel hiyerarşiye önem veren, temiz tasarım ve mükemmel okunabilirlik sunar.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yahoo-news-theme
Tags: news, magazine, responsive, clean, modern
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #1f1f1f;
    line-height: 1.5;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.utility-nav {
    background: #f7f7f7;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 36px;
    gap: 16px;
    font-size: 13px;
}

.utility-nav a {
    color: #1f1f1f;
    text-decoration: none;
}

.utility-nav a:hover {
    text-decoration: underline;
}

.utility-nav .divider {
    width: 1px;
    height: 16px;
    background: #ccc;
}

.utility-nav .mail-icon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.utility-nav .sign-in {
    color: #6001d2;
    font-weight: 600;
}

.main-nav {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.logo-text .yahoo {
    color: #000;
}

.logo-text .news {
    color: #6001d2;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 48px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #6001d2;
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #6001d2;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-box button svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.category-nav {
    background: #fff;
    padding: 0 24px;
    border-bottom: 1px solid #e5e5e5;
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    height: 44px;
    align-items: center;
}

.category-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.category-nav a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.category-nav a:hover {
    color: #6001d2;
    border-bottom-color: #6001d2;
    text-decoration: none;
}

.category-nav a.active {
    color: #6001d2;
    border-bottom-color: #6001d2;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 32px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
}

.category-badge {
    display: inline-block;
    background: #6001d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1f1f1f;
}

.hero-title:hover {
    color: #6001d2;
    cursor: pointer;
}

.hero-excerpt {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-source {
    font-size: 13px;
    color: #999;
}

.news-source span {
    font-weight: 600;
    color: #6b6b6b;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-card .card-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.featured-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.03);
}

.featured-card .card-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card .card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .card-title:hover {
    color: #6001d2;
    cursor: pointer;
}

.featured-card .card-source {
    font-size: 12px;
    color: #999;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .item-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.news-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.news-item:hover .item-image img {
    transform: scale(1.03);
}

.news-item .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.news-item .item-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item .item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .item-title:hover {
    color: #6001d2;
    cursor: pointer;
}

.news-item .item-excerpt {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.news-item .item-meta .source {
    font-weight: 600;
    color: #6b6b6b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    border-color: #6001d2;
    color: #6001d2;
}

.pagination button.active {
    background: #6001d2;
    border-color: #6001d2;
    color: #fff;
}

.pagination button.next {
    width: auto;
    padding: 0 16px;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: #f7f7f7;
    padding: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 13px;
    color: #6b6b6b;
}

.footer-links a {
    color: #6b6b6b;
}

.footer-links a:hover {
    color: #6001d2;
}

/* Single Page Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.article-category {
    display: inline-block;
    background: #6001d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1f1f1f;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6001d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.author-name {
    font-weight: 600;
    color: #1f1f1f;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date svg {
    width: 16px;
    height: 16px;
    stroke: #999;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
}

.read-time svg {
    width: 16px;
    height: 16px;
    stroke: #999;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #1f1f1f;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #6001d2;
    color: #6001d2;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn.share {
    background: #6001d2;
    border-color: #6001d2;
    color: #fff;
}

.action-btn.share:hover {
    background: #5000c2;
}

.article-hero {
    margin: 0 -24px 32px;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-caption {
    padding: 12px 24px;
    font-size: 13px;
    color: #6b6b6b;
    background: #f7f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.caption-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caption-photo {
    font-weight: 600;
    color: #999;
}

.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #1f1f1f;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body p.lead {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #1f1f1f;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px;
    background: #f7f7f7;
    border-left: 4px solid #6001d2;
    font-style: italic;
    color: #6b6b6b;
}

.article-body blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #1f1f1f;
}

.up-next {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.up-next-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 24px;
}

.up-next-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.up-next-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.up-next-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.up-next-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.up-next-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-next-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.up-next-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.up-next-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f1f1f;
}

.up-next-card:hover .up-next-title {
    color: #6001d2;
}

.up-next-source {
    font-size: 13px;
    color: #999;
}

.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f1f1f;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card .card-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.related-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-card:hover .card-image img {
    transform: scale(1.03);
}

.related-card .card-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card .card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
}

.related-card:hover .card-title {
    color: #6001d2;
}

.related-card .card-source {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }
    
    .search-box {
        order: 3;
        margin: 0;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .category-nav ul {
        overflow-x: auto;
        gap: 0;
    }
    
    .category-nav a {
        padding: 0 12px;
        white-space: nowrap;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item {
        grid-template-columns: 120px 1fr;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .pagination button:nth-child(n+5) {
        display: none;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-actions {
        margin-left: 0;
        margin-top: 16px;
    }
    
    .article-hero {
        margin: 0 -16px 24px;
    }
    
    .article-caption {
        flex-direction: column;
        gap: 8px;
    }
    
    .up-next-card {
        grid-template-columns: 1fr;
    }
    
    .up-next-image {
        aspect-ratio: 16/9;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 100px 1fr;
    }
    
    .utility-nav span:not(.mail-icon):not(.sign-in) {
        display: none;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body p.lead {
        font-size: 18px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 8px;
    }
}/* Google Kaynak Ekle - Başlık altında */
.google-source {
    margin-bottom: 16px;
}

.google-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0056b3;
    text-decoration: none;
}

.google-source-link:hover {
    text-decoration: underline;
}

.google-source-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Paylaş Butonları */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #1f1f1f;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    text-decoration: none;
    border-color: #6001d2;
    color: #6001d2;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-btn.share-x:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.share-btn.share-wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

/* Google Discover Takip Section - Yatay */
.google-follow-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.google-follow-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 16px;
    text-align: center;
}

.google-follow-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.follow-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.follow-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.follow-btn.google-btn {
    background: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.follow-btn.twitter-btn {
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.follow-btn.facebook-btn {
    background: #1877F2;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.follow-btn.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
}

.follow-btn.youtube-btn {
    background: #FF0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Table Styles */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-body table th,
.article-body table td {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.article-body table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #1f1f1f;
}

.article-body table tr:nth-child(even) {
    background: #fafafa;
}

.article-body table tr:hover {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .google-follow-buttons {
        flex-direction: column;
    }
    
    .google-follow-buttons .follow-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .share-btn span {
        display: none;
    }
    
    .share-btn {
        padding: 8px;
    }
}