/**
 * Custom CSS
 * Bootstrap 5 özelleştirmeleri ve ek stiller
 */

/* Genel */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Slider Section */
.hero-slider-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider-section .carousel {
    height: 100%;
}

.hero-slider-section .carousel-inner {
    height: 100%;
}

.hero-slider-section .carousel-item {
    height: 100%;
    position: relative;
}

.slider-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

.hero-slider-section .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-align: left;
    padding: 0;
}

.hero-slider-section .carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
}

.hero-slider-section .carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
}

.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    z-index: 3;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-section .carousel-control-prev {
    left: 20px;
}

.hero-slider-section .carousel-control-next {
    right: 20px;
}

.hero-slider-section .carousel-indicators {
    z-index: 3;
    bottom: 30px;
    margin: 0;
}

.hero-slider-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

/* Animasyonlar */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s both;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .hero-slider-section {
        height: 500px;
    }
    
    .hero-slider-section .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .hero-slider-section .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 450px;
    }
    
    .hero-slider-section .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-slider-section .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-slider-section .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-slider-section .carousel-caption .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-slider-section .carousel-caption .btn {
        width: 100%;
    }
    
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-section .carousel-control-prev {
        left: 10px;
    }
    
    .hero-slider-section .carousel-control-next {
        right: 10px;
    }
    
    .hero-slider-section .carousel-indicators {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-slider-section {
        height: 400px;
    }
    
    .hero-slider-section .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .hero-slider-section .carousel-caption p {
        font-size: 0.95rem;
    }
}

/* Sticky Bottom Buttons (WhatsApp ve Telefon) */
.sticky-bottom-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-floating {
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background-color: #25D366;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    border-color: #20BA5A;
}

.phone-btn {
    background-color: #007bff;
    border-color: #007bff;
}

/* Mobil için alt bar */
@media (max-width: 768px) {
    .sticky-bottom-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #dee2e6;
    }
    
    .btn-floating {
        flex: 1;
        max-width: 45%;
        border-radius: 10px;
    }
    
    .btn-floating span {
        display: inline !important;
    }
}

/* Lazy Loading - Native lazy loading kullanılıyor, opacity gerekmiyor */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

/* Card hover efekti */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Tıklanabilir resim ve başlık */
.card a img {
    transition: opacity 0.2s;
}

.card a:hover img {
    opacity: 0.9;
}

.card-title a {
    transition: color 0.2s;
}

.card-title a:hover {
    color: #0d6efd !important;
}

/* Carousel özelleştirmeleri */
.carousel-item {
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* Content alanı */
.content {
    line-height: 1.8;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content p {
    margin-bottom: 1.5rem;
}

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

/* Footer */
footer {
    margin-top: auto;
    background-color: #212529 !important;
}

footer .text-light {
    color: #ffffff !important;
}

footer .opacity-75 {
    opacity: 0.75 !important;
}

footer a {
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1 !important;
}

footer .hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Admin Panel */
.navbar-brand {
    font-weight: 600;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly buttons (mobil) */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }
}

/* Mobil hizmetler collapse menüsü */
#servicesMobileMenu {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#servicesMobileMenu .nav-link {
    padding: 10px 15px;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

#servicesMobileMenu .nav-link:last-child {
    border-bottom: none;
}

#servicesMobileMenu .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

[data-bs-target="#servicesMobileMenu"] .fa-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Dropdown desktop */
@media (min-width: 992px) {
    .dropdown-menu {
        margin-top: 0.5rem;
    }
}

/* Print styles */
@media print {
    .sticky-bottom-buttons,
    .navbar,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


