/*
Theme Name: İzlem Psikoloji
Theme URI: https://izlempsikoloji.com
Author: Salih & AI
Description: İzlem Psikoloji için dinamik yönetim panelli, özel yükleme ekranlı kurumsal tema.
Version: 4.1
Text Domain: izlem-psikoloji
*/

/* --- DEĞİŞKENLER --- */
:root {
    --bg-body: #ffffff;
    --primary-green: #284011;
    /* Koyu Yeşil - Yeni Kod */
    --green-light: #8e9e7e;
    /* Açık Yeşil - Uygun Ton */
    --accent-orange: #284011;
    /* Vurgular da Ayni Yesil */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(40, 64, 17, 0.08);
}

/* --- TEMEL AYARLAR --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    /* YATAY KAYMAYI ENGELLER */
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* YATAY KAYMAYI KESİN ENGELLER */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.loaded) {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease-in-out;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
}

.loader-inner {
    text-align: center;
    position: relative;
}

.loader-brand {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: pulseLogo 2s infinite ease-in-out;
}

.brand-dark {
    color: var(--primary-green);
}

.brand-orange {
    color: var(--accent-orange);
}

.loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-1 {
    border-top-color: var(--primary-green);
    border-left-color: var(--primary-green);
    animation: spinCommon 1.5s linear infinite;
}

.circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-bottom-color: var(--green-light);
    border-right-color: var(--green-light);
    animation: spinReverse 1s linear infinite;
}

.loader-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: blinkText 1.5s infinite;
}

@keyframes spinCommon {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulseLogo {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- HEADER --- */
/* Header stilleri header.php içinde (Premium Beyaz Tasarım) */

/* --- HERO (FRONT-PAGE) --- */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
}

/* KOYU GRADYAN OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(27, 67, 50, 0.8) 100%);
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-content-center h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content-center h1 span {
    color: var(--accent-orange);
}

.hero-content-center p {
    font-size: 1.25rem;
    color: #f0fdf4;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns .btn {
    margin: 0 10px;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s;
}

.hero-btns .btn:hover {
    transform: translateY(-3px);
}

.hero-btns .btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
    border: 2px solid var(--accent-orange);
}

.hero-btns .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-btns .btn-outline:hover {
    background-color: #fff;
    color: var(--primary-green);
}

/* --- BUTONLAR --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #fff;
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background-color: #1a2b0b;
    border-color: #1a2b0b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
}

/* --- TERAPİ NEDİR SECTION --- */
.therapy-info-section {
    padding: 6rem 0;
    background-color: #fff;
    position: relative;
}

.therapy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.therapy-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-weight: 700;
}

.therapy-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.therapy-block {
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
}

.therapy-block.is-not {
    background-color: #f8fafc;
    /* Notr gri ton */
    border-left: 4px solid #64748b;
}

.therapy-block.is-what {
    background-color: #f0fdf4;
    /* Hafif yesil ton */
    border-left: 4px solid var(--primary-green);
}

.therapy-block p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .therapy-blocks {
        grid-template-columns: 1fr;
    }
}

/* --- SECTION GENEL --- */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f9fbfb;
}

.bg-dark {
    background-color: var(--primary-green);
    color: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-dark .section-title {
    color: #fff;
}

.bg-dark .section-title::after {
    background: var(--green-light);
}

.section-desc {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.bg-dark .section-desc {
    color: #dcfce7;
}

/* --- HİZMETLER GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--green-light);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-thumb {
    height: 220px;
    overflow: hidden;
    background: #f0fdf4;
    position: relative;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(170, 210, 187, 0.4);
    border-color: var(--accent-orange);
}

.service-card:hover .service-thumb img {
    transform: scale(1.05);
}

.service-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    margin: 0 0 0.8rem;
    color: var(--primary-green);
    font-size: 1.25rem;
}

.service-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    margin-top: auto;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card:hover .service-link {
    color: var(--primary-green);
}

/* --- UZMANLAR GRID --- */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.expert-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--green-light);
    transition: 0.3s;
}

.expert-img-wrap {
    height: 300px;
    display: block;
    overflow: hidden;
    position: relative;
}

.expert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(170, 210, 187, 0.4);
    border-color: var(--accent-orange);
}

.expert-info {
    padding: 1.2rem;
    text-align: center;
    background: #fff;
}

