/* Su Tesisatçısı Web Sitesi - Ana Stil Dosyası */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Özel CSS Sınıfları */
@layer base {
    html {
        scroll-behavior: smooth;
        height: 100%;
    }

    body {
        font-family: 'Inter', sans-serif;
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1;
    }
}

@layer components {
    /* Buton Stilleri */
    .btn-primary {
        @apply bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
    }
    
    .btn-secondary {
        @apply bg-gray-100 hover:bg-gray-200 text-gray-800 font-semibold py-3 px-6 rounded-lg transition-all duration-300 border border-gray-300;
    }
    
    .btn-whatsapp {
        @apply bg-green-500 hover:bg-green-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl flex items-center gap-2;
    }
    
    /* Kart Stilleri */
    .card {
        @apply bg-white rounded-xl shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2 border border-gray-100;
    }
    
    .service-card {
        @apply card p-6 text-center group cursor-pointer;
    }
    
    /* Form Stilleri */
    .form-input {
        @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 bg-white;
    }
    
    .form-textarea {
        @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 bg-white resize-none;
    }
    
    .form-label {
        @apply block text-sm font-medium text-gray-700 mb-2;
    }
    
    /* Başlık Stilleri */
    .section-title {
        @apply text-3xl md:text-4xl font-bold text-gray-800 text-center mb-4;
    }
    
    .section-subtitle {
        @apply text-lg text-gray-600 text-center mb-12 max-w-2xl mx-auto;
    }
    
    /* Hero Slider */
    .hero-slider {
        position: relative;
        height: 500px;
        overflow: hidden;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .slide.active {
        opacity: 1;
    }

    .slide-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.6) 100%);
    }

    .slide-content {
        position: relative;
        z-index: 10;
        height: 100%;
    }

    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .nav-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .slider-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        display: flex;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active,
    .dot:hover {
        background: white;
        transform: scale(1.2);
    }

    /* Hero Gradient (Fallback) */
    .hero-gradient {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    /* Animasyonlar */
    .fade-in {
        animation: fadeIn 0.6s ease-in-out;
    }
    
    .slide-up {
        animation: slideUp 0.8s ease-out;
    }
    
    .bounce-in {
        animation: bounceIn 1s ease-out;
    }
    
    /* WhatsApp Sabit Buton */
    .whatsapp-float {
        @apply fixed bottom-6 right-6 z-50 bg-green-500 hover:bg-green-600 text-white p-4 rounded-full shadow-2xl transition-all duration-300 transform hover:scale-110;
    }
    
    /* Yıldız Rating */
    .star-rating {
        @apply flex items-center gap-1;
    }
    
    .star {
        @apply text-yellow-400 text-lg;
    }
    
    /* Responsive Grid */
    .services-grid {
        @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8;
    }
    
    .testimonials-grid {
        @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
    }
    
    /* Özel Scrollbar */
    .custom-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
    
    .custom-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }
    
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

@layer utilities {
    /* Özel Utility Sınıfları */
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .bg-pattern {
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f8fafc' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    /* Line Clamp Utilities */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-4 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Aspect Ratio Utilities */
    .aspect-square {
        aspect-ratio: 1 / 1;
    }

    @supports not (aspect-ratio: 1 / 1) {
        .aspect-square {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 100%;
        }

        .aspect-square > * {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
}

/* Keyframe Animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Tasarım İyileştirmeleri */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content .container {
        padding: 2rem 1rem;
    }

    .slide h1 {
        font-size: 2rem !important;
    }

    .slide p {
        font-size: 1rem !important;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-nav {
        padding: 0 10px;
    }

    .hero-gradient {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .slide h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .slide p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    .slide .btn-primary,
    .slide .btn-whatsapp {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Stilleri */
@media print {
    .whatsapp-float,
    .btn-whatsapp,
    nav,
    footer {
        display: none !important;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .card {
        @apply bg-gray-800 border-gray-700;
    }
    
    .form-input,
    .form-textarea {
        @apply bg-gray-800 border-gray-600 text-white;
    }
    
    .section-title {
        @apply text-white;
    }
    
    .section-subtitle {
        @apply text-gray-300;
    }
}

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

/* Focus Stilleri */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
