/* FontAwesome artık CDN'den yükleniyor - header.php */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.5;
    color: #333;
    letter-spacing: -0.01em;
}

/* Ana sayfa için özel body sınıfı */
body.homepage {
    overflow: hidden;
}

/* Diğer sayfalar için normal overflow */
body.inner-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    list-style: none;
    text-align: center;
}

.nav-menu ul li {
    margin: 30px 0;
}

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu ul li a:hover {
    color: #f0f0f0;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

/* Main Content - Homepage */
body.homepage .main-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    padding: 0;
    overflow: hidden;
}

/* Main Content - Inner Pages */
body.inner-page .main-content {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    padding: 0;
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    padding: 20px;
}

.profile-container {
    animation: fadeInUp 1s ease;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.1);
}

/* Name and Title */
.name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    animation: fadeInUp 1s ease 0.2s both;
}

.title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4a4a4a;
    letter-spacing: -0.01em;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        padding: 5px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .nav-menu ul li a {
        font-size: 1.5rem;
    }
    
    .profile-container {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .name {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        height: 60px;
        padding: 0 15px;
    }
    
    /* Ana sayfa için padding kaldır */
    body.homepage .main-content {
        padding: 0;
    }
    
    /* Diğer sayfalar için padding */
    body.inner-page .main-content {
        padding-top: 60px;
    }
    
    .profile-container {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .name {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .nav-menu ul li a {
        font-size: 1.2rem;
    }
    
    .nav-menu ul li {
        margin: 20px 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for profile image */
.profile-image img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-image img.loaded {
    opacity: 1;
}

/* Page Section Styles for other pages */
.page-section {
    min-height: calc(100vh - 70px);
    padding: 120px 20px 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.page-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Body loaded state */
body.loaded {
    opacity: 1;
}

/* Additional animation class */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* About Page Styles */
.about-section {
    padding: 90px 20px 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.cv-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.about-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 40px 40px 20px 40px;
    margin: 0;
    border-bottom: 2px solid #e0e0e0;
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 600px;
}

/* Sol Sütun - Sidebar */
.cv-sidebar {
    background: #f8f9fa;
    padding: 40px 30px;
    border-right: 2px solid #e0e0e0;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.cv-profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cv-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 0;
}

.info-item .icon {
    font-size: 1.1rem;
    margin-right: 15px;
    min-width: 20px;
    color: #1a1a1a;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-content .label {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.9rem;
    margin-bottom: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.info-content .value {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Sağ Sütun - Main Content */
.cv-main {
    padding: 40px;
    background: #ffffff;
}

.content-section {
    line-height: 1.8;
}

.intro-text {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: justify;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.content-text {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 20px;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: justify;
    line-height: 1.7;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-section {
        padding: 90px 15px 30px 15px;
    }
    
    .cv-content {
        grid-template-columns: 1fr;
    }
    
    .cv-sidebar {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 30px 25px;
    }
    
    .cv-main {
        padding: 30px 25px;
    }
    
    .about-title {
        font-size: 2rem;
        padding: 30px 25px 15px 25px;
    }
    
    .cv-profile-image {
        width: 120px;
        height: 120px;
    }
    
    .cv-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 80px 10px 20px 10px;
    }
    
    .cv-card {
        border-radius: 15px;
    }
    
    .about-title {
        font-size: 1.8rem;
        padding: 25px 20px 12px 20px;
    }
    
    .cv-sidebar {
        padding: 25px 20px;
    }
    
    .cv-main {
        padding: 25px 20px;
    }
    
    .cv-profile-image {
        width: 100px;
        height: 100px;
    }
    
    .intro-text, .content-text {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .info-item {
        margin-bottom: 10px;
        padding: 5px 0;
    }
    
    .info-item .icon {
        font-size: 1rem;
        margin-right: 12px;
        min-width: 18px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 90px 20px 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.contact-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    padding: 40px 40px 20px 40px;
    margin: 0;
    border-bottom: 2px solid #e0e0e0;
    letter-spacing: -0.02em;
}

.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.form-group input[type="text"],
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    transition: border-color 0.3s ease;
    background: #ffffff;
    letter-spacing: -0.01em;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Sender Buttons */
.sender-buttons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.sender-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a4a4a;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: -0.01em;
    min-width: 100px;
}

.sender-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.sender-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Grade Buttons */
.grade-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.grade-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a4a4a;
    font-size: 0.85rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.grade-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.grade-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Message Options */
.message-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.message-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.message-option:hover {
    border-color: #1a1a1a;
    background: #ffffff;
}

.message-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    min-width: 18px;
}

.option-text {
    color: #4a4a4a;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.message-option input[type="radio"]:checked + .option-text {
    color: #1a1a1a;
    font-weight: 600;
}

/* Custom Message Box */
.custom-message-box {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

.custom-message-box textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.custom-message-box textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 100%;
    padding: 15px 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 30px;
    letter-spacing: -0.01em;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: initial;
    }
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-section {
        padding: 90px 15px 30px 15px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .contact-title {
        font-size: 2rem;
        padding: 30px 25px 15px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sender-buttons {
        gap: 10px;
    }
    
    .sender-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .grade-buttons {
        gap: 8px;
    }
    
    .grade-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 80px 10px 20px 10px;
    }
    
    .contact-card {
        border-radius: 15px;
    }
    
    .contact-title {
        font-size: 1.8rem;
        padding: 25px 20px 12px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-row {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .grade-buttons {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }
    
    .message-option {
        padding: 12px;
    }
    
    .whatsapp-btn {
        font-size: 1rem;
        padding: 12px 18px;
    }
}

/* Blog Page Styles */
.blog-section {
    padding: 90px 20px 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.blog-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.blog-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    padding: 40px 40px 20px 40px;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px 30px 40px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.filter-btn:hover {
    background: #ffffff;
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Arama Toggle Butonu */
.search-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    margin-left: 10px;
    cursor: pointer;
}

.search-toggle-btn:hover {
    background: #ffffff;
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* Mobil dokunmatik için aktif durum */
.search-toggle-btn:active {
    background: #e0e0e0;
    transform: translateY(0);
}

/* Touch cihazlarda hover problemini önle */
@media (hover: none) and (pointer: coarse) {
    .search-toggle-btn:hover {
        background: #f8f9fa;
        border-color: #e0e0e0;
        color: #4a4a4a;
        transform: none;
    }
}

.search-toggle-btn.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.search-toggle-btn i {
    font-size: 0.9rem;
}

/* Arama Çubuğu */
.search-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.search-results-info {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Responsive tasarım için arama öğeleri */
@media (max-width: 768px) {
    .category-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-toggle-btn {
        margin-left: 0;
        order: -1; /* Mobilde ilk sıraya koy */
        margin-right: 10px;
        /* Mobilde touch için daha büyük alan */
        padding: 12px 16px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .search-container {
        margin-top: 15px;
        padding: 15px;
    }
    
    .search-input {
        font-size: 16px; /* iOS'ta zoom'u önlemek için */
        padding: 14px 16px 14px 45px; /* Mobilde daha büyük padding */
    }
    
    .clear-search-btn {
        width: 32px;
        height: 32px;
        right: 8px;
    }
}

/* No Posts Message */
.no-posts {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a4a4a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.no-posts p {
    font-size: 1rem;
    margin-bottom: 25px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

/* Blog Posts Grid */
.blog-posts-grid {
    padding: 40px;
}

#posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-image .category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    font-weight: 500;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-date {
    color: #666;
    font-size: 0.85rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.post-category {
    background: #1a1a1a;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.post-excerpt {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.read-more:hover {
    color: #4a4a4a;
    border-bottom-color: #4a4a4a;
}

.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Blog Post Detail Styles */
.blog-post-section {
    padding: 90px 20px 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.blog-post-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.blog-post-card-detail {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.blog-post-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 600px;
}

/* Main Content - Left Side (2/3) */
.blog-main {
    padding: 40px;
    background: #ffffff;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post-date {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.blog-post-category {
    background: #1a1a1a;
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    line-height: 1.6;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 24px 0 12px 0;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 10px 0;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.blog-content p {
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 12px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    text-align: justify;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.blog-content ul, .blog-content ol {
    margin: 5px 0;
    padding-left: 25px;
}

.blog-content li {
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 4px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* LaTeX Formülleri için özel stiller */
.blog-content .MathJax {
    display: inline !important;
    font-size: 1em !important;
    vertical-align: baseline !important;
}

.blog-content .MathJax_Display {
    margin: 10px 0 !important;
    text-align: center !important;
}

/* Satır içi formüller - normal metin akışında */
.blog-content mjx-container[jax="CHTML"][display="false"] {
    display: inline !important;
    margin: 0 2px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    vertical-align: baseline !important;
}

/* Blok formüller - merkezi ve vurgulu */
.blog-content mjx-container[jax="CHTML"][display="true"] {
    display: block !important;
    margin: 15px 0 15px 20px !important;
    padding: 12px !important;
    text-align: center !important;
    background: rgba(103, 126, 234, 0.05) !important;
    border: 1px solid rgba(103, 126, 234, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.08) !important;
    max-width: fit-content !important;
}

/* Images in blog content */
.blog-content img,
.blog-content .blog-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover,
.blog-content .blog-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Links in blog content */
.blog-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Code blocks */
.blog-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.blog-content code {
    background: rgba(103, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
}

.blog-content pre code {
    background: none;
    color: #2d3748;
    padding: 0;
}

/* Grav Tarzı Bilgi Kutuları (Admonitions) */
.blog-content .admonition {
    margin: 15px 0;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-left: 4px solid;
}

.blog-content .admonition-title {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content .admonition-title i {
    margin-right: 8px;
    font-size: 1.1em;
}

.blog-content .admonition-content {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
}

.blog-content .admonition-content p:last-child {
    margin-bottom: 0;
}

/* Ardışık öğeler arası boşlukları optimize et */
.blog-content h2 + p,
.blog-content h3 + p {
    margin-top: 0;
}

.blog-content p + ul,
.blog-content p + ol {
    margin-top: 8px;
}

.blog-content ul + p,
.blog-content ol + p {
    margin-top: 12px;
}

.blog-content .admonition + p {
    margin-top: 15px;
}

.blog-content p + .admonition {
    margin-top: 15px;
}

/* Bilgi kutusu türleri */
.blog-content .admonition.note {
    border-left-color: #3498db;
}

.blog-content .admonition.note .admonition-title {
    background: #3498db;
    color: white;
}

.blog-content .admonition.tip {
    border-left-color: #2ecc71;
}

.blog-content .admonition.tip .admonition-title {
    background: #2ecc71;
    color: white;
}

.blog-content .admonition.warning {
    border-left-color: #f39c12;
}

.blog-content .admonition.warning .admonition-title {
    background: #f39c12;
    color: white;
}

.blog-content .admonition.danger {
    border-left-color: #e74c3c;
}

.blog-content .admonition.danger .admonition-title {
    background: #e74c3c;
    color: white;
}

.blog-content .admonition.info {
    border-left-color: #9b59b6;
}

.blog-content .admonition.info .admonition-title {
    background: #9b59b6;
    color: white;
}

.blog-content .admonition.success {
    border-left-color: #27ae60;
}

.blog-content .admonition.success .admonition-title {
    background: #27ae60;
    color: white;
}

.blog-content .admonition.question {
    border-left-color: #8e44ad;
}

.blog-content .admonition.question .admonition-title {
    background: #8e44ad;
    color: white;
}

/* Sidebar - Right Side (1/3) */
.blog-sidebar {
    background: #f8f9fa;
    padding: 40px 30px;
    border-left: 2px solid #e0e0e0;
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.sidebar-title {
    font-size: 0.95rem;
    color: #4a4a4a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    letter-spacing: -0.01em;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 12px;
}

.recent-posts a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #1a1a1a;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

/* FontAwesome Icon Fix - Sosyal Medya */
.social-link i {
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    display: inline-block !important;
}

.social-link .fab,
.social-link .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.social-link .fas,
.social-link .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}



/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-section, .blog-post-section {
        padding: 90px 15px 30px 15px;
    }
    
    .blog-posts-grid {
        padding: 30px 25px;
    }
    
    #posts-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-title {
        font-size: 2rem;
        padding: 30px 25px 20px 25px;
    }
    
    .blog-post-content {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        border-left: none;
        border-top: 2px solid #e0e0e0;
        padding: 30px 25px;
    }
    
    .blog-main {
        padding: 30px 25px;
    }
    
    .blog-post-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .blog-section, .blog-post-section {
        padding: 80px 10px 20px 10px;
    }
    
    .blog-card, .blog-post-card-detail {
        border-radius: 15px;
    }
    
    .blog-title {
        font-size: 1.8rem;
        padding: 25px 20px 15px 20px;
    }
    
    .blog-posts-grid {
        padding: 25px 20px;
    }
    
    #posts-container {
        gap: 20px;
    }
    
    .blog-post-card {
        border-radius: 12px;
    }
    
    .post-content {
        padding: 20px 15px;
    }
    
    .blog-main, .blog-sidebar {
        padding: 25px 20px;
    }
    
    .sidebar-profile-image {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Blog Post Additional Styles */
.blog-featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.back-to-blog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    gap: 20px;
}

.back-link, .category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover, .category-link:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
    background: #f8f9fa;
}

.contact-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
}

.contact-cta h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.contact-cta p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive for back links */
@media (max-width: 768px) {
    .back-to-blog {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-link, .category-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .category-filters {
        padding: 15px 25px 20px 25px;
        gap: 8px;
    }
}

/* Pagination Styles */
.pagination, .pagination-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
    flex-wrap: wrap;
}

.pagination .pagination-content {
    margin-top: 0;
    padding: 0;
}

.page-btn {
    padding: 10px 15px;
    background: white;
    color: #4a4a4a;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 45px;
    justify-content: center;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #4299e1;
    color: #4299e1;
    transform: translateY(-1px);
}

.page-btn.current {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    cursor: default;
}

.page-btn.current:hover {
    transform: none;
}

.page-btn.prev,
.page-btn.next {
    padding: 10px 18px;
    font-weight: 500;
}

.page-btn.prev:hover,
.page-btn.next:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner p {
    color: #666;
    font-weight: 500;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-posts h3 {
    color: #4a4a4a;
    font-weight: 600;
    margin-bottom: 5px;
}

.no-posts p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pagination {
        margin-top: 30px;
        padding: 15px;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .page-btn.prev,
    .page-btn.next {
        padding: 8px 15px;
    }
}

/* Blog Grid Fix - En yüksek öncelik */
#posts-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
}

/* Desktop için 2 sütun zorlama */
@media (min-width: 768px) {
    #posts-container {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 767px) {
    #posts-container {
        grid-template-columns: 1fr !important;
    }
}

/* FontAwesome Icon Fix - Geliştirilmiş versiyon */
.fas, .far, .fab, .fal, .fat, .fad {
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

.fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

/* Brand ikonları için özel tanımlama */
.fa-instagram, .fa-twitter, .fa-facebook, .fa-linkedin, .fa-youtube, .fa-whatsapp {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: normal !important;
}

/* Icon yüklenmeyen durumlarda fallback */
i[class*="fa-"]:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Kategori filtre butonlarındaki ikonlar için */
.filter-btn i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Database'den gelen ikonlar için fas class'ı ekleme */
i[class^="fa-"], i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Kategori placeholder'daki ikonlar için */
.category-placeholder i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}