/* ====================================
   Katalog Landing Page - Pazarlama Stili
   ==================================== */

/* Hero Section */
.catalog-hero {
  background: linear-gradient(135deg, #293b83 0%, #1a2555 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.catalog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.catalog-hero-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.catalog-hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Hero Search */
.catalog-hero-search {
  max-width: 600px;
  margin: 0 auto;
}

.catalog-hero-search .search-form {
  display: flex;
  gap: 0;
}

.catalog-hero-search .navbar-search {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.catalog-hero-search .search-input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

.catalog-hero-search .search-button {
  background: var(--brand_primary);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.catalog-hero-search .search-button:hover {
  background: #1a2555;
}

.catalog-hero-search .magnify-icon {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

/* Stats Row */
.catalog-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.catalog-stat-item {
  text-align: center;
  color: #fff;
}

.catalog-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.catalog-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* Scroll to Catalog Link - Daha Belirgin */
.catalog-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 24px;
  background: #fff;
  border: none;
  border-radius: 24px;
  color: var(--brand_primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.catalog-scroll-link:hover {
  background: #f0f0f0;
  color: var(--brand_primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.catalog-scroll-link i {
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(4px);
  }
  60% {
    transform: translateY(2px);
  }
}

/* Main Content */
.catalog-main {
  background: #f8f9fa;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

/* Category Cards - Showcase Style */
.catalog-categories-section {
  margin-bottom: 20px;
  position: relative;
  z-index: 5;
}

.catalog-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  position: relative;
  padding-left: 12px;
}

.catalog-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--brand_primary);
  border-radius: 2px;
}

.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog-category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.catalog-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.catalog-category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand_primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.catalog-category-card:hover::after {
  transform: scaleX(1);
}

.catalog-category-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-category-icon.products {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  color: var(--brand_primary);
}

.catalog-category-icon.services {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.catalog-category-icon.trainings {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
  color: #c2185b;
}

.catalog-category-icon i {
  font-size: 18px;
}

.catalog-category-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
}

.catalog-category-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.catalog-category-stats {
  padding: 0 16px 12px;
  display: flex;
  gap: 16px;
}

.catalog-category-stat {
  display: flex;
  flex-direction: column;
}

.catalog-category-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand_primary);
  line-height: 1;
}

.catalog-category-stat-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.catalog-category-cta {
  padding: 10px 16px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eee;
}

.catalog-category-cta-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand_primary);
}

.catalog-category-cta-arrow {
  color: var(--brand_primary);
  transition: transform 0.2s;
}

.catalog-category-card:hover .catalog-category-cta-arrow {
  transform: translateX(4px);
}

/* Quick Links Section */
.catalog-quick-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.catalog-quick-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  border: 1px solid #eee;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.catalog-quick-card:hover {
  border-color: var(--brand_primary);
  box-shadow: 0 4px 16px rgba(41,59,131,0.1);
}

.catalog-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-quick-icon i {
  font-size: 16px;
  color: var(--brand_primary);
}

.catalog-quick-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
}

.catalog-quick-content p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Latest Items Section */
.catalog-latest-section {
  margin-bottom: 24px;
}

.catalog-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.catalog-view-all {
  font-size: 0.9rem;
  color: var(--brand_primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.catalog-view-all:hover {
  gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .catalog-category-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-quick-section {
    grid-template-columns: 1fr;
  }
  
  .catalog-hero-title {
    font-size: 2rem;
  }
  
  .catalog-stats-row {
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .catalog-hero {
    padding: 80px 0 40px;
  }
  
  .catalog-hero-title {
    font-size: 1.75rem;
  }
  
  .catalog-hero-subtitle {
    font-size: 1rem;
  }
  
  .catalog-stat-number {
    font-size: 2rem;
  }
  
  .catalog-main {
    padding: 40px 0;
  }
  
  .catalog-category-header {
    padding: 24px 20px 20px;
  }
  
  .catalog-category-stats {
    padding: 0 20px 20px;
  }
  
  .catalog-category-cta {
    padding: 14px 20px;
  }
}

/* All Categories Section */
.catalog-all-categories-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.catalog-all-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.catalog-all-category-column {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.catalog-all-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand_primary);
  margin-bottom: 16px;
}

.catalog-all-category-header i {
  font-size: 20px;
  color: var(--brand_primary);
}

.catalog-all-category-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.catalog-all-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
  column-gap: 24px;
}

.catalog-all-category-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.catalog-all-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.catalog-all-category-list a:hover {
  background: #e8eaf6;
  color: var(--brand_primary);
}

.catalog-category-count {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

/* Catalog card as link */
a.catalog_card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.catalog_card:hover {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 992px) {
  .catalog-all-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-all-category-list {
    columns: 2;
  }
}

@media (max-width: 576px) {
  .catalog-all-category-list {
    columns: 1;
  }
  
  .catalog-all-categories-section {
    margin-top: 40px;
    padding-top: 24px;
  }
}

/* ====================================
   Latest Items - Minimal Grid
   ==================================== */

.catalog-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.catalog-latest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.catalog-latest-item:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--brand_primary);
  box-shadow: 0 2px 8px rgba(41, 59, 131, 0.1);
}

.catalog-latest-item-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-latest-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-latest-item-info {
  flex: 1;
  min-width: 0;
}

.catalog-latest-item-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand_primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.catalog-latest-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.catalog-latest-item-company {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* All Catalog Section */
.catalog-all-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.catalog-all-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-all-header .catalog-section-title {
  margin-bottom: 0;
}

/* Page Size Selector */
.catalog-page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.catalog-page-size-selector label {
  margin: 0;
  font-weight: 500;
}

.catalog-page-size-selector select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.catalog-page-size-selector select:hover {
  border-color: var(--brand_primary);
}

.catalog-page-size-selector select:focus {
  outline: none;
  border-color: var(--brand_primary);
  box-shadow: 0 0 0 2px rgba(41, 59, 131, 0.1);
}

/* Responsive for Latest Items */
@media (max-width: 1200px) {
  .catalog-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-latest-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-latest-item {
    padding: 10px 12px;
  }
  
  .catalog-latest-item-logo {
    width: 40px;
    height: 40px;
  }
  
  .catalog-all-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====================================
   Catalog Search Autocomplete Enhancements
   ==================================== */

/* Katalog hero'daki arama kutusu için özel stiller */
.catalog-hero-search .catalog-search-wrapper {
  position: relative;
}

.catalog-hero-search .search-input {
  font-size: 1.1rem;
  padding: 16px 24px;
}

.catalog-hero-search .search-button {
  padding: 14px 28px;
}

/* Autocomplete dropdown için hero'da özel konumlama */
.catalog-hero-search .search-autocomplete-dropdown {
  min-width: 100%;
}

/* Katalog arama placeholder stili */
.catalog-hero-search .search-input::placeholder {
  color: #999;
  font-size: 1rem;
}

/* Focus durumunda glow efekti */
.catalog-hero-search .navbar-search:focus-within {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.3);
}

/* Mobil için arama alanı ayarları */
@media (max-width: 768px) {
  .catalog-hero-search {
    max-width: 100%;
    padding: 0 8px;
  }
  
  .catalog-hero-search .search-input {
    font-size: 1rem;
    padding: 12px 16px;
  }
  
  .catalog-hero-search .search-button {
    padding: 12px 20px;
  }
}