/* ============================================================
   PDFQuick — style.css (Polished Version)
   ============================================================ */

/* ── 1. Variables ──────────────────────────────────────────── */
:root {
  --brand:        #3B6DFF;
  --brand-dark:   #2952CC;
  --brand-light:  #EEF2FF;
  --text:         #111827;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --success:      #10B981;
  --danger:       #EF4444;
  --radius:       12px;
  --shadow:       0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 32px rgba(59,109,255,0.12);
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ── 3. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark); border-color: var(--brand-dark);
  text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.btn-white {
  background: #fff; color: var(--brand); border-color: #fff;
}
.btn-white:hover { background: var(--brand-light); text-decoration: none; }
.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-full  { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.btn-lg    { padding: 13px 28px; font-size: 16px; }
.btn-sm    { padding: 6px 14px; font-size: 13px; }

/* ── 4. Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.user-email-display { font-size: 13px; color: var(--text-muted); margin-right: 4px; }

/* ── 5. Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 60%);
  padding: 80px 24px 60px;
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 600; padding: 5px 14px;
  border-radius: 100px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 52px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 48px; max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ── 6. Tool Cards ─────────────────────────────────────────── */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; text-align: left;
}
.tool-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none; color: inherit;
}
.tool-card:hover {
  border-color: var(--brand); box-shadow: var(--shadow-lg);
  transform: translateY(-2px); text-decoration: none;
}
.tool-card--primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff 60%, var(--brand-light));
}
.tool-card--coming { opacity: 0.65; cursor: default; }
.tool-card--coming:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tool-icon { font-size: 28px; flex-shrink: 0; }
.tool-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.tool-info p  { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.tool-arrow   { margin-left: auto; font-size: 18px; color: var(--brand); flex-shrink: 0; }
.coming-tag {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-muted); padding: 3px 9px; border-radius: 100px; flex-shrink: 0;
}

/* ── 7. Stats Strip ────────────────────────────────────────── */
.stats-strip {
  background: var(--brand); padding: 32px 24px;
}
.stats-strip-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 40px; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.stat-desc { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.25); }

/* ── 8. Section Commons ────────────────────────────────────── */
.section-inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 48px; }