.expert-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-green);
}

.expert-title {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 600;
    display: block;
    margin: 0.5rem 0 1rem;
}

.expert-info .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--green-light);
    color: var(--primary-green);
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s;
}

.expert-card:hover .btn-sm {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--green-light);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.blog-thumb {
    height: 200px;
    display: block;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 25px rgba(170, 210, 187, 0.4);
    transform: translateY(-3px);
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-body {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-body h3 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.blog-body h3 a:hover {
    color: var(--primary-green);
}

/* --- İLETİŞİM ALANI --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Bilgi Kartları */
.info-card {
    background: #fff;
    border: 1px solid var(--green-light);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 30px rgba(170, 210, 187, 0.3);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(170, 210, 187, 0.2);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.info-content h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.info-content p,
.info-content a {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

.info-content a:hover {
    color: var(--accent-orange);
}

/* Sosyal Medya Kutusu */
.social-box {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: 0.3s;
}

.social-link:hover {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

/* Form Alanı */
.form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--green-light);
}

.form-title {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    background: #f8fafc;
    transition: 0.3s;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.hidden {
    display: none !important;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #143326;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.3);
}

/* Harita */
.full-map {
    width: 100%;
    height: 400px;
    margin-top: 0;
    filter: grayscale(100%);
    transition: 0.5s;
    border-top: 1px solid var(--border-color);
}

.full-map:hover {
    filter: grayscale(0%);
}

.full-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-green);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 5px solid var(--primary-green);
    /* Turuncu cizgi kaldirildi veya yesil yapildi */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    opacity: 0.9;
    transition: 0.3s;
    color: #fff;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* --- MOBİL UYUM --- */
@media (max-width: 900px) {

    /* 1. Container Kenar Boşluklarını Azalt (Sıkışıklığı Çözer) */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 2. Hero Alanını Optimize Et */
    .hero-content-center h1 {
        font-size: 2.5rem;
    }

    .hero-btns .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    /* 3. Gridleri Tek Sütun Yap */
    .services-grid,
    .experts-grid,
    .blog-grid,
    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* 4. Form İç Boşluğunu Azalt (Ferahlatır) */
    .form-wrapper {
        padding: 1.5rem 1rem !important;
    }

    .contact-layout {
        gap: 2rem;
    }

    .expert-img-wrap {
        height: 350px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* --- ANIMASYONLAR --- */
.anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* YATAY ANİMASYONLARI MOBİLDE KAPATALIM (Taşmayı önlemek için) */
@media (max-width: 900px) {

    .anim-left,
    .anim-right {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Masaüstünde Animasyonlar */
@media (min-width: 901px) {
    .anim-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: all 0.8s;
    }

    .anim-right {
        opacity: 0;
        transform: translateX(40px);
        transition: all 0.8s;
    }
}

.in-view {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.delay-0 {
    transition-delay: 0ms;
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

.delay-5 {
    transition-delay: 500ms;
}

/* --- SSS (FAQ) STYLES --- */
.faq-hero {
    background-color: var(--primary-green);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.faq-hero h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.faq-hero p {
    opacity: 0.9;
    margin-top: 10px;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: 0.3s;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--green-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    background: #fff;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: #f0fdf4;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
    border-top: 1px solid transparent;
}

.faq-answer-inner {
    padding: 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* İkon Dönüşü ve Açılma Stili */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--accent-orange);
    color: #fff;
}

.faq-item.active .faq-answer {
    border-top-color: #f1f5f9;
}

/* Mobilde */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }

    .faq-container {
        padding: 3rem 1rem;
    }
}

/* --- UZMAN DETAY SAYFASI --- */
.expert-single-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .expert-single-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .expert-single-img {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* MOBİLDE ANA SAYFA VE LİSTE UZMAN RESİMLERİ */
    .expert-img-wrap {
        height: auto !important;
        /* Yüksekliği serbest bırak */
        aspect-ratio: auto !important;
    }

    .expert-img-wrap img {
        height: auto !important;
        object-fit: contain !important;
        /* Tam sığdır */
        max-height: 450px;
        /* Çok uzamasını engelle */
    }
}

/* --- HERO SPAN COLOR --- */
.hero-content-center h1 span {
    color: #9cd97e;
    /* Açık Yeşil */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}