/*
Theme: BacklinkTema Custom Stylesheet
Tüm özel stiller bu dosyada yer alır.
*/

/* ======================================= */
/* --- 1. TEMEL TANIMLAR VE SIFIRLAMALAR --- */
/* ======================================= */
:root {
    --color-primary: #FF5722;
    --color-secondary: #FF9800;
    --color-text-light: #fff;
    --color-text-dark: #333;
    --color-background-light: #f5f5f5;
    --color-gray-border: #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
}

/* --- Buton Ortak Stilleri --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 5px;
    text-align: center;
}
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border: 2px solid var(--color-secondary);
}
.btn-primary:hover {
    background-color: #c9176a;
    border-color: #c9176a;
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}
.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}


/* ======================================= */
/* --- 2. HEADER ve NAVIGASYON Stilleri --- */
/* ======================================= */

/* Üst Bar (Top Bar) */
.topbar {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-size: 0.85em;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center;
}
.topbar i {
    margin-right: 5px;
}
.topbar a {
    color: var(--color-text-light);
    margin-left: 15px;
    opacity: 0.8;
}

/* Ana Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding h1 a {
    color: var(--color-primary);
    font-size: 2em;
    font-weight: bold;
}

/* Menü Bağlantıları */
.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-navigation li a {
    color: var(--color-text-dark);
    padding: 8px 12px;
    display: block;
    font-weight: 600;
    white-space: nowrap; /* Kaymayı önlemek için */
}
.main-navigation li a:hover {
    color: var(--color-secondary);
}

/* Ana Slider Alanı */
.main-slider-area {
    background: var(--color-primary);
    background-image: linear-gradient(to right, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.7));
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    text-align: center;
    padding: 100px 15px;
    margin-bottom:30px;
}
.slider-content {
    max-width: 800px;
    margin: 0 auto;
}
.slider-main-heading {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
}


/* ======================================= */
/* --- 3. PRODUCTS SECTION Stilleri (Paketler) --- */
/* ======================================= */
.products-section {
    padding: 60px 0;
    background-color: var(--color-background-light);
}
.product-tabs {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.tab-item {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    color: var(--color-text-dark);
    font-weight: 700;
    border-radius: 5px;
    font-size: 0.9em;
}
.tab-item.active {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}
.product-card {
    background-color: #fff;
    border: 1px solid var(--color-gray-border);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.product-image-container {
    height: 180px; 
    flex-shrink: 0;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.product-content {
    padding: 15px;
    flex-grow: 1;
}
.product-title {
    font-size: 1em;
    font-weight: 600;
    min-height: 3em; 
    overflow: hidden;
    margin-bottom: 5px;
}
.product-price {
    font-size: 1.3em;
    color: var(--color-primary);
    font-weight: 700;
}
.product-actions {
    display: flex;
    flex-wrap: wrap; 
    padding: 10px;
    border-top: 1px solid var(--color-gray-border);
    justify-content: space-around;
}
.btn-action {
    flex: 1 1 45%; 
    margin: 5px; 
    padding: 8px 5px; 
    font-size: 0.85em; 
}
.btn-add-cart {
    background-color: var(--color-secondary);
}
.btn-view-details {
    background-color: var(--color-primary);
}


/* ======================================= */
/* --- 4. BLOG SECTION Stilleri --- */
/* ======================================= */
.blog-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}
.blog-section .section-title {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}
.blog-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); 
    text-align: left;
    display: flex;
    flex-direction: column;
}
.post-thumbnail {
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.post-content {
    flex-grow: 1;
    padding: 15px;
}
.post-title {
    font-size: 1em;
    font-weight: 600;
    min-height: 4.5em; 
    overflow: hidden;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-gray-border); 
    padding-bottom: 10px;
}


/* ======================================= */
/* --- 5. TRUSTED CLIENTS Stilleri --- */
/* ======================================= */
.trusted-clients {
    text-align: center;
    padding: 50px 0 80px 0;
    background-color: #fff;
}
.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}
.logo-item {
    flex: 1;
    height: 50px;
    filter: grayscale(100%); 
    opacity: 0.6;
}


/* ======================================= */
/* --- 6. INDEX/ARCHIVE (Blog Listeleme) Stilleri --- */
/* ======================================= */
.blog-container {
    padding: 50px 0;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
}
.page-title {
    font-size: 2.5em;
    color: var(--color-primary);
}
.row {
    display: flex;
    gap: 30px;
}
.col-main {
    flex: 3;
}
.col-sidebar {
    flex: 1;
}

