html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* WebSocket hata mesajlarını gizle */
[data-bs-original-title*="WebSocket connection"],
.blazor-error-ui,
.connection-error {
  display: none !important;
}

/* Browser konsol hatalarını engellemek için */
body::after {
  display: none !important;
  content: 'wss://api.kalyondoviz.com/kurhub';
}

/* Yatırım Ürünleri Kartları Animasyonları */
.investment-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.investment-icon {
    transition: transform 0.3s ease;
}

.investment-card:hover .investment-icon {
    transform: scale(1.1);
}

.continue-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.continue-link svg {
    transition: transform 0.3s ease;
}

.continue-link:hover svg {
    transform: translateX(4px);
}

/* Yatırım Bölümü Arkaplanı */
.investment-section {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.03) 0%, transparent 10%),
        radial-gradient(circle at 75% 75%, rgba(191, 160, 70, 0.03) 0%, transparent 10%),
        linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Yatırım Kartı İçerik Animasyonu */
.investment-card h3 {
    transition: color 0.3s ease;
}

.investment-card:hover h3 {
    color: #1e40af; /* primary renk */
}

.investment-card:nth-child(2):hover h3 {
    color: #bfa046; /* altın rengi */
}

/* Genel stil iyileştirmeleri */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sosyal Medya İkonları */
.social-icon-link {
    position: relative;
    display: inline-block;
}

.social-icon-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: rgba(191, 160, 70, 0.5);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icon-link:hover::after {
    transform: scale(1.3);
}

.social-icon-link > div {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon-link:hover > div {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Footer Stilleri */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(191, 160, 70, 0.5), transparent);
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Footer menü linkleri animasyonu */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #bfa046;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Mobil uygulama butonları animasyonu */
footer .space-y-4 a {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

footer .space-y-4 a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* İletişim ikonları animasyonu */
footer .flex .text-[#bfa046] {
    transition: transform 0.3s ease;
}

footer .flex:hover .text-[#bfa046] {
    transform: scale(1.2);
}

/* Footer arkaplan deseni */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(191, 160, 70, 0.03) 0%, transparent 8%),
        radial-gradient(circle at 75% 75%, rgba(191, 160, 70, 0.03) 0%, transparent 8%);
    pointer-events: none;
}

/* SEO ve sayfa hızı için lazy loading CSS */
img.lazy, iframe.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy.loaded, iframe.lazy.loaded {
  opacity: 1;
}

/* Kritik CSS tanımlamaları - en önemli ve erken yüklenecek stil tanımları */
.critical-css {
  display: block;
}

/* Mobil cihaz optimizasyonları */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
}

/* Erişilebilirlik iyileştirmeleri */
.focus-visible:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Contenful Paint (LCP) optimizasyonları - öncelikli yüklenen elemanlar */
.lcp-container {
  content-visibility: auto;
  contain-intrinsic-size: 1px 5000px; /* tahmini boyut */
}

/* Animasyonlar ve geçişler için performans optimizasyonları */
.will-change-transform {
  will-change: transform;
}

.hardware-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* WhatsApp Butonu Stilleri */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #FFF;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
  color: #FFF;
  text-decoration: none;
}

/* WhatsApp butonu animasyonu */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float.pulse {
  animation: whatsapp-pulse 2s infinite;
}

/* Mobil cihazlarda WhatsApp butonu */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

/* Baskı medyası optimizasyonları */
@media print {
  .no-print, .no-print *, .whatsapp-float {
    display: none !important;
  }
  
  body {
    background-color: #fff !important;
    color: #000 !important;
  }
  
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
}