/* Laravel layouts/app.blade.php + partials/footer.blade.php inline stillerinin taşınmış hali */

/* Hizmet detay sol menü: yazı boyutu dengeli */
.ht-sidebar-area .single-widget .service-list li a {
    font-size: 15px;
    line-height: 1.4;
}
.ht-sidebar-area .single-widget .service-list li a i {
    font-size: 13px;
}
/* Hizmet detay sol menü: aktif hizmet hover renginde */
.ht-sidebar-area .single-widget .service-list li a.active {
    background: var(--ht-theme-color-2);
    color: var(--ht-white);
    border-color: transparent;
}
/* Header ana menü: aktif sayfa hover renginde */
.ht-header-area .ht-main-header .ht-menu-main ul li > a.active {
    color: var(--ht-theme-color-2);
}
/* Anasayfa ve Hizmetler sayfası: ikon renkleri */
.ht-services-items .icon i {
    color: #000 !important;
}
/* kart hover'da ikon beyaz */
.ht-services-items:hover .icon i {
    color: #fff !important;
}
/* Hizmet kartı başlığı: ok ikonunu başlığın sonuna hizala */
.ht-services-items .title img {
    left: auto;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}
.ht-services-items .title:hover .one,
.ht-services-items .title:hover .two,
.ht-services-items .title:hover .three,
.ht-services-items .title:hover .four {
    left: auto;
    right: 4px;
}
.ht-services-items .title {
    font-size: 20px;
    padding-right: 24px;
}
/* Hero image: kişiyi aşağıda hizala */
@media (min-width: 1200px) {
    .ht-hero-img {
        bottom: -24px;
    }
}
/* Case Study section */
.service-case-study {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 30px;
}
.case-study-tag {
    display: inline-block;
    background: #e9f0ff;
    color: #2b59ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.case-study-title {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.6;
    font-weight: 400;
}
.case-study-desc {
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 17px;
}
.case-study-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
}
.metric-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: calc(50% - 12px);
}
.metric-icon {
    color: var(--ht-theme-color-2);
    font-size: 18px;
    margin-top: 2px;
}
.metric-content h6 {
    margin: 0 0 4px 0;
    font-size: 16px;
}
.metric-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}
.case-study-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
@media (max-width: 991px) {
    .service-case-study {
        padding: 24px;
    }
    .metric-item {
        width: 100%;
    }
}

/* Active state for sub-menu links (matches hover style) */
.ht-header-area .ht-main-header .ht-menu-main ul li > .sub-menu li a.active {
    color: var(--ht-theme-color-2);
    background: rgba(0,0,0,0.04);
    border-left: 3px solid var(--ht-theme-color-2);
}

/* Disable hover-zoom on blog images (list + detail pages) */
.ht-blog-item:hover .ht-blog-thumb img,
.ht-blog-details-wrapper .blog-single-post .thumb img:hover,
.ht-blog-details-wrapper .details-img img:hover {
    transform: none !important;
}

