.krnl-archive-search-trigger {
  background: #e65d1e;
  color: white;
  border: none;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.krnl-archive-search-trigger:hover {
  background: #ffaa5aff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.krnl-archive-search-container {
  justify-self: end;
}

.krnl-archive-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 20px;
}

.krnl-archive-search-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
}

.krnl-archive-search-box {
  position: relative;
  display: flex;
  gap: 10px;
}

.krnl-archive-search-input {
  flex: 1;
  padding: 15px 20px;
  font-size: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
  outline: none;
}

.krnl-archive-search-input:focus {
  border-color: #e65d1e;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.krnl-archive-search-button {
  padding: 15px 30px;
  background: #e65d1e;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.krnl-archive-search-button:hover {
  background: #ffaa5aff;
  transform: translateY(-2px);
}

.krnl-archive-search-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.krnl-archive-search-close:hover {
  background: #f5f5f5;
  color: #333;
}

.krnl-archive-search-results {
  max-height: calc(70vh - 150px);
  overflow-y: auto;
}

.krnl-archive-accordion {
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  padding: 18px 25px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
  border-radius: 8px;
  margin-top: 10px;
  position: relative;
  font-weight: 500;
}

.krnl-archive-accordion:after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.krnl-archive-accordion.active:after {
  transform: rotate(45deg);
}

.krnl-archive-panel {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
  margin: 0 10px;
  border-radius: 0 0 8px 8px;
}

.krnl-archive-panel-content {
  padding: 15px 25px;
  color: #666;
}

.krnl-archive-result-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.krnl-archive-result-item:hover {
  background-color: #f5f5f5;
}

.krnl-archive-result-item:last-child {
  border-bottom: none;
}

.krnl-archive-page-number {
  color: #e65d1e;
  font-weight: 500;
  margin-right: 10px;
}

.krnl-archive-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Scrollbar stilleri */
.krnl-archive-search-content::-webkit-scrollbar,
.krnl-archive-search-results::-webkit-scrollbar {
  width: 8px;
}

.krnl-archive-search-content::-webkit-scrollbar-track,
.krnl-archive-search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.krnl-archive-search-content::-webkit-scrollbar-thumb,
.krnl-archive-search-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .krnl-archive-search-content {
    margin: 10px auto;
    padding: 20px;
    max-height: 90vh;
  }

  .krnl-archive-search-container {
    justify-self: center;
  }

  .krnl-archive-search-box{
    display: grid;
    margin-top: 30px;
  }

  .krnl-archive-search-results {
    max-height: calc(80vh - 150px);
  }

  .krnl-archive-search-overlay {
    padding: 10px;
  }

  .krnl-archive-search-input {
    font-size: 16px;
    padding: 12px 15px;
  }
}

/* Daha fazla yükle butonu stili */
.krnl-load-more-btn {
  background-color: #e65d1e; /* Ana tema rengini kulland���m */
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: fit-content;
  min-width: 200px;
  text-align: center;
}

.krnl-load-more-btn:hover {
  background-color: #e0e0e0;
}

.krnl-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Arama durumu stili */
.krnl-search-status {
  padding: 2px 6px;
  background-color: #f9f9f9;
  border-radius: 3px;
  margin-left: 5px;
  font-size: 0.85em;
}

/* Arama durum g���stergesi */
.krnl-search-status-container {
  text-align: center;
  background-color: #f8f8f8;
  padding: 12px 15px;
  border-radius: 6px;
  color: #666;
  margin: 15px 0 20px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.krnl-search-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.krnl-search-progress {
  font-weight: 500;
}

.krnl-search-status-container strong {
  color: #e65d1e;
  font-weight: 600;
}

.krnl-result-count {
  font-size: 13px;
  color: #777;
}

.krnl-search-complete {
  margin-top: 8px;
  font-weight: 500;
  color: #4CAF50;
  font-size: 13px;
  background-color: rgba(76, 175, 80, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Y���kleme g���stergesi */
.krnl-archive-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  gap: 10px;
}

.krnl-archive-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #e65d1e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sonu��� bulunamad��� mesaj��� */
.krnl-no-results {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}
