/* E-Katalog - PDF Görüntüleme */

.pdf-section {
  padding: 60px 0;
}

.pdf-viewer-wrapper {
  position: relative;
  width: 100%;
  height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pdf-object,
.pdf-iframe,
.pdf-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.catalog-status {
  text-align: center;
  padding: 80px 0;
}

.catalog-spinner {
  width: 3rem;
  height: 3rem;
}

.catalog-status-icon {
  font-size: 3rem;
  opacity: 0.55;
}

.catalog-status-text {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 1 !important;
}

.catalog-select {
  width: auto;
  min-width: 200px;
  border-radius: 8px;
}

.catalog-missing {
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
}

.catalog-missing-icon {
  font-size: 3.5rem;
  color: #ff6b6b;
}

.catalog-missing-text {
  margin-top: 16px;
  font-size: 1.1rem;
}

.catalog-missing-hint {
  font-size: 0.9rem;
}

.lang-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.lang-tab {
  padding: 10px 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-tab:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.lang-tab.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.lang-tab .flag {
  font-size: 1.2rem;
}

.lang-empty {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.lang-empty i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.lang-empty p {
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

body:not(.light-mode) .catalog-spinner {
  color: #fff;
}

body:not(.light-mode) .catalog-status-icon {
  color: #fff;
}

body:not(.light-mode) .catalog-status-text,
body:not(.light-mode) .catalog-missing-text {
  color: rgba(255, 255, 255, 0.78) !important;
}

body:not(.light-mode) .catalog-missing-hint {
  color: rgba(255, 255, 255, 0.5) !important;
}

body:not(.light-mode) .catalog-missing {
  background: rgba(255, 255, 255, 0.05);
}

body:not(.light-mode) .catalog-select {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .catalog-spinner {
  color: #111;
}

body.light-mode .catalog-status-icon {
  color: #333;
  opacity: 0.7;
}

body.light-mode .catalog-status-text,
body.light-mode .catalog-missing-text,
body.light-mode .lang-empty p,
body.light-mode #catalog-empty p,
body.light-mode #catalog-loading p,
body.light-mode #lang-empty p,
body.light-mode #pdf-missing p,
body.light-mode #lang-empty-text {
  color: #111 !important;
  opacity: 1 !important;
}

body.light-mode #catalog-empty i,
body.light-mode #lang-empty i {
  color: #444 !important;
  opacity: 0.8;
}

body.light-mode .catalog-missing-hint {
  color: #555 !important;
}

body.light-mode .catalog-missing,
body.light-mode .lang-empty {
  background: #f4f4f4;
  border: 1px dashed #d0d0d0;
}

body.light-mode .lang-empty i {
  color: #555;
}

body.light-mode .lang-tab {
  border-color: #ccc;
  color: #333;
}

body.light-mode .lang-tab:hover {
  border-color: #111;
  color: #111;
}

body.light-mode .lang-tab.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

body.light-mode .catalog-select {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

body.light-mode .pdf-section .btn-outline-light {
  color: #111;
  border-color: #111;
}

body.light-mode .pdf-section .btn-outline-light:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

@media (max-width: 992px) {
  .pdf-viewer-wrapper {
    height: 75vh;
  }
}

@media (max-width: 576px) {
  .pdf-viewer-wrapper {
    height: 65vh;
    border-radius: 8px;
  }
}
