/* ==========================================================================
   1. KÖK DEĞİŞKENLER (SİTE GENELİ AYARLAR)
   ========================================================================== */
:root {
    /* Renk Paleti */
    --brand-yellow: #ffd100;
    --dark-blue-gradient-start: #2c3a6d;
    --dark-blue-gradient-end: #3a4a8a;
    --text-dark: #202124;
    --text-light: #5f6368;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --background-dark-primary: #1e1f26;
    --background-dark-secondary: #2a2c35;
    --text-on-dark: #d1d1d1;
    --text-white: #ffffff;
    --accent-purple: #6f42c1;

    /* Google Renkleri (SEO Widget için) */
    --google-blue: #4285F4;
    --google-red: #DB4437;
    --google-yellow: #F4B400;
    --google-green: #0F9D58;

    /* Tipografi */
    --font-family-base: 'Montserrat', sans-serif;

    /* Boyutlar ve Boşluklar */
    --max-width-content: 1320px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    
    /* Efektler */
    --box-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

/* ==========================================================================
   2. GENEL SIFIRLAMALAR VE BODY STİLİ
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    background-color: var(--background-white);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: color var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. HEADER (ÜST BÖLÜM)
   ========================================================================== */
.site-header {
    background-color: var(--background-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top-bar {
    height: 6px;
    background-color: var(--brand-yellow);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 15px 40px;
}

.logo a {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    transition: color var(--transition-smooth);
    display: flex;
    align-items: center;
}

.main-navigation ul li a:hover {
    color: #000;
}

.arrow-down {
    border: solid var(--text-dark);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: border-color var(--transition-smooth);
}

.main-navigation ul li a:hover .arrow-down {
    border-color: #000;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.search-icon {
    cursor: pointer;
    margin-left: -35px;
    transition: margin 0.4s ease-in-out;
}

.header-search.active .search-input {
    width: 200px;
    padding-right: 40px;
    opacity: 1;
    visibility: visible;
}

.header-search.active .search-icon {
    margin-left: -30px;
}

/* ==========================================================================
   4. HERO SLIDER (MANŞET)
   ========================================================================== */
.hero-section {
    background-color: var(--brand-yellow);
    padding: 40px 0;
}

.hero-grid {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

.main-post {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    color: var(--text-white);
    min-height: 500px;
    display: flex;
}

.main-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.main-post:hover .main-post-image {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0) 70%);
}

.main-post-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.main-post-content {
    padding: 30px;
}

.post-category {
    background-color: var(--background-white);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.main-post .post-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
}

.thumbnail-nav {
    display: flex;
    gap: 10px;
    padding: 0 30px 20px 30px;
}

.thumbnail-nav img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
    opacity: 0.7;
}

.thumbnail-nav img:hover,
.thumbnail-nav img.active {
    opacity: 1;
    border-color: var(--text-white);
}

/* ==========================================================================
   5. WIDGET BÖLÜMLERİ (SEO, DUYURU vb.)
   ========================================================================== */
.widget-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.widget-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

.widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.widget-header h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.widget-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* SEO Kartları */
.seo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.seo-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.seo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-heavy);
}

.card-image-container {
    border-bottom: 5px solid;
    aspect-ratio: 16 / 10;
}
.seo-card img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.seo-card:nth-child(4n + 1) .card-image-container { border-color: var(--google-blue); }
.seo-card:nth-child(4n + 2) .card-image-container { border-color: var(--google-red); }
.seo-card:nth-child(4n + 3) .card-image-container { border-color: var(--google-yellow); }
.seo-card:nth-child(4n + 4) .card-image-container { border-color: var(--google-green); }

.card-content {
    padding: 20px;
}

.card-content h4 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.widget-footer {
    text-align: center;
    margin-top: 40px;
}

