/*
 * Ustaraf CMS Teması — style.css
 * WordPress style.css'den porte edilmiştir.
 * themes/ustaraf/assets/css/style.css
 */

:root {
    --blue: #1a61ae;
    --white: #ffffff;
    --orange: rgba(255,104,58,1);
    --clr-primary: #1a61ae;
    --clr-success: #25d366;
    --clr-light: #f8f8f8;
    --clr-border: #e0e0e0;
    --clr-gray: #666;
}

/* ── Genel ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FBFBFC;
    font-weight: 300;
    margin: 0;
}

a { text-decoration: none; color: #000; }
a:hover { color: var(--blue); }
ul li { list-style: none; }
img { max-width: 100%; }

.form-control:focus {
    border-color: snow;
    box-shadow: none;
    background: transparent;
}

/* ── Arama ──────────────────────────────────────────── */
.search input {
    background: none;
    border: none;
    font-weight: 300;
    font-size: 14px;
}
.search button { background: none; border: none; }
.search .btn-outline-success:hover { background-color: transparent; border-color: transparent; }
.search {
    border: solid 1px #e9e9e9;
    padding: 3px 15px;
    border-radius: 50px;
    background-color: #fbfbfc;
    width: 30%;
}
.btn-outline-success:focus,
.btn-outline-success:active:focus { box-shadow: none; }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    border-bottom: 1px solid #ededed;
    background-color: #FFF;
}
.logoAll {
    display: flex;
    gap: 2em;
    align-items: center;
    justify-content: center;
}
.kayit {
    border: solid 1px #e9e9e9;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 300;
    font-size: 15px;
    background: var(--blue);
    color: #FFF;
    border: 1px solid #6e6f71;
}
.logoAll i { font-size: 25px; }
.logoAll img { width: 25px; cursor: pointer; }
.logo img { width: 125px; }

/* ── Hamburger Menü ─────────────────────────────────── */
.hideMenu {
    width: 0%;
    background-color: #F6F6FA;
    position: fixed;
    height: 100%;
    top: 0;
    z-index: 9999999;
    box-shadow: 0px 0px 7px 0px #e3e3e3;
    transition: all .2s;
    overflow: hidden;
}
.showMenu {
    width: 30%;
    padding: 5em;
    font-size: 15px;
    font-weight: 300;
    overflow-y: scroll;
}
.close {
    position: absolute;
    right: 1em;
    font-size: 40px;
    top: 1em;
    cursor: pointer;
}

/* ── Üst Menü ───────────────────────────────────────── */
.headMenu ul li { list-style: none; }
.headMenu ul li a { font-size: 15px; }
.bg-blue { background-color: var(--blue); }

