/* ============================================
   Cezayirli Güvenlik - Özel CSS Stilleri
   ============================================ */

/* Kurumsal Yazı Fontu - Inter */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin Panel Font Ayarları */
body * {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Admin Panel Özel Font Boyutları */
.admin-panel h1 { font-size: 28px; }
.admin-panel h2 { font-size: 22px; }
.admin-panel h3 { font-size: 18px; }
.admin-panel h4 { font-size: 16px; }

.admin-panel p, 
.admin-panel span, 
.admin-panel label,
.admin-panel a,
.admin-panel button,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    font-size: 14px;
}

.admin-panel .text-xs { font-size: 12px; }
.admin-panel .text-sm { font-size: 13px; }
.admin-panel .text-base { font-size: 14px; }
.admin-panel .text-lg { font-size: 16px; }
.admin-panel .text-xl { font-size: 20px; }
.admin-panel .text-2xl { font-size: 24px; }
.admin-panel .text-3xl { font-size: 28px; }

/* Animasyonlar */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.8); }
}

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

.animate-slide-in { animation: slideIn 0.4s ease-out; }
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Scroll animasyonu */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Slider */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
}
/* Slider noktaları aktif */
.slider-dot.active-dot {
    background-color: #f97316 !important;
    width: 2rem;
}

/* Dark Mode Geçişleri */
* { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }

/* Navbar */
.navbar-scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.9) !important;
}
.dark .navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

/* Hizmet Kartları Hover */
.hizmet-kart {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hizmet-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.dark .hizmet-kart:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Galeri Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img.lightbox-img {
    max-width: calc(100% - 120px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .lightbox img.lightbox-img {
        max-width: calc(100% - 80px);
    }
}

/* WhatsApp Butonu */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}
.whatsapp-icon {
    width: 30px;
    height: 30px;
}
.whatsapp-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.6);
    animation: whatsappPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes whatsappPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
.dark .whatsapp-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* CTA Bölümü */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* Form Stilleri */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Mobil Menü */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Lazy Loading Placeholder */
.lazy-img {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.dark .lazy-img {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sayaç Animasyonu */
.counter { font-variant-numeric: tabular-nums; }

/* Blog Kart */
.blog-kart img {
    transition: transform 0.5s ease;
}
.blog-kart:hover img {
    transform: scale(1.05);
}

/* Admin Paneli Tablo */
.admin-tablo th { white-space: nowrap; }
.admin-tablo tr:hover td { background-color: rgba(249, 115, 22, 0.05); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-btn { width: 48px; height: 48px; top: 90px; right: 16px; bottom: auto; }
}

/* Hizmet Detay - Eksik Tailwind Dark Mode Stilleri */
.dark\:bg-green-500\/10:is(.dark *),
.dark .bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.dark\:border-green-500\/30:is(.dark *),
.dark .border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.dark\:bg-red-500\/10:is(.dark *),
.dark .bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.dark\:border-red-500\/30:is(.dark *),
.dark .border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }

/* Prose Fallback (typography plugin) */
.prose { max-width: 65ch; color: #374151; line-height: 1.75; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 700; margin-top: 1.5em; margin-bottom: 0.5em; line-height: 1.3; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose ul, .prose ol { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose a { color: #f97316; text-decoration: underline; }
.prose strong { font-weight: 700; }
.prose.prose-lg { font-size: 1.125em; line-height: 1.7; }
.prose.prose-lg h2 { font-size: 1.4em; }
.prose.prose-lg h3 { font-size: 1.2em; }
.dark .prose, .dark\:prose-invert:is(.dark *) { color: #e2e8f0; }
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4 { color: #f1f5f9; }
.dark .prose a { color: #fb923c; }
.prose.max-w-none { max-width: none; }
