/* Custom Styles for Narin Kasap E-ticaret Site */

/* Import Museo Sans 900 Font */
@import url("https://fonts.googleapis.com/css2?family=Museo+Sans:wght@900&display=swap");

/* Custom Color Variables */
:root {
  --primary-color: #6692a9; /* Ana mavi-gri ton */
  --secondary-color: #00354c; /* Koyu mavi vurgu */
  --dark-color: #0f202e; /* Çok koyu mavi arka plan */
  --light-color: #ece6dd; /* Krem/bej açık ton */
  --accent-color: #6692a9; /* Vurgu rengi */
  --text-dark: #0f202e; /* Koyu metin */
  --text-light: #ece6dd; /* Açık metin */
  --border-color: #6692a9; /* Kenarlık rengi */
}

/* Global Font Settings */
body {
  font-family: "Museo Sans", sans-serif;
  font-weight: 900;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f202e 0%, #00354c 50%, #6692a9 100%);
  min-height: 50vh;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1544025162-d76694265947?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80")
    center/cover;
  opacity: 0.15;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Hero Logo Styling */
.hero-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.hero-logo-text {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

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

/* Navbar Logo Styling */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 300px;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 900;
  color: #00354c !important;
}

.navbar-brand img {
  height: 45px;
  width: 45px;
  object-fit: contain;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #6692a9;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Mobile Navbar Container */
@media (max-width: 768px) {
  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-brand {
    max-width: 200px !important;
    gap: 0.5rem !important;
    font-size: 1.1rem !important;
  }

  .navbar-brand img {
    height: 35px !important;
    width: 35px !important;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
  }

  .nav-link {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.8rem !important;
    min-width: 90px;
  }
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
  .hero-logo {
    max-width: 150px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
  }

  .hero-section {
    min-height: 40vh;
    padding: 60px 0 40px 0;
  }
}

@media (max-width: 576px) {
  .navbar .container {
    padding-left: 5px;
    padding-right: 5px;
  }

  .navbar-brand {
    max-width: 150px !important;
    gap: 0.3rem !important;
    font-size: 1rem !important;
  }

  .navbar-brand img {
    height: 30px !important;
    width: 30px !important;
  }

  .navbar-toggler {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
  }

  .nav-link {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.6rem !important;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    padding-left: 3px;
    padding-right: 3px;
  }

  .navbar-brand {
    max-width: 120px !important;
    gap: 0.2rem !important;
    font-size: 0.9rem !important;
  }

  .navbar-brand img {
    height: 25px !important;
    width: 25px !important;
  }

  .navbar-toggler {
    padding: 0.15rem 0.3rem !important;
    font-size: 0.7rem !important;
  }

  .nav-link {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.5rem !important;
    min-width: 70px;
  }
}

@media (max-width: 360px) {
  .navbar .container {
    padding-left: 2px;
    padding-right: 2px;
  }

  .navbar-brand {
    max-width: 100px !important;
    gap: 0.1rem !important;
    font-size: 0.8rem !important;
  }

  .navbar-brand img {
    height: 20px !important;
    width: 20px !important;
  }

  .navbar-toggler {
    padding: 0.1rem 0.25rem !important;
    font-size: 0.65rem !important;
  }

  .nav-link {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.4rem !important;
    min-width: 60px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 35px;
  }

  .hero-logo {
    max-width: 120px;
  }

  .hero-logo-text h3 {
    font-size: 1.1rem;
  }

  .hero-logo-text p {
    font-size: 0.85rem;
  }

  .hero-section {
    min-height: 35vh;
    padding: 50px 0 30px 0;
  }

  .hero-logo-container {
    padding: 1rem;
  }
}

/* Top Bar */
.top-bar {
  background-color: #0f202e !important;
  font-size: 0.875rem;
}

/* Navigation */
.navbar {
  background-color: #ece6dd !important;
  transition: all 0.3s ease;
  border-bottom: 2px solid #6692a9;
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.4rem;
  transition: all 0.3s ease;
  color: #00354c !important;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: #6692a9 !important;
  transform: scale(1.05);
}

.navbar-brand img {
  height: 45px;
  width: 45px;
  transition: all 0.3s ease;
  border-radius: 50%;
  border: 2px solid #6692a9;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  color: #00354c !important;
  padding: 0.6rem 1rem !important;
  position: relative;
  white-space: nowrap;
  text-align: center;
  min-width: 100px;
}

.nav-link:hover {
  color: #6692a9 !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #6692a9 !important;
  font-weight: 900;
  background-color: rgba(102, 146, 169, 0.1);
  border-radius: 8px;
}

/* Navbar Search and Buttons */
.navbar .input-group {
  max-width: 300px;
}

.navbar .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar .btn-outline-primary {
  border-color: #6692a9;
  color: #6692a9;
}

.navbar .btn-outline-primary:hover {
  background-color: #6692a9;
  border-color: #6692a9;
  color: white;
}

.navbar .btn-primary {
  background-color: #6692a9;
  border-color: #6692a9;
}

.navbar .btn-primary:hover {
  background-color: #00354c;
  border-color: #00354c;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #6692a9;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Search Bar */
.input-group .form-control:focus {
  border-color: #6692a9;
  box-shadow: 0 0 0 0.2rem rgba(102, 146, 169, 0.25);
}

/* Button Styling */
.btn-primary {
  background-color: #6692a9 !important;
  border-color: #6692a9 !important;
  transition: all 0.3s ease;
  font-weight: 900;
}

.btn-primary:hover {
  background-color: #00354c !important;
  border-color: #00354c !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #6692a9 !important;
  border-color: #6692a9 !important;
  transition: all 0.3s ease;
  font-weight: 900;
}

.btn-outline-primary:hover {
  background-color: #6692a9 !important;
  border-color: #6692a9 !important;
  transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ece6dd;
  background-color: #ece6dd !important;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(15, 32, 46, 0.15) !important;
  border-color: #6692a9;
}

.feature-card i {
  color: #6692a9 !important;
}

.feature-card h5 {
  color: #00354c !important;
  font-weight: 900;
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ece6dd;
  background-color: #ece6dd !important;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 32, 46, 0.1) !important;
  border-color: #6692a9;
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-title {
  color: #00354c !important;
  font-weight: 900;
}

/* Price Styling */
.text-primary.fw-bold.fs-5 {
  color: #6692a9 !important;
}

/* Badge Styling */
.badge.bg-primary {
  background-color: #6692a9 !important;
}

.badge.bg-success {
  background-color: #6692a9 !important;
}

/* Form Styling */
.form-control:focus {
  border-color: #6692a9;
  box-shadow: 0 0 0 0.2rem rgba(102, 146, 169, 0.25);
}

/* Icon Animations */
.fas,
.far,
.fab {
  transition: transform 0.3s ease;
}

.btn:hover .fas,
.btn:hover .far,
.btn:hover .fab {
  transform: scale(1.1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Spacing */
section {
  padding: 80px 0;
}

/* Background Colors */
.bg-light {
  background-color: #ece6dd !important;
}

.bg-dark {
  background-color: #0f202e !important;
}

/* Text Colors */
.text-dark {
  color: #0f202e !important;
}

.text-primary {
  color: #6692a9 !important;
}

.text-muted {
  color: #00354c !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 100px 0 60px 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .input-group {
    width: 100% !important;
  }
}

/* Loading Animation for Images */
.card-img-top {
  background: linear-gradient(90deg, #ece6dd 25%, #6692a9 50%, #ece6dd 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Footer Styling */
footer {
  margin-top: 0;
  background-color: #0f202e !important;
}

footer a {
  color: white !important;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #6692a9 !important;
}

footer h5,
footer h6 {
  color: white !important;
  font-weight: 900;
}

footer p,
footer .text-muted {
  color: white !important;
  font-weight: 400;
}

/* Footer list items - make text thinner */
footer ul li {
  font-weight: 400;
}

footer ul li a {
  color: white !important;
  text-decoration: none;
  font-weight: 400;
}

footer .form-control {
  background-color: white;
  color: #0f202e;
  border: 1px solid #6692a9;
}

footer .form-control::placeholder {
  color: #666;
}

footer .btn-primary {
  background-color: #6692a9;
  border-color: #6692a9;
  color: white;
}

footer .btn-primary:hover {
  background-color: #00354c;
  border-color: #00354c;
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ece6dd;
}

::-webkit-scrollbar-thumb {
  background: #6692a9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00354c;
}

/* Dropdown Styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(15, 32, 46, 0.1);
  background-color: #ece6dd;
}

.dropdown-item:hover {
  background-color: #6692a9;
  color: #ece6dd;
}

/* Sticky Navigation */
.sticky-top {
  top: 0;
  z-index: 1020;
}

/* Product Image Overlay */
.position-relative {
  overflow: hidden;
}

/* Heart Button Animation */
.btn-outline-primary:hover .fas {
  color: #ece6dd;
}

/* Shopping Cart Badge */
.badge.bg-light {
  background-color: #ece6dd !important;
  color: #0f202e !important;
}

/* Newsletter Input */
.input-group .btn-primary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Social Media Icons */
footer .fab {
  font-size: 1.2rem;
  color: white !important;
}

footer .fab:hover {
  transform: scale(1.2);
  color: #6692a9 !important;
}

/* Footer List Items */
footer ul li a:hover {
  color: #6692a9 !important;
  text-decoration: underline;
}

/* Footer Copyright and Payment Methods */
footer .mb-0 {
  color: white !important;
}

footer img[alt*="Ödeme"] {
  filter: brightness(0) invert(1);
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ece6dd;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 5px 15px rgba(15, 32, 46, 0.1);
    margin-top: 1rem;
    border: 2px solid #6692a9;
  }
}

/* Product Grid Responsive */
@media (max-width: 576px) {
  .col-lg-3.col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Hero Section Mobile */
@media (max-width: 576px) {
  .hero-section {
    text-align: center;
  }

  .hero-section .btn {
    margin-bottom: 1rem;
  }
}

/* Card Shadows */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(15, 32, 46, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(15, 32, 46, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(15, 32, 46, 0.175) !important;
}

/* Button Groups */
.btn-group .btn {
  border-color: #6692a9;
}

.btn-group .btn:hover {
  background-color: #6692a9;
  color: #ece6dd;
}

/* Form Labels */
.form-label {
  color: #00354c;
  font-weight: 900;
}

/* Alert Styling */
.alert-primary {
  background-color: #6692a9;
  border-color: #6692a9;
  color: #ece6dd;
}

.alert-info {
  background-color: #ece6dd;
  border-color: #6692a9;
  color: #00354c;
}

/* Progress Bars */
.progress-bar {
  background-color: #6692a9;
}

/* Pagination */
.page-link {
  color: #6692a9;
  border-color: #6692a9;
}

.page-link:hover {
  background-color: #6692a9;
  border-color: #6692a9;
  color: #ece6dd;
}

.page-item.active .page-link {
  background-color: #00354c;
  border-color: #00354c;
}

/* Breadcrumb */
.breadcrumb-item.active {
  color: #00354c;
}

.breadcrumb-item a {
  color: #6692a9;
}

.breadcrumb-item a:hover {
  color: #00354c;
}
