/**
 * Acarsuaritma.net - Ana CSS Dosyası
 * Modern, responsive ve kullanıcı dostu tasarım
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #26c6da;
    --accent-color: #ff7043;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CUSTOM BOOTSTRAP OVERRIDES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

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

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    color: white;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

/* ===== HEADER STYLES ===== */
.top-bar {
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

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

/* ===== HERO SECTION ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-slide.bg-info {
    background: linear-gradient(135deg, var(--info-color), var(--secondary-color));
}

.hero-slide.bg-success {
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-buttons .btn {
    margin: 0.25rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.title-divider {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    margin: 1rem auto 2rem;
}

/* ===== FEATURES SECTION ===== */
.feature-item {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-meta {
    margin: 1rem 0;
}

.product-price {
    font-size: 1.2rem;
}

.price-old {
    font-size: 1rem;
}

.price-new,
.price {
    font-size: 1.3rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-price {
    font-size: 1.1rem;
}

.service-buttons .btn {
    margin: 0.25rem;
}

/* ===== WHY US SECTION ===== */
.why-item {
    margin-bottom: 2rem;
}

.why-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.stat-item {
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/cta-pattern.png') repeat;
    opacity: 0.1;
}

.cta-buttons .btn {
    margin: 0.25rem;
}

/* ===== FIXED BUTTONS ===== */
.fixed-offer-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.fixed-whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1050;
}

.fixed-offer-btn .btn,
.fixed-whatsapp-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
}

footer .contact-info {
    line-height: 1.8;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--dark-color);
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: 1px solid #ddd;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== LOADING SPINNER ===== */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid rgba(30, 136, 229, 0.25);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.toast-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.shadow-custom {
    box-shadow: var(--box-shadow) !important;
}

.border-radius-custom {
    border-radius: var(--border-radius) !important;
}

.transition-custom {
    transition: var(--transition) !important;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== SELECTION ===== */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ===== ENHANCED FEATURES SECTION ===== */
.features-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.feature-box {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    
    /* Başlangıç gölgesi - hafif ve zarif */
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.02),
        0 4px 8px rgba(0,0,0,0.03),
        0 8px 16px rgba(0,0,0,0.04),
        0 16px 32px rgba(0,0,0,0.05);
}

/* Hover efekti - yukarı kalkma ve gölge değişimi */
.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(30, 136, 229, 0.2);
    
    /* Hover gölgesi - daha belirgin ve renkli */
    box-shadow: 
        0 4px 8px rgba(30, 136, 229, 0.08),
        0 8px 16px rgba(30, 136, 229, 0.12),
        0 16px 32px rgba(30, 136, 229, 0.16),
        0 24px 48px rgba(0,0,0,0.1);
}

/* Feature icon için özel efektler */
.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1e88e5, #26c6da);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    
    /* Icon gölgesi */
    box-shadow: 
        0 4px 8px rgba(30, 136, 229, 0.2),
        0 8px 24px rgba(30, 136, 229, 0.15);
}

/* Icon hover efekti */
.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 6px 12px rgba(30, 136, 229, 0.3),
        0 12px 32px rgba(30, 136, 229, 0.2);
}

/* Feature icon pulse animasyonu */
.feature-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #1e88e5, #26c6da);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.feature-box:hover .feature-icon::before {
    opacity: 0.2;
    transform: scale(1.1);
}

/* Başlık ve metin stilleri */
.feature-box h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.feature-box:hover h5 {
    color: #1e88e5;
}

.feature-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-box:hover p {
    color: #555;
}

/* Arka plan deseni (isteğe bağlı) */
.feature-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-box:hover::after {
    opacity: 1;
}

/* ===== MOBİL RESİM DÜZELTMELERİ - STYLE.CSS EKLENTİSİ ===== */

/* Temel resim container düzeltmeleri */
.product-card,
.service-card {
    overflow: hidden;
    position: relative;
}

/* Ürün kartı resim container'ı */
.product-image {
    position: relative;
    width: 100%;
    height: 250px !important; /* Sabit yükseklik zorla */
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Ürün kartı resmi */
.product-image img,
.product-card .card-img-top {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Resmi kırpmadan sığdır */
    object-position: center !important; /* Resmi ortala */
    transition: transform 0.3s ease;
    display: block;
}

/* Card img top özel düzenleme */
.card-img-top {
    border-radius: 8px 8px 0 0 !important;
}

/* Hizmet kartı resmi */
.service-card .card-img-top,
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* Hover efektleri */
.product-card:hover .product-image img,
.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card:hover .card-img-top {
    transform: scale(1.02);
}

/* Hero carousel resimleri */
.hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 60vh;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
}

/* ===== MOBİL RESPONSIVE DÜZENLEMELER ===== */

/* Large tablet - 768px to 991px */
@media (max-width: 991px) and (min-width: 768px) {
    .product-image {
        height: 220px !important;
    }
    
    .service-card .card-img-top,
    .service-image {
        height: 180px;
    }
    
    .hero-slide,
    .carousel-item img {
        min-height: 50vh;
        height: 50vh;
    }
}

/* Small tablet - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    .product-image {
        height: 200px !important;
    }
    
    .service-card .card-img-top,
    .service-image {
        height: 160px;
    }
    
    .hero-slide,
    .carousel-item img {
        min-height: 45vh;
        height: 45vh;
    }
    
    /* Grid düzeni iyileştirmesi */
    .row > [class*='col-'] {
        margin-bottom: 1.5rem;
    }
}

/* Mobile - 320px to 575px */
@media (max-width: 575px) {
    /* Container padding düzeltmesi */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Resim boyutları */
    .product-image {
        height: 180px !important;
    }
    
    .service-card .card-img-top,
    .service-image {
        height: 140px;
    }
    
    /* Hero section */
    .hero-slide,
    .carousel-item img {
        min-height: 40vh;
        height: 40vh;
    }
    
    /* Card düzenlemeleri */
    .card {
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Grid düzeni - mobilde full width */
    .products-grid .col-6,
    .products-grid .col-sm-6,
    .products-grid .col-md-4,
    .products-grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Service grid mobil düzen */
    .services-grid .col-md-6,
    .services-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Very small mobile - below 375px */
@media (max-width: 374px) {
    .product-image {
        height: 160px !important;
    }
    
    .service-card .card-img-top,
    .service-image {
        height: 120px;
    }
    
    .hero-slide,
    .carousel-item img {
        min-height: 35vh;
        height: 35vh;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
}

/* ===== ÖZEL DÜZELTMELER ===== */

/* Image lazy loading için placeholder */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image loaded state */
img.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Aspect ratio support for modern browsers */
@supports (aspect-ratio: 1) {
    .product-image {
        aspect-ratio: 4/3;
        height: auto !important;
    }
    
    .service-image,
    .service-card .card-img-top {
        aspect-ratio: 16/9;
        height: auto !important;
    }
}

/* Flex düzenlemeler */
.products-grid,
.services-grid {
    display: flex;
    flex-wrap: wrap;
}

.product-card,
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
}

/* Gallery ve modal düzeltmeleri */
.gallery-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: #1e88e5;
    opacity: 0.8;
}

/* İkona sahip resimler için özel düzenleme */
.product-icon-container {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-icon-container i {
    font-size: 2rem;
    color: #1e88e5;
}

/* Print media için düzeltmeler */
@media print {
    .product-image,
    .card-img-top {
        height: auto !important;
        max-height: 200px;
        object-fit: contain;
    }
    
    .hero-slide {
        min-height: auto !important;
        height: auto !important;
        padding: 1rem 0;
    }
}

/* High DPI displays için optimize edilmiş görüntüler */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}