/*
 * Eğitimi Planla - Main Stylesheet
 * Dosya: css/styles.css
 * Açıklama: Tüm site stilleri
 */

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
    font-family: 'Segoe UI', Verdana, Geneva, Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #374151;
    line-height: 1.7;
}

/* ============================================
   HEADER
   ============================================ */

header {
    background: linear-gradient(135deg, #00539f 0%, #004080 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-top {
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 10001;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: transparent;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
    position: relative;
    overflow: visible;
}

@media (max-width: 1024px) {
    .nav-container {
        overflow-x: auto;
    }
    
    .nav-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .nav-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 4px;
    }
}

.nav-item {
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: static;
}

.nav-item:hover, 
.nav-item.active {
    color: white;
    border-bottom-color: #a8b450;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.nav-item.has-dropdown {
    cursor: pointer;
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 99999;
    pointer-events: none;
    margin-top: 0;
}

.nav-item.has-dropdown:hover .dropdown,
.dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: #e8f4f8;
    color: #00539f;
    padding-left: 1.5rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* ============================================
   ARTICLES
   ============================================ */

.articles-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-header {
    padding:  0.5rem 0.75rem;
    background: #FFF;
    /* border-bottom: 3px solid #5dade2;
    border-top: 4px solid #00539f; */
	border-bottom: 4px solid #00539f;
    transition: all 0.3s ease;
}

.article-card:hover .article-header {
   
	border-bottom-color: #a8b450;
    background: #FFF;
}

.article-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.article-category {
    display: inline-block;
    background: #00539f;;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
	margin-top: 0.5rem;
}

.article-title {
    font-size: 1.3rem;
    color: #00539f;
    margin-bottom: 0;
    font-weight: 600;
}

