/* =================================================================
   FUTURISTIC BLOG TASARIMI
   Renk Paleti: Turuncu, Siyah, Gri, Beyaz
   ================================================================= */

/* =======================================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR
   ======================================================= */
:root {
    --color-black: #0D0D0D;           /* Ana Arka Plan Rengi */
    --color-dark-gray: #1A1A1A;       /* Kart ve Footer Arka Planı */
    --color-border: #333333;          /* Kenarlık Rengi */
    --color-orange: #FF4500;          /* Ana Vurgu Rengi (Turuncu) */
    --color-orange-glow: rgba(255, 69, 0, 0.5); /* Parlama Efekti İçin */
    --color-light-gray: #BDBDBD;      /* Normal Metin Rengi */
    --color-white: #F5F5F5;           /* Başlıklar ve Vurgulu Metinler */
    --font-family: 'Poppins', sans-serif; /* Modern Font Ailesi */
}

/* Temel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-black);
    color: var(--color-light-gray);
    font-family: var(--font-family);
    line-height: 1.7;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

img {
    max-width: 100%;
    display: block;
}


/* =======================================================
   2. HEADER VE NAVİGASYON - HEADER.PHP'DE TANIMLANDI
   ======================================================= */
/* Header stilleri header.php dosyasında tanımlanmıştır */


/* =======================================================
   3. GENEL SAYFA STİLLERİ (index.php hariç)
   ======================================================= */
.main-content {
    padding-top: 0; /* Ana sayfa için header overlap'i kaldır */
}

/* Diğer sayfalar için header boşluğu */
.main-content.with-header-space {
    padding-top: 100px; /* Header + biraz boşluk */
}


/* =======================================================
   4. GENEL İÇERİK BÖLÜMLERİ VE KARTLAR (blog.php hariç)
   ======================================================= */
.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}
.section-title i {
    color: var(--color-orange);
    margin-right: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.futuristic-card {
    background: linear-gradient(145deg, var(--color-dark-gray), #111);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.futuristic-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-orange);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--color-orange-glow);
}

.card-image-link img, .image-placeholder {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    font-size: 4rem;
    color: var(--color-border);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kart içeriğinin esnemesini sağlar */
}

.card-category {
    display: inline-block;
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--color-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.card-title {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.4;
}
.card-title a {
    color: inherit;
}

.card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: auto; /* Meta bilgisini kartın altına iter */
}

.card-footer {
    margin-top: auto;
}
.card-footer .btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.alert-message {
    grid-column: 1 / -1; /* Tüm grid'i kaplar */
    text-align: center;
    padding: 40px;
    background-color: var(--color-dark-gray);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 1.1rem;
}


/* =======================================================
   5. FOOTER (ALT BİLGİ)
   ======================================================= */
.futuristic-footer {
    background-color: var(--color-dark-gray);
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}
.social-links a {
    color: var(--color-light-gray);
    font-size: 1.4rem;
}
.social-links a:hover {
    color: var(--color-orange);
    transform: translateY(-3px);
}


/* =======================================================
   6. ANİMASYONLAR
   ======================================================= */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}


/* =======================================================
   7. RESPONSIVE (MOBİL UYUMLULUK) - blog.php hariç
   ======================================================= */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        flex-basis: 100%;
    }
    .hero-visual {
        display: none; /* Tablet ve altında görseli gizle */
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 100px; /* Mobil header daha kompakt olduğu için azaltıldı */
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Mobilde kartlar alt alta */
    }
}

/* =======================================================
   8. İÇERİK RESİMLERİ İÇİN STILLER
   ======================================================= */

/* İçerik resim figürü */
.image-figure {
    margin: 20px 0;
    text-align: center;
    background-color: var(--color-dark-gray);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--color-border);
}

.image-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-figure img:hover {
    transform: scale(1.02);
}

.image-figure figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-light-gray);
    font-style: italic;
    line-height: 1.4;
}

/* Blog ve proje içeriğindeki tek resimler */
.blog-content img,
.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.blog-content img:hover,
.project-content img:hover {
    transform: scale(1.02);
}

/* WebP format desteği kontrolü */
.webp-support .image-figure img,
.webp-support .blog-content img,
.webp-support .project-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Resim yükleme indikator stilleri */
.image-loading {
    background: linear-gradient(90deg, var(--color-dark-gray) 25%, var(--color-border) 50%, var(--color-dark-gray) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}