/* ── 9. How It Works ───────────────────────────────────────── */
.how-section { padding: 80px 0; background: var(--bg); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.step-card {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative;
  transition: all 0.2s;
}
.step-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.step-num {
  font-size: 48px; font-weight: 700; color: var(--brand-light);
  line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em;
}
.step-icon { font-size: 28px; margin-bottom: 12px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── 10. Features ──────────────────────────────────────────── */
.features-section { padding: 80px 0; background: var(--bg-alt); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.feature-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── 11. FAQ ───────────────────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--bg); }
.faq-list { max-width: 680px; }
.faq-item {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--brand); }
.faq-q {
  width: 100%; padding: 18px 20px;
  background: none; border: none; text-align: left;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-arrow { font-size: 11px; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7;
  transition: all 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ── 12. CTA Banner ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, #1a3fa0 100%);
  padding: 72px 24px; text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-section h2 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-section p  { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 13. Footer ────────────────────────────────────────────── */
.footer-main {
  background: #111827; color: #9CA3AF; margin-top: auto;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: #6B7280; max-width: 260px; }
.footer-brand .logo { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a  { display: block; font-size: 14px; color: #6B7280; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.soon-badge {
  font-size: 10px; font-weight: 700; background: #1F2937;
  color: #6B7280; padding: 1px 6px; border-radius: 4px; margin-left: 4px;
}
.footer-bottom {
  border-top: 1px solid #1F2937; padding: 20px 24px;
  text-align: center; font-size: 13px; color: #4B5563;
}

/* ── 14. Auth Page ─────────────────────────────────────────── */
.auth-page {
  background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 100%);
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; flex-direction: column; padding: 24px;
}
.back-link { position: absolute; top: 20px; left: 24px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow);
}
.auth-logo { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 28px; justify-content: center; }
.auth-tabs { display: flex; background: var(--bg-alt); border-radius: 8px; padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 8px; border: none; background: transparent;
  border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); font-family: inherit; transition: all 0.15s;
}
.auth-tab.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  color: var(--text); outline: none; transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--brand); }
.form-group input::placeholder { color: #C0C4CC; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); }
.auth-message {
  margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; text-align: center;
}
.auth-message.success { background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }
.auth-message.error   { background: #FEF2F2; color: var(--danger);  border: 1px solid #FECACA; }

/* ── 15. Dashboard ─────────────────────────────────────────── */
.dashboard-main { flex: 1; padding: 40px 24px; background: var(--bg-alt); }
.dashboard-inner { max-width: 900px; margin: 0 auto; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dashboard-header h1 { font-size: 26px; font-weight: 700; }
.dashboard-sub { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.dashboard-section { margin-bottom: 32px; }
.dashboard-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.files-list { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.file-row:last-child { border-bottom: none; }
.file-row-icon { font-size: 22px; flex-shrink: 0; }
.file-row-name { font-weight: 600; flex: 1; }
.file-row-date { font-size: 12px; color: var(--text-muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 56px 24px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ── 16. Merge Tool ────────────────────────────────────────── */
.tool-main { flex: 1; padding: 60px 24px; background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 50%); }
.tool-inner { max-width: 680px; margin: 0 auto; }
.tool-header { text-align: center; margin-bottom: 40px; }
.tool-header-icon { font-size: 44px; margin-bottom: 12px; }
.tool-header h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.tool-header p  { font-size: 15px; color: var(--text-muted); }
.upload-zone {
  background: #fff; border: 2px dashed var(--border); border-radius: 16px;
  padding: 56px 32px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 28px;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--brand); background: var(--brand-light); }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-text { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.upload-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.file-list-section { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.file-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.file-list-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.file-count-badge { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 100px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--bg-alt); margin-bottom: 8px; font-size: 13px; }
.file-list li:last-child { margin-bottom: 0; }
.file-list-icon { font-size: 20px; }
.file-list-name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list-size { color: var(--text-muted); flex-shrink: 0; }
.file-list-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 2px 6px; border-radius: 4px; transition: color 0.15s; }
.file-list-remove:hover { color: var(--danger); }
.merge-actions { margin-top: 20px; text-align: center; }
.merge-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.result-section { margin-top: 28px; }
.result-card { background: #fff; border: 1.5px solid #A7F3D0; border-radius: var(--radius); padding: 44px 32px; text-align: center; box-shadow: 0 4px 20px rgba(16,185,129,0.1); }
.result-icon { font-size: 52px; margin-bottom: 12px; }
.result-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.result-card p  { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 17. Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-inner { gap: 24px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 20px; }
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .hero { padding: 48px 16px 40px; }
  .hero-title { font-size: 28px; }
  .tools-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .nav-links .btn-ghost:first-child { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 24px; }
}

/* ── 18. Compress Options ──────────────────────────────────── */
.compress-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.compress-options h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
}
.compress-levels { display: flex; flex-direction: column; gap: 10px; }
.compress-level {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.compress-level input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.compress-level.active { border-color: var(--brand); background: var(--brand-light); }
.compress-level:hover { border-color: var(--brand); }
.level-info { display: flex; flex-direction: column; gap: 2px; }
.level-name { font-size: 14px; font-weight: 600; }
.level-desc { font-size: 12px; color: var(--text-muted); }

/* ── 19. Protect Warning ───────────────────────────────────── */
.protect-warning {
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; color: #92400E; line-height: 1.5;
}

/* ── 20. Legal Pages (Privacy & Terms) ─────────────────────── */
.legal-main {
  flex: 1;
  padding: 60px 24px;
  background: var(--bg-alt);
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-icon { font-size: 48px; margin-bottom: 16px; }
.legal-header h1 {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.legal-header p { font-size: 14px; color: var(--text-muted); }

.legal-highlight {
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--brand-dark);
  margin-bottom: 36px;
  line-height: 1.6;
}

.legal-content {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.legal-content h2 {
  font-size: 18px; font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 12px;
}
.legal-content ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.legal-content ul li {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 6px;
}
.legal-content a { color: var(--brand); }
.legal-content a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-content { padding: 24px 20px; }
  .legal-header h1 { font-size: 28px; }
}
