/**
 * Dosya: style.css | Yol: /home/main/public_html/samplast.com.tr/assets/css/style.css
 * SamPlast PVC İnşaat Sanayi Tic. Ltd. Şti. Ana CSS Dosyası
 * Geliştiren: Muhsin İŞSEVER - muhsin.issever@gmail.com
 * Web sitesi: https://ai.zefre.net/
 */

/* ========== Genel Stiller ========== */
:root {
    --primary-color: #e01b22;
    --secondary-color: #343a40;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: #c01821;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c01821;
    border-color: #c01821;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* ========== Üst Çubuk ========== */
.top-bar {
    font-size: 0.85rem;
}

/* ========== Navbar ========== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    padding: 1.5rem 1rem;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.dropdown-menu {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

/* ========== Carousel/Slider ========== */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto;
    bottom: 50%;
    transform: translateY(50%);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 0;
        transform: none;
        padding: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
}

/* ========== İkon Çemberleri ========== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Ürün Kartları ========== */
.product-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay.active {
    opacity: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ========== Blog Kartları ========== */
.blog-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-img-container {
    height: 200px;
    overflow: hidden;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.05);
}

/* ========== Referans Kartları ========== */
.reference-item img {
    transition: var(--transition);
}

.reference-item:hover img {
    transform: scale(1.05);
}

/* ========== Footer ========== */
footer {
    background-color: var(--dark-color);
}

.footer-links a {
    color: #ddd;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 10px;
    color: #ddd;
}

.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* ========== KVKK/Cookie Consent ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(33, 37, 41, 0.95);
}

/* ========== Responsive Ayarları ========== */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .product-img-container {
        height: 180px;
    }
    
    .carousel-item {
        height: 500px;
    }
}

@media (max-width: 767.98px) {
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 300px;
    }
    
    .product-img-container {
        height: 160px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========== Hakkımızda Sayfası ========== */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== İletişim Sayfası ========== */
.map-container {
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* ========== Ürün Detay Sayfası ========== */
.thumbnail-gallery img {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail-gallery img:hover,
.thumbnail-item.active img {
    border-color: var(--primary-color);
}

/* ========== Referans Detay Sayfası ========== */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-item img {
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== Blog Detay Sayfası ========== */
.blog-content img {
    max-width: 100%;
    height: auto;
}

.blog-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-meta {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.blog-featured-image {
    margin-bottom: 2rem;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-style: italic;
    color: #6c757d;
}

.blog-share {
    padding: 1rem 0;
    margin: 2rem 0;
}

.hover-card {
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}