/* PDFBirleştirici modern arayüz stilleri */

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at 20% 20%, rgba(74, 58, 255, 0.4), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(32, 211, 238, 0.25), transparent 50%),
              #0b0b18;
  color: #f5f6ff;
}

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  font-size: 32px;
  filter: drop-shadow(0 8px 16px rgba(74, 58, 255, 0.4));
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-tagline {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 246, 255, 0.7);
  margin-top: -4px;
}

.top-actions {
  display: flex;
  gap: 20px;
}

.top-link {
  color: rgba(245, 246, 255, 0.7);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-link:hover,
.top-link:focus-visible {
  color: #ffffff;
}

.donate-link {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a3aff, #8f6bff);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(74, 58, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-link:hover,
.donate-link:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(74, 58, 255, 0.45);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-text h1 span {
  color: #c084fc;
}

.hero-text p {
  margin: 0 0 24px;
  color: rgba(245, 246, 255, 0.65);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3aff, #c084fc);
  box-shadow: 0 0 12px rgba(74, 58, 255, 0.6);
  display: inline-block;
}

.metrics {
  display: flex;
  gap: 32px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(74, 58, 255, 0.2), rgba(74, 58, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.metric-label {
  color: rgba(245, 246, 255, 0.65);
  font-size: 0.85rem;
}

.hero-card {
  position: relative;
  background: rgba(19, 19, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.35), transparent 70%);
  opacity: 0.7;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.pill {
  background: rgba(74, 58, 255, 0.12);
  color: #b6a8ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status {
  font-size: 0.85rem;
  color: rgba(245, 246, 255, 0.65);
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-drop {
  height: 160px;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 12px, transparent 12px, transparent 22px);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.hero-card-body p {
  color: rgba(245, 246, 255, 0.65);
  margin: 0;
}

.workspace {
  background: rgba(12, 14, 31, 0.9);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 22px 40px rgba(11, 12, 24, 0.55);
}

.workspace-header h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.workspace-header p {
  margin: 0;
  color: rgba(245, 246, 255, 0.65);
}

.tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  gap: 6px;
}

.tab-button {
  border: none;
  background: transparent;
  color: rgba(245, 246, 255, 0.65);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-button[aria-selected="true"] {
  background: linear-gradient(135deg, #4a3aff, #8f6bff);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(74, 58, 255, 0.35);
}

.tab-button:focus-visible {
  outline: 2px solid rgba(74, 58, 255, 0.5);
  outline-offset: 3px;
}

.tab-panels {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hidden {
  display: none !important;
}

.panel-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.panel-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-grid--align-top .panel-info {
  margin-top: 0;
}

@media (min-width: 960px) {
  .panel-grid--align-top .panel-info {
    margin-top: 48px;
  }
}

.dropzone {
  position: relative;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dragover-hover {
  border-color: rgba(74, 58, 255, 0.6);
  background: rgba(74, 58, 255, 0.12);
  transform: translateY(-2px);
}

.dragover-hover .drop-icon {
  background: linear-gradient(135deg, rgba(74, 58, 255, 0.35), rgba(74, 58, 255, 0.1));
  color: #ede9ff;
}

.drop-error {
  border-color: rgba(255, 91, 112, 0.85) !important;
  background: rgba(255, 91, 112, 0.15) !important;
  animation: dropErrorPulse 0.6s ease;
}

.drop-error .drop-icon {
  background: rgba(255, 91, 112, 0.18);
  color: #ffd6dd;
}

@keyframes dropErrorPulse {
  0% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

.dropzone:focus-visible {
  outline: 2px solid rgba(74, 58, 255, 0.6);
  outline-offset: 4px;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: rgba(74, 58, 255, 0.6);
  background: rgba(74, 58, 255, 0.08);
  transform: translateY(-2px);
}

.drop-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(74, 58, 255, 0.2), rgba(74, 58, 255, 0));
  font-size: 1.5rem;
  color: #d5ccff;
}

.dropzone p {
  margin: 0 0 8px;
}

.helper {
  color: rgba(245, 246, 255, 0.65);
  font-size: 0.85rem;
  margin: 0;
}

.file-status {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(245, 246, 255, 0.6);
}

.file-status.ready {
  color: rgba(164, 255, 210, 0.9);
}

.file-status.error {
  color: rgba(255, 144, 160, 0.95);
}

.file-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-list .empty-state {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 16px;
  color: rgba(245, 246, 255, 0.55);
  text-align: center;
  font-size: 0.9rem;
}

.file-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.file-item.dragging {
  opacity: 0.55;
  transform: scale(0.98);
  border-style: dashed;
}

.file-item.drag-over {
  border-color: rgba(74, 58, 255, 0.55);
  background: rgba(74, 58, 255, 0.16);
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-preview {
  width: 56px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-preview.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.18) 45%, transparent 65%);
  animation: shine 1.4s infinite ease;
}

.file-preview.error {
  border-color: rgba(255, 91, 112, 0.55);
  background: rgba(255, 91, 112, 0.12);
}

.file-preview-placeholder {
  font-size: 1.1rem;
  color: rgba(245, 246, 255, 0.55);
}

.file-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.file-meta-info {
  font-size: 0.75rem;
  color: rgba(245, 246, 255, 0.7);
}

.file-meta-info.loading {
  color: rgba(245, 246, 255, 0.55);
}

.file-meta-info.error {
  color: rgba(255, 144, 160, 0.95);
}

.file-meta-info.muted {
  color: rgba(245, 246, 255, 0.4);
}

.file-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d4ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(74, 58, 255, 0.2);
  transform: translateY(-1px);
}

.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.btn.primary {
  background: linear-gradient(135deg, #4a3aff, #8f6bff);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(74, 58, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 246, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.link {
  border: none;
  background: none;
  color: #b2a7ff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.panel-info {
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-info h3 {
  margin: 0;
}

.panel-info ol,
.panel-info ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(245, 246, 255, 0.65);
}

.panel-info li {
  margin-bottom: 8px;
}

.security {
  margin: 0;
  font-weight: 600;
  color: #b2a7ff;
}

.field-label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.field,
.field input {
  width: 100%;
}

.field {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f6ff;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-visible {
  outline: none;
  border-color: rgba(74, 58, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.25);
}

.file-input {
  display: grid;
  align-items: center;
  min-height: 52px;
}

.file-input input {
  color: rgba(245, 246, 255, 0.65);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.feature {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.feature h3 {
  margin: 0 0 12px;
}

.feature p {
  margin: 0;
  color: rgba(245, 246, 255, 0.65);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq h2 {
  margin: 0;
}

.faq details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 12px 0 0;
  color: rgba(245, 246, 255, 0.65);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: rgba(245, 246, 255, 0.7);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0 16px;
  text-align: center;
}

.footer-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(74, 58, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 32px rgba(74, 58, 255, 0.18);
  backdrop-filter: blur(8px);
}

.footer-lang-btn {
  background: rgba(20, 22, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(245, 246, 255, 0.75);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-lang-btn:hover {
  transform: translateY(-2px);
  background: rgba(74, 58, 255, 0.45);
  box-shadow: 0 12px 20px rgba(74, 58, 255, 0.25);
}

.footer-lang-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #4a3aff, #7d5bff);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 34px rgba(74, 58, 255, 0.35);
}

.footer-link {
  color: #c7c0ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 50;
}

.toast.show {
opacity: 1;
transform: translateY(0);
}

.toast.error {
background: rgba(255, 78, 98, 0.95);
border-color: rgba(255, 169, 181, 0.9);
box-shadow: 0 18px 30px rgba(191, 26, 52, 0.4);
}

.dragover-hover {
border-color: #4a3aff !important;
background: rgba(74, 58, 255, 0.1) !important;
transform: scale(1.02);
transition: all 0.3s ease;
}

.file-list-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}

.file-list-empty h2 {
margin: 0;
}

.file-list-empty p {
margin: 12px 0 0;
color: rgba(245, 246, 255, 0.65);
}

.btn:disabled {
opacity: 0.5;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .page {
    gap: 36px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .metrics {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .toast {
    left: 18px;
    right: 18px;
  }

  .footer-lang-switch {
    gap: 8px;
    padding: 6px 10px;
  }

  .footer-lang-btn {
    width: 36px;
    height: 36px;
  }
}