/* ============================================
   HAYAT ECZANE - Ana Stil Dosyası
   Sağlık/Eczane Temalı Temiz CSS
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Seçim Rengi */
::selection {
    background-color: #059669;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

/* Hero Bölümü */
.hero-gradient {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

/* Kartlar */
.card-hover {
    transition: all 0.3s ease;
}

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

.product-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* Servis Kartları */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    border-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
}

.service-card:hover .service-icon {
    background-color: #059669;
    color: white;
    transform: scale(1.1);
}

.service-icon {
    transition: all 0.3s ease;
}

/* İstatistik Sayaç */
.stat-card {
    transition: all 0.3s ease;
}

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

/* Butonlar */
.btn-primary {
    background-color: #059669;
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    border: 2px solid #059669;
    color: #059669;
    padding: 10px 26px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.btn-outline:hover {
    background-color: #059669;
    color: white;
    transform: translateY(-2px);
}

/* Badge */
.badge-kampanya {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.badge-yeni {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #059669;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Tablo */
.table-eczane {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}

.table-eczane thead th {
    background: #059669;
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
}

.table-eczane tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.table-eczane tbody tr:hover {
    background-color: #ecfdf5;
}

.table-eczane tbody tr:last-child td {
    border-bottom: none;
}

/* Form */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Kategori Filtreleri */
.category-filter {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
}

.category-filter:hover,
.category-filter.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Section başlıkları */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #059669;
    border-radius: 2px;
}

/* Nöbetçi durumu */
.nobetci-aktif {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    animation: pulse-soft 2s infinite;
}

/* Harita placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px dashed #059669;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    color: #059669;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #047857;
}

/* Geçiş efekti */
.transition-all-300 {
    transition: all 0.3s ease;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: auto;
        padding: 60px 0;
    }

    .section-title::after {
        width: 40px;
    }
}

/* Yazdırma */
@media print {
    nav, footer, #scrollTopBtn, .fab-whatsapp {
        display: none !important;
    }

    .hero-gradient {
        background: white !important;
        color: black !important;
    }
}
