/* ════════════════════════════════════════════════════════
   LIPICONVERTER – Premium Converter Page Redesign CSS
   ════════════════════════════════════════════════════════ */

/* ─── Converter Section Wrapper ─── */
.converter-section {
  padding: 36px 0 60px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  /* Removed min-height to prevent blank white space */
}

/* ─── Ad Space ─── */
.ad-space {
  margin-bottom: 28px !important;
  border-radius: 16px !important;
  overflow: hidden;
}

/* ─── Main Converter Card ─── */
.converter-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04) !important;
  border: 1.5px solid #e2e8f0 !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s ease !important;
}

.converter-card:hover {
  box-shadow: 0 16px 60px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* ─── Converter Header ─── */
.converter-header {
  background: linear-gradient(135deg, #FF6B35 0%, #f97316 50%, #ea580c 100%) !important;
  padding: 20px 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.converter-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.converter-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.converter-title {
  color: white !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* ─── Mode Tabs ─── */
.converter-mode-tabs {
  background: rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  padding: 5px !important;
  display: flex;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.mode-tab {
  background: transparent !important;
  color: rgba(255,255,255,0.75) !important;
  border: none !important;
  border-radius: 9px !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  white-space: nowrap;
}

.mode-tab.active {
  background: white !important;
  color: #FF6B35 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.mode-tab:not(.active):hover {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
}

/* ─── Options Bar ─── */
.converter-options {
  padding: 14px 28px !important;
  background: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.option-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: white !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.icon-btn:hover {
  border-color: #FF6B35 !important;
  color: #FF6B35 !important;
  background: rgba(255,107,53,0.06) !important;
}

/* ─── Converter Body (two panels) ─── */
.converter-body {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 0 !important;
  min-height: 400px;
}

/* ─── Text Panels ─── */
.text-panel {
  display: flex;
  flex-direction: column;
  border: none !important;
  border-radius: 0 !important;
}

.text-panel:first-child {
  border-right: 1.5px solid #e2e8f0 !important;
}

.panel-header {
  padding: 14px 20px !important;
  background: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(249,115,22,0.08)) !important;
  color: #ea580c !important;
  border: 1px solid rgba(255,107,53,0.2) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  letter-spacing: 0.03em;
}

.panel-actions {
  display: flex;
  gap: 6px;
}

.panel-btn {
  height: 32px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: white !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0 12px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease !important;
  white-space: nowrap;
}

.panel-btn:hover {
  border-color: #FF6B35 !important;
  color: #FF6B35 !important;
  background: rgba(255,107,53,0.05) !important;
}

/* ─── Textareas ─── */
.converter-textarea {
  flex: 1 !important;
  padding: 20px !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  min-height: 320px !important;
  background: white !important;
  color: #0f172a !important;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif !important;
  transition: background 0.2s !important;
}

.converter-textarea::placeholder { color: #cbd5e1 !important; }
.converter-textarea:focus { background: #fffaf8 !important; }

/* ─── Center Swap Button ─── */
.swap-col {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  background: #f8fafc !important;
  border-left: 1.5px solid #e2e8f0 !important;
  border-right: 1.5px solid #e2e8f0 !important;
}

.btn-swap {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #FF6B35, #f97316) !important;
  border: none !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  font-size: 1.2rem;
}

.btn-swap:hover {
  transform: rotate(180deg) scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(255,107,53,0.45) !important;
}

/* ─── Word Count Bar ─── */
.word-count-bar {
  padding: 10px 20px !important;
  background: #f8fafc !important;
  border-top: 1.5px solid #e2e8f0 !important;
  display: flex;
  gap: 16px;
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* ─── Convert Button (if present) ─── */
.btn-convert {
  background: linear-gradient(135deg, #FF6B35, #f97316) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-convert:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(255,107,53,0.4) !important;
}

/* ─── Detect Badge ─── */
.detect-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(34,197,94,0.1) !important;
  border: 1px solid rgba(34,197,94,0.25) !important;
  color: #16a34a !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
}

.detect-dot {
  width: 7px !important;
  height: 7px !important;
  background: #22c55e !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px rgba(34,197,94,0.5) !important;
  animation: pulse 2s infinite !important;
}

/* ─── Keyboard Shortcuts Info ─── */
.shortcuts-bar {
  padding: 12px 28px !important;
  background: #f8fafc !important;
  border-top: 1.5px solid #e2e8f0 !important;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
}

.shortcut-key {
  background: white !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 1px 7px !important;
  font-size: 0.7rem !important;
  font-family: monospace;
  color: #475569 !important;
}

/* ─── Ad Space bottom ─── */
.ad-space-bottom {
  margin-top: 28px !important;
  border-radius: 16px !important;
  overflow: hidden;
}

/* ─── Dark Theme overrides ─── */
.dark-theme .converter-section { background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important; }
.dark-theme .converter-card { background: #1e293b !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .panel-header { background: #0f172a !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .converter-options { background: #0f172a !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .converter-textarea { background: #1e293b !important; color: #e2e8f0 !important; }
.dark-theme .converter-textarea:focus { background: #1a2744 !important; }
.dark-theme .text-panel:first-child { border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .swap-col { background: #0f172a !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .panel-btn { background: #1e293b !important; border-color: rgba(255,255,255,0.1) !important; color: #94a3b8 !important; }
.dark-theme .icon-btn { background: #1e293b !important; border-color: rgba(255,255,255,0.1) !important; color: #94a3b8 !important; }
.dark-theme .word-count-bar { background: #0f172a !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .shortcuts-bar { background: #0f172a !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .shortcut-key { background: #0f172a !important; border-color: rgba(255,255,255,0.1) !important; color: #64748b !important; }
.dark-theme .footer {
  background: #0f172a !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
.dark-theme .footer .footer-copyright {
  color: #64748b !important;
}

/* ─── Sidebar Premium ─── */
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}

.sidebar-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.3) !important;
  padding: 16px 16px 6px !important;
}

.sidebar-link {
  border-radius: 10px !important;
  margin: 2px 8px !important;
  padding: 10px 12px !important;
  transition: background 0.2s ease !important;
  color: rgba(255,255,255,0.65) !important;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,107,53,0.12) !important;
  color: #fb923c !important;
}

.sidebar-link.active {
  border-left: 3px solid #FF6B35 !important;
}

/* Fix: link text (title) must be visible on dark sidebar */
.sidebar-link .link-title {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.sidebar-link:hover .link-title,
.sidebar-link.active .link-title {
  color: #fb923c !important;
}

/* Fix: link icon on dark sidebar */
.link-icon {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.5) !important;
  border-radius: 8px !important;
}

.sidebar-link.active .link-icon,
.sidebar-link:hover .link-icon {
  background: rgba(255,107,53,0.2) !important;
  color: #fb923c !important;
}


/* ─── Fix: converter page footer (small, not full homepage footer) ─── */
/* Override fullpage.css dark footer styles for converter pages */
.footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 16px 0 !important;
}

.footer .footer-bottom {
  border-top: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer .footer-copyright {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
}

.footer .footer-copyright span {
  color: #FF6B35 !important;
  font-weight: 600;
}
@media (max-width: 768px) {
  .converter-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
  }
  .swap-col {
    border: none !important;
    border-top: 1.5px solid #e2e8f0 !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding: 12px !important;
  }
  .dark-theme .swap-col {
    border-color: rgba(255,255,255,0.08) !important;
  }
  .text-panel:first-child { border-right: none !important; }
}