/* Blog card title style override */
.ht-blog-content .title {
    margin-top: 10px;
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Blog detail page H1 title — slightly smaller than default h1 */
.ht-blog-details-wrapper .blog-single-post .content h1.title {
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
@media (max-width: 991px) {
    .ht-blog-details-wrapper .blog-single-post .content h1.title { font-size: 34px; }
}
@media (max-width: 575px) {
    .ht-blog-details-wrapper .blog-single-post .content h1.title { font-size: 28px; }
}

/* Tag cloud aktif durumu: turuncu arka plan yok, mevcut border korunur */
.ht-sidebar-area .tags-list a.active {
    background: transparent;
    color: inherit;
    border-color: var(--ht-theme-color);
}
.ht-sidebar-area .tags-list a:hover,
.ht-sidebar-area .tags-list a.active:hover {
    background: transparent;
    color: var(--ht-theme-color-2);
    border-color: var(--ht-theme-color-2);
}

/* Hizmet detayı zengin içerik (TinyMCE çıktısı) */
.service-content { font-size: 16px; line-height: 1.8; color: #1f2937; }
.service-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.service-content a { color: #1976d2; text-decoration: underline; }
.service-content a:hover { color: #0d47a1; }
.service-content ul, .service-content ol { margin: 12px 0 18px; padding-left: 28px; }
.service-content li { margin-bottom: 6px; }
.service-content blockquote,
.service-content blockquote.blog-quote {
    border-left: 4px solid #1976d2;
    background: #f5faff;
    margin: 20px 0;
    padding: 16px 22px;
    font-style: italic;
    color: #1f2937;
    border-radius: 0 8px 8px 0;
}
.service-content blockquote cite { display:block; margin-top:8px; font-size:13px; color:#6b7280; font-style:normal; }
.service-content table,
.service-content table.blog-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
}
.service-content table th,
.service-content table td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; vertical-align: top; }
.service-content table thead th,
.service-content table tr:first-child th { background: #eef6ff; color: #0d3d6e; font-weight: 600; border-bottom: 2px solid #1976d2; }
.service-content table.striped tbody tr:nth-child(even) { background: #f8fafc; }
.service-content pre {
    background: #1f2937; color: #e5e7eb; padding: 14px 18px; border-radius: 8px;
    overflow-x: auto; font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace; font-size: 14px; line-height: 1.55;
}
.service-content code { background: #f3f4f6; color: #b91c1c; padding: 2px 6px; border-radius: 4px; font-size: 90%; }
.service-content pre code { background: transparent; color: inherit; padding: 0; }
.service-content iframe, .service-content video { max-width: 100%; border-radius: 8px; margin: 18px 0; }

/* Blog kart küçük etiketleri */
.ht-blog-content .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 14px;
}
.ht-blog-content .blog-tags .blog-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    transition: background .15s ease, color .15s ease;
}
.ht-blog-content .blog-tags .blog-tag:hover {
    background: var(--ht-theme-color-2, #1976d2);
    color: #fff;
}

/* ---- RTL (ar) — Laravel'de locale=ar iken basılan blok; React'te html[dir=rtl] ile ---- */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .ht-menu-left { flex-direction: row-reverse; }
html[dir="rtl"] .ht-menu-right { flex-direction: row-reverse; }
html[dir="rtl"] .ht-menu-main ul { flex-direction: row-reverse; }
html[dir="rtl"] .sub-menu { right: 0; left: auto; text-align: right; }
html[dir="rtl"] .ht-footer-widget { flex-direction: row-reverse; }
/* ---- Offcanvas (mobil menü) iletişim/sosyal blokları — temanın style.css'inde karşılığı yok ---- */
.ht-offcanvas__title { margin-bottom: 15px; }
.ht-offcanvas-info span { display: block; margin-bottom: 10px; }
.ht-offcanvas-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-right: 8px;
    border: 1px solid var(--ht-border-color-2); border-radius: 50%;
    color: var(--ht-theme-color);
}

/* Tema paneli transform ile kaydırır; RTL'de soldan girer. Açık-durum class'ı ht-offcanvas-open. */
html[dir="rtl"] .ht-offcanvas { right: auto; left: 0; transform: translateX(-100%); }
html[dir="rtl"] .ht-offcanvas.ht-offcanvas-open { transform: translateX(0); }
html[dir="rtl"] .fa-chevron-down { margin-right: 5px; margin-left: 0; }

/* ---- Footer stilleri (partials/footer.blade.php inline bloğu) ---- */
.ht-footer-widget-wrapper {
    margin-top: 30px;
}
.ht-footer-area .ht-footer-widget {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 28px;
}
.ht-footer-area .ht-footer-widget-items .head,
.ht-footer-area .link-list a,
.ht-footer-area .link-list.contact-info li.contact-address span {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.6;
}
.footer-address i {
    color: #ff6b35;
    margin-top: 3px;
}
.footer-ms-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 0 0;
}
.footer-ms-social-row .ms-partner-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}
.footer-ms-social-row .partner-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    max-width: 420px;
}
.footer-ms-social-row .footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.footer-ms-social-row .footer-social li {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f4746;
    border-radius: 12px;
    transition: all 0.4s ease;
}
.footer-ms-social-row .footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 18px;
}
.footer-ms-social-row .footer-social li:hover {
    background: #ff6b35;
}
.footer-ms-social-row .footer-social li:hover a {
    color: #fff;
}
.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ms-logo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 32px;
    height: 32px;
}
.ms-square {
    border-radius: 1px;
}
.ms-square.red { background: #f25022; }
.ms-square.green { background: #7fba00; }
.ms-square.blue { background: #00a4ef; }
.ms-square.yellow { background: #ffb900; }
.ms-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.ms-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.ms-type {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 400;
}
.link-list.contact-info li a,
.link-list.contact-info li.contact-address span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.link-list.contact-info li a i,
.link-list.contact-info li.contact-address span i {
    color: #ff6b35;
    width: 16px;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}
.link-list.contact-info li.contact-address span {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.5;
    cursor: default;
}
@media (max-width: 991px) {
    .ht-footer-widget {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 767px) {
    .ht-footer-widget {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    .ht-footer-widget-items {
        text-align: center;
    }
    .link-list.contact-info li a,
    .link-list.contact-info li.contact-address span {
        justify-content: center;
    }
    .footer-ms-social-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0 28px;
        gap: 20px;
    }
    .footer-ms-social-row .ms-partner-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-ms-social-row .partner-desc {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .ht-footer-widget {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Makale puanlama modalı (1-10 okur geri bildirimi) ---------- */
.ht-rating-overlay {
  position: fixed; inset: 0; background: rgba(248, 250, 252, 0.45); z-index: 1200;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); /* arka plan buğulu (referans tasarım) */
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ht-rating-modal {
  position: relative; background: #fff; border-radius: 14px; padding: 34px 38px 26px;
  max-width: 460px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}
.ht-rating-modal h4 { margin: 0 0 6px; font-size: 22px; }
.ht-rating-sub { margin: 0 0 20px; color: #64748b; font-size: 14.5px; }
.ht-rating-close {
  position: absolute; top: 12px; right: 16px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer;
}
.ht-rating-close:hover { color: #0f172a; }
.ht-rating-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px;
}
.ht-rating-grid button {
  background: #fff; border: 2px solid; border-radius: 10px; height: 58px;
  font-size: 19px; font-weight: 700; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
}
.ht-rating-grid button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12); }
.ht-rating-grid button:disabled { opacity: 0.6; cursor: default; }
.ht-rating-note { margin: 0; color: #94a3b8; font-size: 12.5px; }
.ht-rating-thanks { padding: 26px 0 20px; font-size: 18px; font-weight: 600; color: #16a34a; }
@media (max-width: 420px) {
  .ht-rating-modal { padding: 28px 20px 20px; }
  .ht-rating-grid { gap: 8px; }
  .ht-rating-grid button { height: 48px; font-size: 16px; }
}

/* --- Proje kartı görsel oranı ---
   Proje kapakları dikey case study infografikleri (1024x1536); tema kuralı
   (width/height: 100%) doğal oranı koruduğu için kart 1600px ekranda 512x768'e,
   1920'de 635x953'e çıkıyordu. Kartı kareye sabitleyip üstten kırpıyoruz:
   infografiğin logo + başlık bandı görünür, tam görsel proje detayında.
   Hem ana sayfa slider'ı hem projeler sayfası ızgarası .project-slide-wrapper altında. */
.project-slide-wrapper .single-item .thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

/* --- Hero başlığı CMS'ten geliyor ---
   Tema metni dört satıra <br> ile bölünmüştü; başlık artık slider kaydından
   (ör. "İşletmeniz İçin Yenilikçi Çözümler") geldiği için satır sonu yok.
   Genişlik sınırlanmazsa başlık hero görselinin üstüne taşıyor. */
.ht-hero-content h1 { max-width: 12ch; }
@media (max-width: 991px) { .ht-hero-content h1 { max-width: 100%; } }
.ht-hero-content .desc { max-width: 560px; }

/* --- Detay sayfası başlığı H1 oldu ---
   Hizmet/proje detayında sayfa başlığı SEO için <h2> yerine <h1>; tema h1'i 100px
   (hero ölçüsü) olduğundan görünüm bozulmasın diye h2 ölçülerine sabitlenir. */
.service-details-content h1,
.project-details-content h1 {
  font-size: 60px; line-height: 110%; font-weight: 600; letter-spacing: -1.2px;
}
@media (max-width: 1199px) { .service-details-content h1, .project-details-content h1 { font-size: 50px; } }
@media (max-width: 992px)  { .service-details-content h1, .project-details-content h1 { font-size: 45px; } }
@media (max-width: 767px)  { .service-details-content h1, .project-details-content h1 { font-size: 35px; } }
@media (max-width: 575px)  { .service-details-content h1, .project-details-content h1 { font-size: 30px; } }

/* --- Çözüm detay sayfası (Blade solution-detail @push('styles') portu) ---
   Kart hover'ı ve dar ekran ölçüleri; renkler/ölçüler bileşende satır içi stil olarak
   duruyor (şablonda da öyleydi), yalnızca sözde sınıf ve medya sorguları buraya konur. */
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); }
.dashboard-item, .benefit-item {
  padding: 15px; background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); margin-bottom: 20px;
}
.pricing-card.featured { z-index: 2; }
@media (max-width: 991px) {
  .landing-hero h1 { font-size: 40px !important; }
  .hero-stats { gap: 20px !important; }
  .pricing-card.featured { transform: scale(1) !important; }
}
@media (max-width: 767px) {
  .landing-hero { padding-top: 100px !important; text-align: center; }
  .landing-hero h1 { font-size: 32px !important; }
  .hero-desc { margin: 0 auto 30px !important; }
  .hero-buttons { justify-content: center !important; }
  .hero-stats { justify-content: center !important; flex-wrap: wrap !important; }
}

/* ---- İletişim formu seçim kutuları (Sektör / Çalışan sayısı, 2026-09-14) ----
   Tema yalnız input/textarea stiller; select'e aynı görünüm burada verilir. */
.ht-contact-form-area .ht-contact-wrapper select {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    background: var(--ht-white);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 24px;
    color: var(--ht-theme-color);
    font-family: var(--ht-body-font);
    font-size: 16px;
    /* Mobil tarayıcılar (Samsung Internet vb.) appearance:none olmadan select'i YERLİ
       widget olarak çizip yukarıdaki stilleri yok sayıyor (siyah çerçeveli kutu) —
       yerli görünümü kapatıp ok işaretini kendimiz basarız */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23595959' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
}
html[dir="rtl"] .ht-contact-form-area .ht-contact-wrapper select {
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 42px;
}
.ht-contact-form-area .ht-contact-wrapper select:focus { border-color: var(--ht-border-color); }

/* SSS "Ask Your Question" formu da aynı seçim kutularını taşır (2026-09-14).
   DİKKAT: sarmalayıcı .ht-faq-area'dır (.ht-ask-question-area DEĞİL) — temanın bu
   sayfadaki input stiliyle (14px 18px, radius 8, #e0e0e0) birebir eşlenir. */
.ht-faq-area .ht-ask-question-form .form-group select {
    width: 100%;
    outline: none;
    background: var(--ht-white);
    padding: 14px 42px 14px 18px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-family: var(--ht-body-font);
    font-size: 15px;
    color: var(--ht-theme-color);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23999999' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}
html[dir="rtl"] .ht-faq-area .ht-ask-question-form .form-group select {
    background-position: left 15px center;
    padding-right: 18px;
    padding-left: 42px;
}
.ht-faq-area .ht-ask-question-form .form-group select:focus { border-color: var(--ht-theme-color-2); }
/* Seçim yapılmamışken tema yer tutucu rengi/boyu (#999, 14px) */
.ht-faq-area .ht-ask-question-form .form-group select:invalid { color: #999; font-size: 14px; }
/* Henüz seçim yapılmamışken (required + boş değer = :invalid) yer tutucu metin,
   yanındaki input yer tutucularıyla aynı soluklukta dursun */
.ht-contact-form-area .ht-contact-wrapper select:invalid { color: #595959; }
