/* Carousel */
.carousel-item {
    overflow: hidden;
    border-radius: 0.5rem;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    transition: none;
}

/* Card */
.card { 
    margin-bottom: 30px;
}
.card-img-top {
    transition: opacity 0.5s ease;
}
.card-img-top.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.card:hover .card-img-top {
    opacity: 0;
}
.card:hover .card-img-top.hover-img {
    opacity: 1;
}

/* Badge */
.badge-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}
.badge-best-seller {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
}

/* Favorite Icon */
.favorite-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    height: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.breaking-news .news-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.breaking-news p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 30px;
    text-align: left;
    padding-left: 10px;
    animation: slide 16s linear infinite;
}
.breaking-news p:nth-child(2) {
    animation-delay: 4s;
}
.breaking-news p:nth-child(3) {
    animation-delay: 8s;
}
.breaking-news p:nth-child(4) {
    animation-delay: 12s;
}
@keyframes slide {
    0% { top: 100%; }
    5% { top: 0; }
    25% { top: 0; }
    30% { top: -100%; }
    100% { top: -100%; }
}
.breaking-news p {
    opacity: 0;
}
.breaking-news p:nth-child(1) {
    animation: slide 16s linear infinite, fadeIn 1s forwards;
}
.breaking-news p:nth-child(2) {
    animation: slide 16s linear infinite 4s, fadeIn 1s 4s forwards;
}
.breaking-news p:nth-child(3) {
    animation: slide 16s linear infinite 8s, fadeIn 1s 8s forwards;
}
.breaking-news p:nth-child(4) {
    animation: slide 16s linear infinite 12s, fadeIn 1s 12s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.breaking-news .fixed-message {
    white-space: nowrap;
    margin-left: auto;
    padding-right: 10px;
}

/* Dropdown Menu */
.dropdown-menu .dropdown-item i {
    width: 20px; /* Sabit genişlik belirleniyor */
    text-align: center; /* İkonların ortalanması */
    margin-right: 10px; /* İkon ve metin arasında boşluk */
}
.dropdown-menu .dropdown-item {
    display: flex; /* İkon ve metni yan yana hizalamak için */
    align-items: center; /* Dikey olarak ortalanması */
}

/* Admin Styles */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
} 
#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Image */
.img-300x300 {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Short Description */
.short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    /* 2 satır yüksekliği */
}

/* Tabs */
.tab-content>.tab-pane {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
}
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0;
    color: #495057;
}
.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.nav-tabs .nav-link:hover {
    border-color: #6c757d;
}

/* Login */
.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.separator::before,
.separator::after {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 50%;
}
.separator::before {
    left: 0;
}
.separator::after {
    right: 0;
}

/* Register */
.form-check-label a {
    color: inherit;
    text-decoration: underline;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    position: relative;
    margin-top: auto;
}

footer .container {
    margin-top: auto;
}
/* Header & Navbar Şıklığı */
/* Navbar arkaplan ve gölge */
.navbar {
  background-color: #0284c7; /* Çok açık mavi-gri (soft pastel) */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Menü linkleri - koyu gri */
.navbar .nav-link,
.navbar .dropdown-toggle {
  color: #374151; /* Tailwind'den soft gri */
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* Hover ve focus efekti - canlı ama soft mavi */
.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus {
  color: #2563eb; /* Mavi ton */
  text-decoration: none;
}

/* Aktif link rengi */
.navbar .nav-link.active {
  color: #1d4ed8; /* Daha koyu mavi */
  font-weight: 600;
}

/* Dropdown menü */
.dropdown-menu {
  background-color: #ffffff;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  min-width: 12rem;
  padding: 0.5rem 0;
}

/* Dropdown öğeleri */
.dropdown-item {
  color: #374151;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e0e7ff; /* Açık mavi arkaplan */
  color: #1e40af; /* Koyu mavi yazı */
}

/* Dropdown ok işareti rengi */
.dropdown-toggle::after {
  border-top-color: #2563eb;
}

/* Mobil toggler */
.navbar-toggler {
  border: none;
  background-color: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-light .navbar-toggler-i


/* Kullanıcı ikonu (Giriş Yap) */
.navbar .fa-user-circle {
    color: #f9fafb;
    font-size: 1.3rem;
}

/* Giriş Yapan Kullanıcı Menüsü */
.navbar .dropdown-menu-end {
    min-width: 200px;
}

/* Mobil Menü Butonu */
.navbar-toggler {
    border: none;
    background-color: transparent;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1050; /* navbar'dan yukarıda */
    font-family: "Merriweather", Arial, Trebucset MS, Verdana, sans-serif;
    color: #4caf50;
    font-weight: 600;
    font-size: 1.1rem;
}

.loading-content small {
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
}
/* Navbar arkaplanını açık yeşil ton yap */
.navbar-light.bg-light {
  background-color: #e6f4ea !important; /* Açık yeşil, pastel */
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15); /* hafif yeşil gölge */
}

/* Menü linkleri */
.navbar-nav .nav-link {
  color: #2a3f5a; /* koyu mavi */
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #4caf50; /* canlı yeşil */
  text-decoration: none;
}

/* Aktif sayfa linki */
.navbar-nav .nav-link.active {
  color: #10b981; /* koyu yeşil */
  font-weight: 600;
}

/* Dropdown ok simgesi yeşil */
.dropdown-toggle::after {
  border-top-color: #4caf50 !important;
}

/* Dropdown menü */
.dropdown-menu {
  min-width: 12rem;
  border-radius: 0.3rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Dropdown item */
.dropdown-item {
  color: #2a3f5a;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #4caf50;
  color: #fff;
}

/* Navbar toggler ikon rengi (mobil için) */
.navbar-light .navbar-toggler-icon {
  filter: invert(30%);
}

/* About / Kurumsal Sayfası */
.about-container {
  font-family: 'Merriweather', Tahoma, Geneva, Verdana, sans-serif;
  color: #4B3B2B; /* Koyu kahve/sıcak ton */
  line-height: 1.6;
  padding: 2rem 0;
}

.about-container h1,
.about-container h2 {
  font-family: 'Merriweather', sans-serif;
  font-weight: 700;
  color: #FF6F61; /* Mercan başlık rengi */
  margin-bottom: 1rem;
}

.about-container h1 {
  font-size: 1.5rem;
}

.about-container h2 {
  font-size: 1.25rem;
}

.about-card {
  background-color: #FFF0EB;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(255, 111, 97, 0.15);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.dropdown-menu {
  z-index: 2000 !important;
}



