* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: #f8f9fa;
}

header {
    background: linear-gradient(to right, #2c3e50, #3498db);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.logo-container i {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-text span {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.post-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-weight: normal;
}

.post-title i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

main {
    max-width: 1200px;
    margin: 6rem auto 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.blog-posts {
    display: grid;
    gap: 2rem;
}

.post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    border: 1px solid #eee;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: #ffffff;
}

.post img {
    width: 90%;
    height: 250px;
    object-fit: cover;
    margin: 15px auto;
    display: block;
    transition: transform 0.3s ease;
}

.post:hover img {
    transform: scale(1.02);
}

.post-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(5px);
}

.post h2 {
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.post:hover h2 {
    color: #007bff;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-meta i {
    margin-right: 5px;
    color: #007bff;
}

.read-more {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more:hover {
    background-color: #0056b3;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

footer {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    text-align: center;
}

.footer-logo p {
    color: #ecf0f1;
    font-size: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.copyright p {
    margin: 0;
    color: #ecf0f1;
    font-size: 0.8rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    /* Bu kısmı da kaldırıyoruz çünkü nav-links artık yok
    .nav-links {
        display: none;
    }
    */
}

/* Blog detay sayfası stilleri */
.post-detail {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: none;
}

.post-detail:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #ffffff;
}

/* Post detay içeriği için hover efektlerini kaldır */
.post-detail .post-content {
    background: #ffffff;
    backdrop-filter: none;
    transition: none;
}

.post-detail .post-content:hover {
    transform: none;
}

/* Post detay başlığı için hover efektini kaldır */
.post-detail h2 {
    transition: none;
}

.post-detail h2:hover {
    color: #333;
}

.post-detail h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.post-body {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body h2 {
    margin: 2rem 0 1rem 0;
    color: #444;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tags i {
    color: #007bff;
}

.tags a {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.tags a:hover {
    background-color: #f0f0f0;
    color: #666;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
}

.back-button:hover {
    background-color: #007bff;
}

@media (max-width: 768px) {
    .post-detail h1 {
        font-size: 2rem;
    }

    .post-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .tags {
        flex-wrap: wrap;
    }
}

/* Blog detay sayfası görsel stilleri */
.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery figure, .single-image {
    margin: 0;
}

.image-gallery img, .single-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.image-gallery img:hover, .single-image img:hover {
    transform: none;
}

figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.single-image {
    margin: 2rem 0;
}

/* Mobil görünüm için düzenlemeler */
@media (max-width: 768px) {
    .post-detail {
        padding-top: 300px; /* Mobilde daha küçük padding */
    }

    .main-image {
        height: 300px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-gallery img, .single-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .logo-container i {
        font-size: 1.2rem;
    }
}

/* Mobil görünüm için düzenlemeler */
@media (max-width: 768px) {
    .footer-content {
        gap: 1rem;
    }

    .footer-logo h3 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

/* Accordion stilleri */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: #e9ecef;
}

.accordion-button::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.accordion-content.active {
    padding: 1rem;
    max-height: 500px;
}

.accordion-content p {
    margin: 0;
    color: #666;
}

/* Banner stil güncellemeleri */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.post-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-weight: normal;
}

.post-title i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog detay sayfası için tüm hover efektlerini kaldır */
.post-detail,
.post-detail *,
.post-detail *:hover,
.post-detail *:active,
.post-detail *:focus {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    color: initial !important;
}

/* Sabit renkler için özel stiller */
.post-detail h1 { color: #333 !important; }
.post-detail h2 { color: #333 !important; }
.post-detail h3 { color: #333 !important; }
.post-detail p { color: #555 !important; }
.post-detail a { color: #007bff !important; }

/* Back button için sabit stil */
.post-detail .back-button {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Tag'ler için sabit stil */
.post-detail .tags a {
    background-color: #f0f0f0 !important;
    color: #666 !important;
}

/* blog1.html sayfası için tüm hover efektlerini kaldır */
.post-detail {
    transform: none !important;
    transition: none !important;
}

.post-detail * {
    pointer-events: none !important;
}

.post-detail a,
.post-detail .back-button,
.post-detail .tags a,
.post-detail .accordion-button {
    pointer-events: auto !important;
}

.post-detail h1,
.post-detail h2,
.post-detail h3,
.post-detail p,
.post-detail span,
.post-detail div {
    color: inherit !important;
    transform: none !important;
    transition: none !important;
}

.post-detail img {
    transform: none !important;
    transition: none !important;
}

.post-detail .back-button {
    background-color: #007bff !important;
    color: white !important;
}

.post-detail .tags a {
    background-color: #f0f0f0 !important;
    color: #666 !important;
}

.post-detail a {
    color: #007bff !important;
}

/* Üst geri dönüş butonu için stil */
.top-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.top-back-button i {
    font-size: 1.2rem;
}

/* Alert başlık stili */
.alert.alert-success {
    background-color: #007bff !important;
    color: white !important;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border: none;
}

.alert.alert-success h3 {
    color: white !important;
    margin: 0;
}





/* MOBİL UYUMLU GÜNCELLEMELER */
.post-separator {
    height: 1px;
    background: #eee;
    margin: 2rem 0;
}

.info-message {
    display: block;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #666;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .post {
        margin: 0 -1rem;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .post-content {
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.3rem !important;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .read-more {
        width: 100%;
        text-align: center;
    }
}

/* BLOG DETAY SAYFASI */
.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

    .post-body table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    .post-body iframe {
        max-width: 100%;
    }

/* MOBIL STILLER */
@media (max-width: 768px) {
    .blog-content h1 {
        font-size: 1.8rem;
    }

    .author-info {
        margin-bottom: 1rem;
    }
}