.article-meta {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
	margin-left: 0.5rem;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.article-thumbnail {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f4f8 0%, #c9e6f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid #5dade2;
}

.article-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-excerpt {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #00539f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid #00539f;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    background: #00539f;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 83, 159, 0.3);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #5dade2;
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
	flex-wrap: nowrap;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: #5dade2;
}

.search-button {
    padding: 0.75rem 1rem;
    flex-shrink: 0;  /* ← Bunu ekleyin - butonun küçülmesini engeller */
    white-space: nowrap;  /* ← Bunu ekleyin - "Ara" yazısının kırılmasını engeller */
    background: #00539f;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #004080;
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover {
    background: #e8f4f8;
    color: #00539f;
    transform: translateX(5px);
}

.category-count {
    background: #00539f;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.resource-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #e8f4f8;
    border-left: 4px solid #5dade2;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-item:hover {
    background: #c9e6f5;
    transform: translateX(5px);
    border-left-color: #a8b450;
}

.resource-title {
    font-weight: 600;
    color: #004080;
    margin-bottom: 0.25rem;
}

.resource-type {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #004080 0%, #003060 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #c9e6f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.accent-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #a8b450;
    border-radius: 50%;
    margin: 0 0.5rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #00539f 0%, #004080 100%);
        transition: left 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        padding-top: 80px;
    }

    nav.active {
        left: 0;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem;
        overflow: visible;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom-width: 1px;
        text-align: left;
    }

    .nav-item:hover, 
    .nav-item.active {
        background: rgba(255, 255, 255, 0.15);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nav-item.has-dropdown {
        position: relative;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        pointer-events: auto;
    }

    .nav-item.has-dropdown.active .dropdown {
        max-height: 500px;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.75rem 1.5rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #a8b450;
        padding-left: 2rem;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
    }

    .header-container > div:last-child {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .article-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .article-content {
        flex-direction: column;
    }

    .article-thumbnail {
        width: 100%;
        height: 200px;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .sidebar {
        order: -1;
    }
}

/* ============================================
   TOOL CARDS SECTION
   ============================================ */

.tool-cards-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #00539f;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-top-color: #a8b450;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tool-description {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tool-link {
    display: inline-block;
    color: #00539f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid #00539f;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: #00539f;
    color: white;
}

/* ============================================
   ARTICLE TAGS & FOOTER
   ============================================ */

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: #e8f4f8;
    color: #00539f;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #00539f;
    color: white;
    cursor: pointer;
}

/* Article category and author links */
.article-category {
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-category:hover {
    background: #a8ba50;
	color: #FFF;
  /* transform: scale(1.05); */
}

.author-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: #00539f;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE - TOOL CARDS
   ============================================ */

@media (max-width: 768px) {
    .tool-cards-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-tags {
        width: 100%;
    }
}

/* ============================================
   BLOG SINGLE PAGE STYLES
   styles.css dosyanızın SONUNA ekleyin
   ============================================ */

.single-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.single-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   SINGLE HEADER
   ============================================ */

.single-header {
    padding: 1rem;
    background: white;  /* Beyaz yap */
    border-top: 4px solid #00539f;  /* Sadece üstte çizgi */
    border-bottom: 1px solid #e5e7eb;
	z-index:99;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #00539f;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #004080;
    text-decoration: underline;
}

.single-category {
    display: inline-block;
    background: #00539f;
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.single-category:hover {
    background: #a8b450;
}

.single-title {
    font-size: 1.8rem;
    color: #00539f;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4f8 0%, #c9e6f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid #5dade2;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #00539f;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.author-name:hover {
    color: #004080;
}

.author-title {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.single-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.featured-image {
    margin: 0;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   ARTICLE BODY
   ============================================ */

.article-body {
    padding: 3rem 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #374151;
	font-family: Tahoma, 'Segoe UI', Verdana, Geneva, sans-serif;
	text-align: justify;
}

.article-intro {
    font-size: 1.25rem;
    color: #004080;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #5dade2;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #00539f;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #004080;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-body h4 {
    font-size: 1.2rem;
    color: #00539f;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: #00539f;
    font-weight: 600;
}

.quote {
    background: #e8f4f8;
    border-left: 4px solid #5dade2;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.15rem;
    border-radius: 0 8px 8px 0;
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: normal;
}

.info-box {
    background: #f0f9ff;
    border: 2px solid #5dade2;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    margin-top: 0;
    color: #00539f;
}

/* ============================================
   ATTACHED FILES
   ============================================ */

.attached-files {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.attached-files h3 {
    font-size: 1.3rem;
    color: #004080;
    margin-bottom: 1rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #5dade2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.file-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4f8;
    border-radius: 8px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #004080;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.file-download {
    padding: 0.5rem 1.5rem;
    background: #00539f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-download:hover {
    background: #004080;
}

/* ============================================
   MEDIA GALLERY
   ============================================ */

.media-gallery {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
}

.media-gallery h3 {
    font-size: 1.3rem;
    color: #004080;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid #5dade2;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    border-color: #a8b450;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-caption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ============================================
   ARTICLE ACTIONS
   ============================================ */

.article-actions {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================
   AUTHOR BIO
   ============================================ */

.author-bio {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4f8 100%);
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid #5dade2;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-size: 1.3rem;
    color: #00539f;
    margin-bottom: 0.25rem;
}

.author-bio-title {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.author-bio-description {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-bio-link {
    display: inline-block;
    color: #00539f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.author-bio-link:hover {
    color: #004080;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
}

.related-articles h3 {
    font-size: 1.5rem;
    color: #004080;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #5dade2;
}

.related-thumb {
    height: 150px;
    background: linear-gradient(135deg, #e8f4f8 0%, #c9e6f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background: #00539f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.related-card h4 {
    color: #004080;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   RESPONSIVE - BLOG SINGLE
   ============================================ */

@media (max-width: 768px) {
    .single-container {
        padding: 0 1rem;
    }

    .single-header {
        padding: 1.5rem 1rem;
    }

    .single-title {
        font-size: 1.6rem;
    }

    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article-stats {
        gap: 1rem;
    }

    .article-body {
        padding: 2rem 1rem;
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-bio-avatar {
        margin: 0 auto;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* ============================================
   ARCHIVE / LISTING PAGES
   styles.css dosyanızın SONUNA ekleyin
   ============================================ */

.archive-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ============================================
   ARCHIVE HEADER (Kategori Sayfası)
   ============================================ */

.archive-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4f8 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #00539f;
}

.archive-title-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.archive-icon {
    font-size: 4rem;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #5dade2;
    flex-shrink: 0;
}

.archive-title {
    font-size: 2.5rem;
    color: #00539f;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.archive-meta {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 83, 159, 0.2);
    color: #6b7280;
    font-size: 0.95rem;
}

.meta-count,
.meta-last-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-count strong {
    color: #00539f;
    font-size: 1.2rem;
}

/* ============================================
   AUTHOR PROFILE HEADER (Yazar Sayfası)
   ============================================ */

.author-profile-header {
    margin-bottom: 2rem;
}

.author-profile-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4f8 100%);
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    gap: 2rem;
    border-left: 5px solid #00539f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 5px solid #5dade2;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-profile-info {
    flex: 1;
}

.author-profile-name {
    font-size: 2.5rem;
    color: #00539f;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.author-profile-title {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.author-profile-bio {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.author-profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 2px solid rgba(0, 83, 159, 0.2);
    border-bottom: 2px solid rgba(0, 83, 159, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00539f;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.author-profile-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00539f;
    border-color: #00539f;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 83, 159, 0.3);
}

.author-profile-specialties h3 {
    font-size: 1.1rem;
    color: #004080;
    margin-bottom: 0.75rem;
}

.specialty-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.specialty-tag {
    background: white;
    color: #00539f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #5dade2;
    transition: all 0.2s ease;
}

.specialty-tag:hover {
    background: #00539f;
    color: white;
    border-color: #00539f;
}

/* ============================================
   FILTER BAR
   ============================================ */

.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #5dade2;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #5dade2;
}

.filter-select:focus {
    outline: none;
    border-color: #00539f;
    box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.view-btn:hover {
    border-color: #5dade2;
    color: #00539f;
}

.view-btn.active {
    background: #00539f;
    border-color: #00539f;
    color: white;
}

.results-info {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.results-info strong {
    color: #00539f;
    font-size: 1.1rem;
}

/* ============================================
   ARCHIVE GRID
   ============================================ */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ============================================
   GRID CARD
   ============================================ */

.grid-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid #5dade2;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-top-color: #a8b450;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e8f4f8 0%, #c9e6f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 2px solid #5dade2;
    transition: all 0.3s ease;
}

.grid-card:hover .card-thumbnail {
    background: linear-gradient(135deg, #5dade2 0%, #00539f 100%);
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background: #00539f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.grid-card:hover .card-category {
    background: #a8b450;
}

.card-title {
    font-size: 1.25rem;
    color: #00539f;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-author,
.card-date,
.card-reading {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ============================================
   LIST VIEW (FINAL HİZALAMA ÇÖZÜMÜ)
   ============================================ */

.archive-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0;
}

.archive-grid.list-view .grid-card {
    display: flex;
    flex-direction: row; /* GÖRSELİ VE İÇERİĞİ YAN YANA DİZER */
    align-items: stretch;
    border-top: none; 
    border-left: 3px solid #5dade2; 
    min-height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
}

.archive-grid.list-view .card-link {
    display: flex;
    flex-direction: row; 
    width: 100%;
    min-width: 0; 
}

.archive-grid.list-view .card-thumbnail {
    /* ! KESİN ÇÖZÜM: Görseli dikeyde ortala ve sabit genişliği koru */
    width: 250px; /* 200px yerine 250px ile HTML'deki gibi deneyelim */
    max-width: 250px;
    height: auto;
    min-height: 100%; 
    flex-shrink: 0;
    border-bottom: none;
    border-right: 2px solid #e5e7eb;
    margin: 0; /* Boşlukları sıfırla */
    padding: 0;
    
    /* Gerekirse ikonun dikeyde ortalanması için */
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}

.archive-grid.list-view .card-content {
    flex: 1;
    padding: 1.5rem 2rem;
    min-width: 0; /* KRİTİK: Metin taşmasını engeller */
    overflow: hidden;
}

.archive-grid.list-view .card-title {
    /* Başlıkta metin kırılmasını zorla */
    white-space: normal; 
    word-break: break-word;
    -webkit-line-clamp: 2; 
    line-height: 1.3;
}

.archive-grid.list-view .card-excerpt {
    /* Özette metin kırılmasını zorla */
    white-space: normal;
    word-break: break-word;
    -webkit-line-clamp: 3;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #00539f;
    border-color: #00539f;
    color: white;
}

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

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================
   PAGINATION FIX - Sayfa Numaraları Ortala
   ============================================ */

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.pagination-number:hover {
    background: #e8f4f8;
    border-color: #5dade2;
    color: #00539f;
}

.pagination-number.active {
    background: #00539f;
    border-color: #00539f;
    color: white;
}

/* Mobile uyumlu */
@media (max-width: 768px) {
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

.pagination-dots {
    color: #9ca3af;
    padding: 0 0.5rem;
}

/* ============================================
   RESPONSIVE - ARCHIVE PAGES
   ============================================ */

@media (max-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .archive-container {
        padding: 0 1rem;
    }

    .archive-header {
        padding: 1.5rem;
    }

    .archive-title-section {
        flex-direction: column;
        text-align: center;
    }

    .archive-icon {
        margin: 0 auto;
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }

    .archive-title {
        font-size: 2rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .archive-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Author Profile Mobile */
    .author-profile-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .author-profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 4rem;
        margin: 0 auto;
    }

    .author-profile-name {
        font-size: 2rem;
    }

    .author-profile-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .author-profile-social {
        justify-content: center;
    }

    .specialty-tags {
        justify-content: center;
    }

    /* Filter Bar Mobile */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    /* Grid Mobile */
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-grid.list-view .grid-card {
        flex-direction: column;
    }

    .archive-grid.list-view .card-thumbnail {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 2px solid #5dade2;
    }

    .archive-grid.list-view .card-content {
        padding: 1.5rem;
    }

    .archive-grid.list-view .card-title {
        font-size: 1.25rem;
    }

    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .pagination-numbers {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
    }

    .pagination-numbers .pagination-number:not(.active):nth-child(n+3):nth-last-child(n+3) {
        display: none;
    }
}

/**
 * ============================================================
 * GRID CARD THUMBNAIL OVERLAY STİLLERİ
 * ============================================================
 * 
 * yazar.php ve kategori.php'de kullanılacak
 * 
 * Kullanım:
 * - Resim wrapper: class="card-thumbnail-wrapper"
 * - Resim container: class="card-thumbnail"
 * - Kategori adı overlay: class="card-category card-category--overlay"
 */

/* Resim wrapper - relative positioning için */
.card-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* Fixed height resim container */
.card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    object-fit: cover;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Resimler bozulmadan sığdırılır */
.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   OVERLAY KATEGORİ ADLARI (Resim Üzerine Sol Alt)
   ============================================================ */

/* Base overlay styles */
.card-category--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: auto;
    background: linear-gradient(135deg, #003d82 0%, #00539f 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 0;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    z-index: 10;
}

/* Overlay link stillemesi */
.card-category--overlay a {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.card-category--overlay a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE AYARLAMALAR
   ============================================================ */

@media (max-width: 768px) {
    .card-thumbnail {
        height: 150px;
    }
    
    .card-category--overlay {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .card-thumbnail {
        height: 120px;
    }
    
    .card-category--overlay {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}