.widget-cta-button {
    display: inline-block;
    background-color: var(--google-blue);
    color: var(--text-white);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.widget-cta-button:hover {
    background-color: #1a73e8;
}

/* ==========================================================================
   6. DUYURU BANNER'I
   ========================================================================== */
.cta-banner-section {
    padding: 30px 0;
    background-color: var(--background-light);
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 25px 40px;
    background: linear-gradient(105deg, var(--dark-blue-gradient-start), var(--dark-blue-gradient-end));
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(44, 58, 109, 0.4);
    transition: transform var(--transition-smooth);
}

.cta-banner:hover {
    transform: translateY(-5px);
}

.banner-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.banner-text .subtitle {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.banner-text .deadline {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #a3b3ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-graphic svg {
    width: 80px;
    height: 80px;
    opacity: 0.15;
    stroke: #a3b3ff;
}

/* ==========================================================================
   7. DERGİ TANITIM BÖLÜMÜ
   ========================================================================== */
.magazine-promo-section {
    --promo-bg-image: url('https://www.transparenttextures.com/patterns/hexellence.png');
    position: relative;
    padding: 80px 0;
    color: var(--text-white);
    background: 
        radial-gradient(circle at center, rgba(20, 22, 30, 0.85) 0%, rgba(10, 11, 15, 0.98) 100%), 
        var(--promo-bg-image);
    background-color: #0a0b0f;
    background-size: auto, 400px;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-text-content .pre-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.promo-text-content h2 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.promo-text-content .description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.promo-button {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    padding: 14px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: all var(--transition-smooth);
}

.promo-button:hover {
    background-color: #ffe04b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 209, 0, 0.2);
}

.promo-image-content img {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.promo-image-content:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* ==========================================================================
   8. EDİTÖRÜN SEÇTİKLERİ
   ========================================================================== */
.editors-picks-section {
    padding: 50px 20px;
    background-color: var(--background-white);
}

.editors-picks-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-header .icon {
    color: var(--google-blue);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

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

.pick-card {
    position: relative;
    display: block;
    padding-top: 125%; /* 4:5 aspect ratio */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    color: var(--text-white);
}

.pick-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pick-card:hover .pick-card-image {
    transform: scale(1.05);
}

.pick-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 20%, transparent 60%);
}

.pick-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.pick-card-content h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.card-top-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-top-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-white);
}

/* ==========================================================================
   9. SON YAZILAR WIDGET'I
   ========================================================================== */
.latest-posts-widget {
    padding: 50px 20px;
    background-color: var(--background-dark-primary);
    color: var(--text-white);
}

.latest-posts-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.latest-posts-container .widget-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-item {
    display: flex;
    gap: 25px;
    background-color: var(--background-dark-secondary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    align-items: center;
}

.post-item-image {
    width: 250px;
    height: 160px;
    flex-shrink: 0;
}
.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.post-item-content {
    flex-grow: 1;
}

.post-item-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}
.post-item-content h3 a {
    color: var(--text-white);
    transition: color var(--transition-smooth);
}
.post-item-content h3 a:hover {
    color: #cccccc;
}

.post-item-content p {
    margin: 0 0 15px 0;
    color: var(--text-on-dark);
    line-height: 1.6;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    width: 16px;
    height: 16px;
}

.post-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.read-time, .share-button {
    background-color: #3b3d49;
    color: var(--text-white);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.read-time span {
    font-size: 1.2rem;
    font-weight: 700;
}

.share-button {
    cursor: pointer;
    transition: background-color var(--transition-smooth);
}

.share-button:hover {
    background-color: #4c4f5c;
}

.share-button svg {
    width: 24px;
    height: 24px;
}

.widget-show-more {
    text-align: center;
    margin-top: 40px;
}

.show-more-button {
    background-color: var(--accent-purple);
    color: var(--text-white);
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: background-color var(--transition-smooth);
}

.show-more-button:hover {
    background-color: #5a359a;
}

/* ==========================================================================
   10. FOOTER (ALT BÖLÜM)
   ========================================================================== */
.site-footer {
    background-color: var(--background-dark-primary);
    color: #adb5bd;
    padding: 70px 0 0 0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #343744;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--brand-yellow);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about {
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #adb5bd;
}

.footer-col ul a:hover {
    color: var(--brand-yellow);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-white);
    margin-right: 10px;
    transition: all var(--transition-smooth);
}

.social-icons a:hover {
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #6c757d;
}

/* ==========================================================================
   11. RESPONSIVE TASARIM (MOBİL UYUMLULUK)
   ========================================================================== */
@media (max-width: 992px) {
    .promo-container {
        grid-template-columns: 1fr;
    }
    .promo-image-content {
        order: -1; /* Resmi yukarı al */
        max-width: 400px;
        margin: 0 auto 40px auto;
    }
    .picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 15px 20px;
    }
    .main-navigation {
        display: none; /* Mobilde navigasyon genellikle farklı bir yapıda olur (hamburger menü) */
    }
    .post-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-item-image {
        width: 100%;
        height: 200px;
    }
    .post-item-content h3 {
        font-size: 1.3rem;
    }
    .post-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    .picks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .pick-card-content h3 {
        font-size: 1rem;
    }
}