/* =============================================
   ANADOLU SAGLIK KLINIGI - Custom CSS
   ============================================= */

/* === Genel === */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

::selection {
    background-color: #0ea5e9;
    color: white;
}

/* === Scroll Bar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f9ff;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0c4a6e;
}

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

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

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(14, 165, 233, 0.1); }
}

@keyframes counter {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Fade in on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* === Kart Efektleri === */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-hover:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    background-color: #0ea5e9;
    color: white;
}

.card-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Doktor karti */
.doctor-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.15);
}

.doctor-card:hover .doctor-avatar {
    transform: scale(1.05);
    border-color: #10b981;
}

.doctor-avatar {
    transition: all 0.4s ease;
}

/* === Hero === */
.hero-gradient {
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 50%, #10b981 100%);
}

.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 40%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

/* === Buton Efektleri === */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0c4a6e);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

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

.form-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-input:hover {
    border-color: #93c5fd;
}

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

.form-select {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
}

.form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-textarea {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    resize: vertical;
    min-height: 120px;
    background: white;
}

.form-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* === Istatistik Counter === */
.stat-item {
    animation: counter 0.8s ease-out forwards;
}

/* === Bolumleri Hover === */
.department-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: left 0.4s ease;
}

.department-card:hover::before {
    left: 0;
}

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

/* === Yorum Karti === */
.testimonial-card {
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: #0ea5e9;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.1);
}

/* === Gradient Text === */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Section Divider === */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    border-radius: 2px;
    margin: 0 auto;
}

/* === Timeline === */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: #0ea5e9;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0ea5e9;
}

/* === Harita Placeholder === */
.map-placeholder {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    position: relative;
    overflow: hidden;
}

.map-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(14,165,233,0.05) 40px, rgba(14,165,233,0.05) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(14,165,233,0.05) 40px, rgba(14,165,233,0.05) 41px);
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 500px;
    }
}

/* === Print === */
@media print {
    nav, footer, .scrollTopBtn, .acil-hat {
        display: none !important;
    }
}