/* ── Renk Şeridi ────────────────────────────────────── */
.heightTop { height: 5px; }
.darkred     { background-color: #79262a; }
.darklightred{ background-color: #a72930; }
.redcolor    { background-color: #cd2d23; }
.purplecolor { background-color: #5a408a; }
.darkblue    { background-color: #273c83; }
.blue        { background-color: #2c609e; }
.lightblue   { background-color: #3c7fb3; }
.turquascolor{ background-color: #2d98bd; }
.greencolor  { background-color: #409963; }
.lightgreen  { background-color: #93b975; }

/* ── Slider ─────────────────────────────────────────── */
.sliderContainer {
    background: url('../img/slider/bg.webp');
    background-color: #b7daff;
    padding: 2em 0;
    position: relative;
    background-position: bottom;
}
.alt { position: absolute; bottom: 0; width: 100%; }
.slideText { font-size: 50px; font-weight: bold; }
.kampanya { position: absolute; top: -5em; right: 1em; }
.z-index { z-index: 999; }

/* ── Hizmetler Şeridi ───────────────────────────────── */
.hizmetler { border-bottom: solid #f5f5f5; }
.firstHiz {
    background: #FFF;
    color: var(--blue);
    font-weight: 400;
    padding: 10px;
    text-align: center;
    border-radius: 3em;
    width: 75%;
    margin: 1em 1px;
    box-shadow: 0px 0 2px 1px #0000001c;
}
.hizItem {
    font-weight: 400;
    padding: 10px;
    text-align: center;
    border-radius: 3em;
    width: 75%;
    margin: 1em 1px;
    color: #a7a7a7;
}

/* ── Ürün Kartları ──────────────────────────────────── */
.products {
    position: relative;
    padding: 1em;
    background-color: #FFF;
    border: solid 1px #CDD;
    margin-bottom: 1em;
}
.products img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}
.products h3 {
    font-size: 19px;
    color: var(--blue);
    margin: 1em 0;
}
.catProducts {
    position: absolute;
    top: 1em;
    left: 1em;
    display: flex;
    gap: 10px;
}
.catProducts div {
    color: #FFF;
    padding: 5px;
    font-size: 10px;
    border-radius: 2em;
}
.catProducts div:first-child { background-color: var(--blue); }
.catProducts div:last-child  { background-color: var(--orange); }

.cardButton {
    background-color: var(--orange);
    padding: 15px;
    margin-top: 1em;
    display: block;
    text-align: center;
    color: #FFF;
    border: solid #222 1px;
}
.cardButton:hover { background-color: #e96030; color: #fff; }

/* ── Başlık Stili ───────────────────────────────────── */
.baslik h1 {
    font-size: 45px;
    font-weight: 300;
    padding-left: 3em;
    position: relative;
}
.baslik h1::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 2px;
    background-color: #000;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.text-blue { color: var(--blue); }

/* ── Kategori Rozeti ─────────────────────────────────── */
.post-cat-badge {
    background: var(--blue);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3em;
    font-size: .75rem;
    font-weight: 500;
}
.post-cat-badge:hover { background: var(--orange); color: #fff; }

/* ── Post İçerik ─────────────────────────────────────── */
.box ul li {
    padding: 1em 0;
    font-weight: bold;
    position: relative;
}
.box ul li::before {
    content: '\ea94';
    position: absolute;
    font-family: icofont;
    left: -22px;
    color: #2363aa;
}
.box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: bottom;
}
.thumb img { width: 100%; height: auto; }

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumbs {
    padding: 20px;
    font-size: 14px;
    color: #000;
    border: solid 1px #CDD;
    margin-bottom: 10px;
    border-radius: 1em;
}
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { color: #000; }
.breadC { font-size: 13px; position: relative; }
.breadC::before {
    position: absolute;
    content: '';
    bottom: -1em;
    width: 50px;
    height: 3px;
    background: #2363aa;
}

/* ── Benzer Yazılar ──────────────────────────────────── */
.related_posts img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: solid 1px #3267a3;
}
.titleBenzer {
    background: #2b65a6;
    color: #FFF;
    text-align: center;
    padding: 1em;
    text-transform: capitalize;
}

/* ── Teklif Formu ────────────────────────────────────── */
.forum input,
.forum textarea {
    width: 100%;
    resize: none;
    font-size: 14px;
    padding: 1em;
    margin: .7em 0;
    border: none;
    border-radius: 4px;
}
.forum {
    background-color: #2b65a6;
    padding: 2em;
    border-bottom-right-radius: 3em;
    border-bottom-left-radius: 3em;
    border-top: 7px solid #000;
}

/* ── İletişim ────────────────────────────────────────── */
.b-iletisim {
    padding: 3em 1em;
    font-size: 22px;
    background: #f4f4f4;
    border: solid 1px #CDD;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon i {
    color: #1a61ae;
    font-size: 55px !important;
    margin-bottom: .3em !important;
    display: block;
}

/* ── Blog Kartı ──────────────────────────────────────── */
.temaW {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* ── Galeri ──────────────────────────────────────────── */
.imgContent img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .2s;
}
.imgContent img:hover { transform: scale(1.03); }

/* ── Paylaş Butonları ────────────────────────────────── */
.post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 1.5em;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 3em;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}
.share-btn--wa  { background: #25d366; }
.share-btn--fb  { background: #4267B2; }
.share-btn--tw  { background: #14171A; }

/* ── CTA Bandı ───────────────────────────────────────── */
.post-cta {
    background: linear-gradient(135deg, var(--blue), #0e3d7a);
    color: #fff;
    padding: 1.5em 2em;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 2em;
}
.post-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--primary {
    background: var(--orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 3em;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn--success {
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3em;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn--sm { padding: 7px 14px; font-size: 13px; }

/* ── Sosyal Footer ───────────────────────────────────── */
.socialFooter a {
    text-align: center;
    color: #FFFFFF;
    padding: 2.5em 0;
    border: solid 1px #373737;
}
.facebook::before, .twitter::before,
.linkedin::before, .instagram::before {
    content: '';
    width: 0%;
    height: 100%;
    position: absolute;
    transition: all .5s;
}
.facebook:hover::before  { width: 100%; }
.twitter:hover::before   { width: 100%; }
.linkedin:hover::before  { width: 100%; }
.instagram:hover::before { width: 100%; }
.facebook::before  { background-color: #4267B2; }
.twitter::before   { background-color: #14171A; }
.linkedin::before  { background-color: #0e76a8; }
.instagram::before { background-color: #833AB4; }
.border-dark-color { border-color: #373737 !important; }

/* ── Sabit Butonlar ──────────────────────────────────── */
.up {
    position: fixed;
    width: 50px; height: 50px;
    font-size: 30px;
    z-index: 999;
    background-color: #3c7bc2;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 1em;
    bottom: 64px;
    border-radius: 38px;
    color: #FFF;
}
.up::before {
    position: absolute;
    content: '';
    width: 145%; height: 145%;
    background: #437dbe;
    z-index: -2;
    border-radius: 50px;
    animation: upButton 1s linear infinite;
}
.up2 {
    position: fixed;
    width: 50px; height: 50px;
    font-size: 30px;
    z-index: 999;
    background-color: #009688;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 1em;
    bottom: 64px;
    border-radius: 38px;
    color: #FFF;
}
.up2::before {
    position: absolute;
    content: '';
    width: 145%; height: 145%;
    background: #437dbe;
    z-index: -2;
    border-radius: 50px;
    animation: upButton2 1s linear infinite;
}
@keyframes upButton {
    0%   { background-color: #437dbe; }
    50%  { background: rgba(67,125,190,.14); }
    100% { background-color: #437dbe; }
}
@keyframes upButton2 {
    0%   { background-color: #009688; }
    50%  { background: rgba(67,125,190,.14); }
    100% { background-color: #009688; }
}

/* ── Sidebar ─────────────────────────────────────────── */
.rlet { padding: 0; margin: 0; }
.rlet li { padding: .5em 0; }

/* ── Lightbox İçerik Görselleri ─────────────────────── */
.text .rr-lightbox {
    display: inline-block;
    width: 92px; height: 92px;
    margin: 6px 6px 0 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.12);
    vertical-align: top;
}
.text .rr-lightbox img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .15s ease;
}
.text .rr-lightbox:hover img { transform: scale(1.04); }
