/* ============================================
   PatiDost Veteriner Kliniği - Ana Stil Dosyası
   Sıcak, Samimi, Hayvan Dostu Tasarım
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #1a1a2e;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

table {
    max-width: 100%;
}

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

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

/* === Seçim Rengi === */
::selection {
    background-color: #dcfce7;
    color: #16a34a;
}

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

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

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* === 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(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes pawWalk {
    0% { opacity: 0; transform: translateY(10px) rotate(-20deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px) rotate(20deg); }
}

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

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

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

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

.animate-wiggle:hover {
    animation: wiggle 0.5s ease-in-out;
}

.animate-bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* === Gecikmeli Animasyon === */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #dcfce7 0%, #ffffff 50%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* === Kartlar === */
.service-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #f97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* === Doktor Kartı === */
.doctor-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

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

.doctor-card .doctor-img {
    height: 280px;
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doctor-card .doctor-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, white, transparent);
}

/* === Yorum Kartı === */
.testimonial-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #dcfce7;
}

.testimonial-card:hover {
    border-color: #16a34a;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.1);
}

/* === İstatistik Sayaçları === */
.stat-box {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Galeri === */
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 163, 74, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* === Form Stilleri === */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: #16a34a;
    margin-right: 0.25rem;
}

/* === Butonlar === */
.btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* === Bölüm Başlıkları === */
.section-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #f97316);
    border-radius: 2px;
}

.section-subtitle {
    color: #16a34a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* === Pati İzi Ayırıcı === */
.paw-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #dcfce7;
    font-size: 0.75rem;
    margin: 1rem 0;
}

.paw-divider::before,
.paw-divider::after {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dcfce7, transparent);
}

/* === Sayfa Banner === */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16a34a 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* === Acil Buton Efekti === */
.acil-btn {
    position: relative;
}

.acil-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    animation: pulse-soft 2s ease-in-out infinite;
    z-index: -1;
}

/* === Responsive Düzenlemeler === */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem !important;
    }
}

/* === Sayfa Geçişi === */
.page-transition {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

/* === Özel Gölge === */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.shadow-green {
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.15);
}

/* === Pati Arkaplan Deseni === */
.paw-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2316a34a' opacity='0.03'%3E%3Cpath d='M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5.3-86.2 32.6-96.8 70.1 15.6 84.4 58.5zM100.4 198.6c18.9 32.4 14.3 70.1-10.2 84.1s-59.7-.9-78.5-33.3S-2.7 179.3 21.8 165.3s59.7.9 78.6 33.3zM69.2 401.2C121.6 259.9 214.7 224 256 224s134.4 35.9 186.8 177.2c3.6 9.7 5.2 20.1 5.2 30.5v1.6c0 25.8-20.9 46.7-46.7 46.7-11.5 0-22.9-1.4-34-4.2l-88-22c-15.3-3.8-31.3-3.8-46.6 0l-88 22c-11.1 2.8-22.5 4.2-34 4.2-25.8 0-46.7-20.9-46.7-46.7v-1.6c0-10.4 1.6-20.8 5.2-30.5zM324.6 141.1c-14.3-42.9.3-86.2 32.6-96.8s70.1 15.6 84.4 58.5-.3 86.2-32.6 96.8-70.1-15.6-84.4-58.5zM411.6 198.6c-18.9 32.4-14.3 70.1 10.2 84.1s59.7-.9 78.5-33.3 14.3-70.1-10.2-84.1-59.7.9-78.5 33.3z'/%3E%3C/svg%3E");
    background-size: 80px;
}