/* Tekil Gönderi Kartı (index-card) */
.index-card {
    background-color: #fff;
    border: 1px solid var(--color-gray-border);
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.index-card .card-inner {
    display: flex;
}
.post-thumb-wrapper {
    flex: 1;
    max-width: 35%;
    overflow: hidden;
}
.index-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-content-wrapper {
    flex: 2;
    padding: 20px;
}
.entry-title {
    font-size: 1.5em;
    margin: 10px 0;
}
.read-more-btn {
    color: var(--color-secondary);
    font-weight: 600;
}


/* ======================================= */
/* --- 7. SIDEBAR Stilleri --- */
/* ======================================= */
.widget-area {
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
}
.widget {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.widget-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}
.widget-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
    position: absolute;
    bottom: 0;
    left: 0;
}


/* ======================================= */
/* --- 8. FOOTER Stilleri --- */
/* ======================================= */
.site-footer {
    background-color: var(--color-primary); 
    color: var(--color-text-light);
    padding-top: 50px;
}
.site-footer a {
    color: var(--color-text-light);
}
.site-footer a:hover {
    color: var(--color-secondary);
}
.footer-widgets-area {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-about {
    flex: 2; 
    font-size: 0.9em;
}
.footer-widget {
    flex: 1;
}
.footer-widget h3 {
    font-size: 1.1em;
    margin-bottom: 20px;
    position: relative;
}
.footer-widget h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary); 
    margin-top: 5px;
}
.site-info {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Yüzen Butonlar */
.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.to-top-button, .chat-button {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.to-top-button {
    background-color: var(--color-primary);
}
.chat-button {
    background-color: var(--color-secondary);
}

/* ======================================= */
/* --- 9. SINGLE PRODUCT (Tekil Ürün Sayfası) Stilleri --- */
/* ======================================= */
.single-product-page {
    padding: 30px 0;
}
.product-content-row {
    display: flex;
    gap: 30px;
}
.product-main-content {
    flex: 3; 
}
.product-sidebar {
    flex: 1; 
}
.purchase-box {
    background-color: var(--color-background-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ======================================= */
/* --- 10. MOBİL UYUMLULUK (MEDIA QUERIES) --- */
/* ======================================= */

/* --- Tablet ve Daha Küçük Cihazlar (Max 992px) --- */
@media (max-width: 992px) {
    
    /* Header ve Navigasyon */
    .site-header .container {
        flex-direction: column;
    }
    .main-navigation li a {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    /* Slider ve Butonlar */
    .main-slider-area {
        padding: 80px 15px;
    }
    .slider-main-heading {
        font-size: 2.8em;
    }
    .slider-buttons {
        flex-direction: column;
        align-items: center;
    }
    .slider-buttons .btn {
        width: 80%;
        margin: 5px 0;
    }

    /* Ürünler ve Blog (2 sütuna düşür) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Index/Archive Sayfası */
    .row {
        flex-direction: column;
        gap: 30px;
    }
    .col-main, .col-sidebar {
        flex: auto;
        width: 100%;
    }
    .index-card .card-inner {
        flex-direction: column;
    }
    .post-thumb-wrapper {
        max-width: 100%;
    }
    
    /* Footer (2 Sütunlu düzen) */
    .footer-widgets-area {
        flex-wrap: wrap;
    }
    .footer-widget {
        flex: 1 1 48%; 
        margin-bottom: 25px;
        padding-right: 15px;
    }
    .footer-about {
        flex: 1 1 100%;
    }
}

/* --- Telefonlar İçin Ekstra Düzenlemeler (Max 600px) --- */
@media (max-width: 600px) {
    /* Topbar */
    .topbar-info, .topbar-actions {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    /* Slider */
    .slider-main-heading {
        font-size: 2em;
    }
    .slider-buttons .btn {
        width: 90%;
    }

    /* Ürünler ve Blog (Tek sütuna düşür) */
    .product-grid, .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Footer (Hepsi Alt Alta) */
    .footer-widget {
        flex: 1 1 100%; 
        padding-right: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }
    .footer-widget h3::after {
        margin: 5px auto 0 auto;
    }

    /* Bizi Tercih Edenler */
    .client-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-item {
        flex: 1 1 45%;
        margin: 10px 5px;
        height: 40px;
    }
    
    /* Yüzen butonlar */
    .floating-actions {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    .to-top-button, .chat-button {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}


* ======================================= */
/* --- 11. FEATURE BLOCKS Stilleri --- */
/* ======================================= */
.feature-blocks-section {
    padding: 40px 0;
    background-color: #fff;
}

/* Üst Duyuru Çubuğu */
.top-announcement-bar {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 15px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.5;
    margin-top: 40px;
}
.top-announcement-bar i {
    color: var(--color-secondary);
    margin-right: 10px;
}

/* Özellikler Gridi */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* İki sütunlu düzen */
    gap: 20px;
    margin-bottom: 40px;
}

.feature-block {
    background-color: #fff;
    border: 1px solid var(--color-gray-border);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.block-icon i {
    font-size: 1.5em;
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.feature-block h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}
.feature-block p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

/* Renk Varyasyonları (Görseldeki gibi) */
.block-green { background-color: #f1fff1; border-color: #c4ecc4; }
.block-green .block-icon i { background-color: #4CAF50; }
.block-blue { background-color: #f1f8ff; border-color: #c4d7e9; }
.block-blue .block-icon i { background-color: #2196F3; }
.block-purple { background-color: #fff1ff; border-color: #e9c4e9; }
.block-purple .block-icon i { background-color: #9C27B0; }
.block-yellow { background-color: #fffbf1; border-color: #e9e9c4; }
.block-yellow .block-icon i { background-color: #FFC107; }
.block-light-blue { background-color: #f1f8ff; border-color: #c4d7e9; }
.block-light-blue .block-icon i { background-color: #03A9F4; }
.block-red { background-color: #fff1f1; border-color: #e9c4c4; }
.block-red .block-icon i { background-color: #F44336; }
.block-gray { background-color: #fafafa; border-color: #e0e0e0; }
.block-gray .block-icon i { background-color: #607D8B; }
.block-pink-light { background-color: #fff1f5; border-color: #f0c4d0; }
.block-pink-light .block-icon i { background-color: #E91E63; }

/* Harekete Geçirici Buton (CTA) */
.cta-button-wrapper {
    text-align: center;
    margin-bottom: 30px;
}
.cta-button {
    background: linear-gradient(to right, var(--color-secondary), #ff50a0);
    border: none;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(228, 28, 124, 0.5);
    transition: transform 0.2s;
}
.cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(to right, #ff50a0, var(--color-secondary));
}
.cta-button i {
    margin: 0 10px;
}

/* Basit CTA Butonları (WhatsApp ve Fiyat Teklifi) */
.simple-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}
.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}
.btn-price-quote {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-price-quote:hover {
    background-color: #3e173b;
    border-color: #3e173b;
}

/* Responsive Düzenleme */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .feature-block {
        flex-direction: column; /* İçerik alt alta gelsin */
        text-align: center;
    }
    .block-icon {
        margin: 0 auto 10px auto;
    }
    .simple-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .simple-cta-buttons a {
        width: 90%;
        margin-bottom: 10px;
    }
}

/* WhatsApp Yüzen Buton Stilleri */
/* --- Sağ Alttaki Yüzen Butonlar Stilleri (GÜNCELLENMİŞ) --- */

.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* YUKARI ÇIK VE WHATSAPP BUTONLARI ORTAK BOYUT VE GEÇİŞ */
.to-top-button, .whatsapp-float-button {
    display: block;
    /* BÜYÜTÜLMÜŞ BOYUT: 60px */
    width: 60px;
    height: 60px;
    line-height: 60px; 
    text-align: center;
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.5em; /* İkon boyutu */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* YUMUŞAK GEÇİŞ (BÜYÜME VE RENK İÇİN KRİTİK) */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* YUKARI ÇIK BUTONU STİLİ */
.to-top-button {
    background-color: var(--color-primary); /* Koyu Mor */
}
.to-top-button:hover {
    background-color: #3e173b; /* Hafif koyu mor */
    transform: scale(1.1); /* %10 büyütme */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* WHATSAPP BUTONU STİLİ */
.whatsapp-float-button {
    background-color: #25d366; /* Standart WhatsApp Yeşili */
}
.whatsapp-float-button:hover {
    background-color: #128c7e; /* Üstüne gelince koyu yeşil */
    transform: scale(1.1); /* %10 büyütme */
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6); /* Yeşil gölge efekti */
}

/* --- MOBİL UYUMLULUK (600px altında boyut küçültme) --- */
@media (max-width: 600px) {
    .floating-actions {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    .to-top-button, .whatsapp-float-button {
        /* Telefonda 40px'e geri çekiyoruz */
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1em; 
    }
    .to-top-button:hover, .whatsapp-float-button:hover {
        /* Mobil hover efekti (Dokunmatik ekranlarda sorun çıkarabilir, ancak büyümeyi koruruz) */
        transform: scale(1.1); 
    }
}