/* ========================================================================
   SWILINK - ANA STIL DOSYASI (Temiz ve Optimize)
   ======================================================================== */

/* ========== ROOT DEGISKENLER ========== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --dark: #212529;
  --light: #f8f9fa;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --gradient-dark-start: #4c51bf;
  --gradient-dark-end: #5a67d8;
  --swilink-red: #d90429;
  --swilink-navy: #1f3f75;
  --swilink-red-light: #ef233c;
  --swilink-navy-light: #2f5aa6;
  --swilink-gray: #6c757d;
  --swilink-dark: #0f172a;
}

/* ========== TEMEL AYARLAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== NAVBAR ========== */
.navbar-nav .nav-link {
  transition: color 0.2s ease;
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Light Navbar */
[data-bs-theme="light"] .navbar {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .navbar-nav .nav-link {
  color: #4a5568 !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

/* Dark Navbar */
[data-bs-theme="dark"] .navbar {
  background-color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1.5px;
}

/* Dark theme */
.navbar-brand span {
  font-weight: 700;
  letter-spacing: 1px;
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

[data-bs-theme="dark"] .navbar-toggler {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241, 245, 249, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO SECTION ========== */
.hero-modern {
  overflow: hidden;
  /* Yatay kaydırma çubuğunu yok eder */
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)), url('/public/images/hero-bg-light.jpg');
  background-size: cover;
  background-position: center bottom;
  /* Alt kısım görünsün */
  background-repeat: no-repeat;
}

/* Dark tema - opaklığı azalt, background-position aynı */
[data-bs-theme="dark"] .hero-modern {
  background: linear-gradient(135deg, rgba(76, 81, 191, 0.1), rgba(90, 103, 216, 0.1)), url('/public/images/hero-bg-dark.jpg'
    );
  background-size: cover;
  background-position: center bottom;
}

/* ========== HERO FIX ========== */
/* Light tema - Ana sayfa */
.hero-modern.hero-home {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)), url('/public/images/hero-bg-light.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: auto;
}

/* Light tema - Diğer sayfalar */
.hero-modern.hero-other {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)), url('/public/images/hero-bg-light.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 54vh;
}

/* Dark tema - Ana sayfa */
[data-bs-theme="dark"] .hero-modern.hero-home {
  background: linear-gradient(135deg, rgba(76, 81, 191, 0.1), rgba(90, 103, 216, 0.1)), url('/public/images/hero-bg-dark.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: auto;
}

/* Dark tema - Diğer sayfalar */
[data-bs-theme="dark"] .hero-modern.hero-other {
  background: linear-gradient(135deg, rgba(76, 81, 191, 0.1), rgba(90, 103, 216, 0.1)), url('/public/images/hero-bg-dark.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 54vh;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.hero-modern>.container {
  position: relative;
  z-index: 2;
}

.hero-icon {
  animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ========== HERO SLOGAN CORNER ========== */
.hero-slogan-corner {
  position: absolute;
  top: -70px;
  right: -70px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd966;
  white-space: nowrap;
  opacity: 0.9;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-slogan-corner:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ========== AVRUPA HARITASI ========== */
.europe-map-card {
  background-image: url('/public/images/europe-map.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

/* ========== AVRUPA HARITASI BUZLU CAM EFEKTI ========== */
.glass-overlay {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.glass-overlay h4,
.glass-overlay p {
  color: #ffffff !important;
}

/* ========== HERO DAIRELERI (SEFFAF IKON) ========== */
.rounded-circle.bg-white.bg-opacity-15 {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 100px !important;
  height: 100px !important;
  backdrop-filter: blur(4px);
}

.rounded-circle.bg-white.bg-opacity-15:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.25) !important;
}

.rounded-circle.bg-white.bg-opacity-15 img {
  height: 90px !important;
  width: auto;
}

.rounded-circle.bg-white.bg-opacity-15 i {
  font-size: 50px !important;
}

/* ========== HOVER SHADOW ========== */
.hover-shadow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .hover-shadow:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ========== PRODUCT BADGE ========== */
.product-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px !important;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.3s ease;
}

.product-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-badge.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-badge.secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.product-badge.success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.product-badge.warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.product-badge.danger {
  background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.product-badge.info {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.product-badge.purple {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.product-badge.dark {
  background: linear-gradient(135deg, #212529 0%, #0f172a 100%);
}

.product-badge.position-top-left {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
}

.product-badge.position-top-right {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

[data-bs-theme="dark"] .product-badge {
  background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%);
}

[data-bs-theme="dark"] .product-badge.secondary {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

[data-bs-theme="dark"] .product-badge.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-bs-theme="dark"] .product-badge.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
}

[data-bs-theme="dark"] .product-badge.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

[data-bs-theme="dark"] .product-badge.info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* ========== FOUNDER CARD ========== */
.founder-card {
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.founder-avatar {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  background-image: url('/public/images/me.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
  border: 6px solid rgba(255, 255, 255, 0.6);
}

.founder-card:hover .founder-avatar {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .founder-card {
  background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%) !important;
}

/* ========== TEAM HORIZONTAL CARDS ========== */
.team-horizontal-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.team-horizontal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
}

[data-bs-theme="dark"] .team-horizontal-card {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.team-horizontal-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-bs-theme="dark"] .team-horizontal-image {
  background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%);
}

.team-horizontal-image .avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.team-horizontal-image .avatar-circle i {
  font-size: 2rem;
}

.team-horizontal-card .social-links a {
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.team-horizontal-card .social-links a:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 2px solid #0f3460;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 2;
  min-width: 250px;
  color: #adb5bd;
}

.cookie-text i {
  font-size: 1.5rem;
  color: #ffc107;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid #6c757d;
  color: #adb5bd;
}

.cookie-btn-settings:hover {
  background: rgba(108, 117, 125, 0.2);
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
}

.cookie-btn-reject:hover {
  background: #dc3545;
  color: #fff;
}

.cookie-btn-accept {
  background: #198754;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #157347;
  transform: scale(1.02);
}

/* ========== LIGHT / DARK THEME GENEL ========== */
[data-bs-theme="light"] body {
  background-color: #ffffff;
  color: #1e293b;
}

[data-bs-theme="light"] .bg-light {
  background-color: #f8fafc !important;
}

[data-bs-theme="light"] .card {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

[data-bs-theme="dark"] body {
  background-color: #0a0f1a;
  color: #cbd5e1;
}

[data-bs-theme="dark"] .card {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #111827 !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #60a5fa;
  border-color: #3b82f6;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #3b82f6;
  color: #ffffff;
}

[data-bs-theme="dark"] footer {
  background-color: #0a0f1a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== ScrollToTop Button ========== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #0d6efd), var(--primary-dark, #0a58ca));
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--primary-dark, #0a58ca), var(--primary, #0d6efd));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
  font-size: 32px;
  line-height: 1;
}

/* Dark tema uyumu */
[data-bs-theme="dark"] .scroll-to-top {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 991.98px) {

  .navbar-brand img {
    height: 28px;
  }

  [data-bs-theme="dark"] .navbar-collapse {
    background-color: #0f172a;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {

  .navbar-brand img {
    height: 28px;
  }

  .hero-logo img {
    max-height: 70px;
  }

  /* Yan daireler */
  .rounded-circle.bg-white.bg-opacity-15 {
    width: 75px !important;
    height: 75px !important;
  }

  .rounded-circle.bg-white.bg-opacity-15 i {
    font-size: 35px !important;
  }

  .rounded-circle.bg-white.bg-opacity-15 img {
    height: 40px !important;
  }

  /* Yazı boyutları */
  .hero-modern .text-center p {
    font-size: 0.7rem !important;
  }

  .hero-modern .text-center small {
    font-size: 0.6rem !important;
  }

  .badge,
  .btn-outline-primary {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.9rem !important;
  }

  .hero-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)), url('/public/images/hero-bg.webp');
    background-attachment: scroll;
  }

  [data-bs-theme="dark"] .hero-modern {
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.95), rgba(90, 103, 216, 0.95)), url('/public/images/hero-bg.webp');
  }

  .hero-slogan-corner {
    position: relative;
    top: 0;
    right: auto;
    display: inline-block;
    margin-bottom: 1rem;
    white-space: normal;
    text-align: center;
    font-size: 0.7rem;
  }

  .team-horizontal-card .row {
    flex-direction: column;
  }

  .team-horizontal-image {
    order: -1;
    min-height: 120px;
  }

  .team-horizontal-image .avatar-circle {
    width: 60px;
    height: 60px;
  }

  .team-horizontal-image .avatar-circle i {
    font-size: 1.5rem;
  }

  .team-horizontal-card .card-body {
    text-align: center;
  }

  .team-horizontal-card .social-links {
    justify-content: center;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-text {
    justify-content: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
  }

  .hero-modern {
    padding: 2rem 0 !important;
  }

  .page-header .display-4,
  .hero-modern .display-4 {
    font-size: 1.75rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top i {
    font-size: 28px;
  }
}

/* ========== RESPONSIVE (KÜÇÜK MOBİL) ========== */
@media (max-width: 576px) {
  .rounded-circle.bg-white.bg-opacity-15 {
    width: 60px !important;
    height: 60px !important;
  }

  .rounded-circle.bg-white.bg-opacity-15 i {
    font-size: 28px !important;
  }

  .rounded-circle.bg-white.bg-opacity-15 img {
    height: 32px !important;
  }

  .bg-primary.rounded-circle {
    width: 60px !important;
    height: 60px !important;
  }

  .bg-primary.rounded-circle i {
    font-size: 28px !important;
  }

  .hero-modern .text-center p {
    font-size: 0.6rem !important;
  }

  .hero-modern .text-center small {
    font-size: 0.5rem !important;
  }
}