/**
 * Luminie - Global CSS
 * Sitenin genelini etkileyen temel stiller
 */

/* Import CSS Variables */
@import url("variables.css");

/* Temel Reset ve Base Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container ve Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-blue);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Genel Düğme Stilleri */
.btn-hero {
  background: #833AB4;
  color: white;
  background: linear-gradient(257deg,rgba(131, 58, 180, 0.66) 10%, rgba(24, 106, 214, 1) 100%);  justify-content: center;
}
.btn-hero-outline{
  background: #833AB4;
  background: linear-gradient(257deg,rgba(131, 58, 180, 0.66) 10%, rgba(24, 106, 214, 1) 100%);  justify-content: center;
  border: 1px solid #833AB4;
  color: white;
}
.btn {
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;

}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
}

.btn-warning {
  background: var(--gradient-warning);
  color: white;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 1rem;
}
.p-4 {
  padding: 1.5rem;
}
.p-5 {
  padding: 3rem;
}

/* Responsive Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-1 {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}
.col-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .section-padding {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== FAVORITE BUTTON STYLES ===== */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #94a3b8; /* Default gray color for empty heart */
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #dc2626; /* Red color on hover */
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.favorited {
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626; /* Red color for favorited state */
}

.favorite-btn.favorited:hover {
  background: rgba(255, 255, 255, 1);
  color: #b91c1c; /* Darker red on hover */
  transform: scale(1.1);
}

.favorite-btn i {
  transition: all 0.3s ease;
}

.favorite-btn:hover i {
  transform: scale(1.2);
}

/* Loading state for favorite button */
.favorite-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.favorite-btn.loading i {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Content card positioning for favorite button */
.content-card {
  position: relative;
}

.content-card-image-container {
  position: relative;
}

/* Kategori Grid Sistemi */
.kcx-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Kategori Kart Link */
.kcx-category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.kcx-category-link:hover {
  transform: translateY(-5px);
}

/* Kategori Kartı */
.kcx-category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kcx-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kcx-category-color, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kcx-category-card:hover::before {
  opacity: 1;
}

.kcx-category-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--kcx-category-color, #8b5cf6);
}

/* Kategori İkon */
.kcx-category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--kcx-category-color, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.kcx-category-icon i {
  font-size: 32px;
  color: white;
}

.kcx-category-card:hover .kcx-category-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Kategori Başlık */
.kcx-category-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Kategori İçerik Sayısı */
.kcx-category-count {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Large Desktop Responsive (1200px+) */
@media (min-width: 1200px) {
  .kcx-categories-grid {
    gap: 35px;
  }

  .kcx-category-card {
    padding: 40px 30px;
    min-height: 240px;
  }

  .kcx-category-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 30px;
  }

  .kcx-category-icon i {
    font-size: 36px;
  }

  .kcx-category-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .kcx-category-count {
    font-size: 1.1rem;
  }
}

/* Tablet Responsive */
@media (max-width: 1199px) and (min-width: 769px) {
  .kcx-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .kcx-category-card {
    padding: 30px 20px;
    min-height: 200px;
  }

  .kcx-category-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .kcx-category-icon i {
    font-size: 28px;
  }

  .kcx-category-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .kcx-category-count {
    font-size: 0.95rem;
  }
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .kcx-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .kcx-category-card {
    padding: 25px 15px;
    min-height: auto;
  }

  .kcx-category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .kcx-category-icon i {
    font-size: 24px;
  }

  .kcx-category-title {
    font-size: 1.1rem;
  }

  .kcx-category-count {
    font-size: 0.9rem;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .kcx-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .kcx-category-card {
    padding: 20px 12px;
    
    
  }

  .kcx-category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .kcx-category-icon i {
    font-size: 20px;
  }

  .kcx-category-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .kcx-category-count {
    font-size: 0.85rem;
  }
}
