/*
Theme Name: Çözümleri TR Tema
Theme URI: https://www.cozumleri.tr
Author: Çözümleri Ekibi
Author URI: https://www.cozumleri.tr
Description: Çözümleri.tr için özel, Elementor uyumlu ve dinamik menülü kurumsal tema.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cozumleri-tr
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template
*/

/* --- CSS DEĞİŞKENLERİ & RESET --- */
:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background-color: var(--accent); color: var(--white); box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.section-title p { color: #64748b; max-width: 600px; margin: 0 auto; }

/* --- HEADER --- */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; top: 0; width: 100%; z-index: 1000; border-bottom: 1px solid #e2e8f0; height: 80px; display: flex; align-items: center; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

/* --- WORDPRESS MENÜ YAPISI (GÜNCELLENMİŞ) --- */
nav ul { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; list-style: none; }
nav ul li { position: relative; } 
nav ul li a { font-weight: 500; font-size: 0.95rem; color: var(--primary); display: block; padding: 10px 0; }
nav ul li a:hover { color: var(--accent); }
nav ul li.current-menu-item > a { color: var(--accent); font-weight: 700; }

/* Dropdown (Alt Menü) */
nav ul .sub-menu {
    position: absolute; top: 100%; left: -20px;
    background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
    width: 240px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; padding: 10px 0; display: block; z-index: 999;
}
nav ul li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
nav ul .sub-menu li { display: block; padding: 0; border-bottom: 1px solid #f1f5f9; }
nav ul .sub-menu li:last-child { border-bottom: none; }
nav ul .sub-menu a { padding: 12px 20px; font-size: 0.9rem; }
nav ul .sub-menu a:hover { background: #f8fafc; color: var(--accent); }

/* Dropdown Oku */
.menu-item-has-children > a::after {
    content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 0.7rem; margin-left: 8px; vertical-align: middle; transition: transform 0.3s;
}
.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* --- HERO --- */
#hero { padding: 180px 0 100px; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 0; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--primary); }
.hero-text p { font-size: 1.15rem; color: #475569; margin-bottom: 30px; max-width: 500px; }
.hero-stats { margin-top: 40px; display: flex; gap: 40px; }
.stat-item h4 { font-size: 1.5rem; color: var(--accent); }
.stat-item span { font-size: 0.9rem; color: #64748b; }
.hero-visual { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); transform: rotate(-2deg); border: 1px solid #e2e8f0; }
.code-mockup { font-family: 'Courier New', monospace; font-size: 0.85rem; color: #333; }

/* --- SOLUTIONS --- */
#solutions { padding: 100px 0; }
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.solution-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid transparent; position: relative; overflow: hidden; }
.solution-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.icon-box { width: 60px; height: 60px; background: #eff6ff; color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; margin-bottom: 20px; }
.solution-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary); }
.solution-card p { color: #64748b; margin-bottom: 25px; font-size: 0.95rem; }
.solution-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.solution-link:hover { gap: 10px; }

/* --- WHY US --- */
#why { background: var(--primary); color: var(--white); padding: 100px 0; }
.why-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.feature-item { background: rgba(255,255,255,0.05); padding: 25px; border-radius: var(--radius); }
.feature-item i { color: #4ade80; font-size: 1.2rem; margin-bottom: 10px; display: block;}
.feature-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; opacity: 0.8; }

/* --- BLOG --- */
#blog { padding: 100px 0; background: #fff; }
.blog-wrapper { background: #f1f5f9; border-radius: var(--radius); padding: 50px; text-align: center; }

/* --- FOOTER --- */
footer { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; border-bottom: 1px solid #1e293b; padding-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent); }
.copyright { text-align: center; font-size: 0.85rem; }

/* --- INNER PAGE & ELEMENTOR STYLES --- */
.page-header-bg { background: #f1f5f9; padding: 140px 0 40px; margin-bottom: 40px; border-bottom: 1px solid #e2e8f0; }
.page-header-bg h1 { color: var(--primary); font-size: 2.5rem; text-align: center;}
.site-content { padding-top: 20px; padding-bottom: 80px; min-height: 60vh; }

/* Eğer içerik Elementor değilse, genişliği sınırla */
.entry-content > *:not(.elementor) { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.entry-content .elementor { max-width: 100%; margin: 0; }

.page-content p { margin-bottom: 1.5rem; color: #475569; }
.page-content h2 { color: var(--primary); font-size: 1.8rem; margin: 2rem 0 1rem; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .why-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav ul {
        display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%;
        background: var(--white); padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.05); align-items: flex-start;
    }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; border-bottom: 1px solid #eee; }
    nav ul .sub-menu { 
        position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; width: 100%;
        display: none; background: #f8fafc; padding-left: 20px;
    }
    nav ul li:hover .sub-menu { display: block; } 
    .mobile-toggle { display: block; }
    .header-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- BLOG TASARIMI (Bunu style.css en altına ekle) --- */

/* 1. Izgara Yapısı: Kartları yan yana dizer */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 2. Kartın Kendisi: Kutu görünümü verir */
.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* Köşeleri yuvarla */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px); /* Üzerine gelince havaya kalksın */
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
}

/* 3. Resim Alanı: Resmi kutuya sığdırır */
/* --- BLOG RESİM ORANI (1200x630) --- */
.blog-thumb {
    width: 100%;
    height: 220px; /* Yüksekliği sabitledik, çok daha kibar durur */
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #f1f5f9;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya tam oturtur, sündürmez */
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05); /* Hover'da hafif zoom */
}
/* --- SAYFALAMA TASARIMI (Pagination) --- */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a, 
.nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Aktif Sayfa ve Hover Durumu */
.nav-links span.current,
.nav-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi ezmeden kırparak sığdır */
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.1); /* Hover'da zoom efekti */
}

/* 4. Yazı Alanları */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #1e293b;
}

.blog-card h3 a:hover { color: #2563eb; }

.blog-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 5. Buton Tasarımı */
.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.read-more:hover { gap: 12px; }

/* --- MOBİLDE TEKLİF AL BUTONUNU GİZLE --- */
@media (max-width: 992px) {
    .header-btn {
        display: none !important;
    }
}
/* --- LOGO OTOMATİK BOYUTLANDIRMA --- */

/* 1. Header içindeki logoyu kapsayan alan */
.logo {
    display: flex;
    align-items: center;
    max-width: 250px; /* Logoya ayrılabilecek maksimum genişlik */
}

/* 2. WordPress'in eklediği logo resmi (.custom-logo) */
.logo img, 
.custom-logo-link img, 
.custom-logo {
    max-height: 50px; /* Header yüksekliğine göre burayı artırıp azaltabilirsin */
    width: auto !important; /* Genişliği serbest bırak, resim uzamasın */
    max-width: 100%; /* Kapsayıcıdan taşmasın */
    object-fit: contain; /* Resmi kutuya sığdır */
    display: block;
}

/* 3. Mobilde Logo Biraz Daha Küçülsün (İsteğe bağlı) */
@media (max-width: 768px) {
    .logo img, .custom-logo {
        max-height: 40px; /* Mobilde daha kibar dursun */
    }
}