/* =========================================
   PDFLooks - TEXT TO PDF
   COMPLETE STYLES
   HOME PAGE HEADER + TEXT TO PDF TOOL
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: #ffffff;
  color: #111827;
}


/* =========================================
   HOME PAGE STYLE HEADER
========================================= */

.header {
  width: 100%;
  height: 76px;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 1000;

  display: flex;
  align-items: center;

  padding: 0 42px;

  background: #ffffff;

  border-bottom: 1px solid #eeeeee;

  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.06);
}


/* =========================================
   LOGO
========================================= */

.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
}

.logo img {
  display: block;

  width: auto;
  height: 55px;
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.navigation {
  margin-left: 65px;
}

.navigation ul {
  display: flex;
  align-items: center;

  gap: 30px;

  list-style: none;
}

.navigation a {
  color: #111111;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  transition: color 0.2s ease;
}

.navigation a:hover {
  color: #e5322d;
}


/* =========================================
   HEADER RIGHT
========================================= */

.header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 24px;
}

.header-actions a {
  color: #222222;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  transition: color 0.2s ease;
}

.header-actions a:hover {
  color: #e5322d;
}


/* =========================================
   SIGN UP
========================================= */

.signup-btn {
  min-width: 96px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;

  border-radius: 8px;

  background: #e5322d;

  color: #ffffff !important;

  box-shadow:
    0 5px 14px rgba(229, 50, 45, 0.18);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.signup-btn:hover {
  background: #c62828;

  color: #ffffff !important;

  transform: translateY(-1px);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-btn {
  display: none;

  border: none;

  background: transparent;

  color: #111111;

  font-size: 25px;

  cursor: pointer;
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
  position: absolute;

  top: calc(100% + 8px);
  right: 18px;

  width: 230px;

  display: none;
  flex-direction: column;

  overflow: hidden;

  background: #ffffff;

  border-radius: 12px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.show-menu {
  display: flex;
}

.mobile-menu a {
  padding: 15px 20px;

  border-bottom: 1px solid #eeeeee;

  color: #111111;

  font-size: 15px;
  font-weight: 600;

  text-decoration: none;
}

.mobile-menu a:hover {
  background: #fff5f5;

  color: #e5322d;
}


/* =========================================
   MAIN TEXT TO PDF PAGE
========================================= */

.compress-page {
  width: 100%;

  min-height: calc(100vh - 76px);

  padding-top: 76px;

  display: flex;
  justify-content: center;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(237, 28, 36, 0.06) 0,
      rgba(237, 28, 36, 0.06) 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 92% 90%,
      rgba(237, 28, 36, 0.05) 0,
      rgba(237, 28, 36, 0.05) 2px,
      transparent 3px
    ),
    linear-gradient(
      180deg,
      #fff8f8 0%,
      #fffafa 55%,
      #ffffff 100%
    );

  background-size:
    18px 18px,
    18px 18px,
    100% 100%;
}


/* =========================================
   HERO
========================================= */

.hero {
  width: 100%;

  min-height: 650px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  padding-top: 70px;
}


/* =========================================
   HERO HEADING
========================================= */

.hero h1 {
  font-size: 52px;

  line-height: 1.1;

  font-weight: 800;

  letter-spacing: -1.5px;

  color: #111111;

  margin-bottom: 20px;
}


/* =========================================
   HERO DESCRIPTION
========================================= */

.hero > p {
  font-size: 20px;

  line-height: 1.6;

  color: #4b5563;

  font-weight: 400;
}


/* =========================================
   TEXT EDITOR SECTION
========================================= */

.text-editor-section {
  width: min(900px, calc(100% - 40px));

  margin: 45px auto 0;

  padding: 26px;

  background: #ffffff;

  border-radius: 16px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08);

  text-align: left;
}


/* =========================================
   EDITOR HEADER
========================================= */

.text-editor-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.text-editor-header h2 {
  font-size: 20px;

  font-weight: 700;

  color: #111111;

  margin-bottom: 5px;
}

.text-editor-header p {
  color: #6b7280;

  font-size: 14px;
}

.editor-character-count {
  flex-shrink: 0;

  color: #777777;

  font-size: 14px;
}


/* =========================================
   TEXT INPUT
========================================= */

.text-input {
  width: 100%;

  min-height: 300px;

  display: block;

  padding: 18px;

  border: 1px solid #e0e0e0;

  border-radius: 12px;

  outline: none;

  resize: vertical;

  background: #ffffff;

  color: #222222;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;

  line-height: 1.7;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: #9ca3af;
}

.text-input:focus {
  border-color: #ed1c24;

  box-shadow:
    0 0 0 3px rgba(237, 28, 36, 0.08);
}


/* =========================================
   PDF OPTIONS
========================================= */

.pdf-options {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 14px;

  margin-top: 22px;
}

.option-group {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.option-group label {
  font-size: 13px;

  font-weight: 700;

  color: #333333;
}

.option-group input,
.option-group select {
  width: 100%;

  height: 44px;

  padding: 0 12px;

  border: 1px solid #e1e5e9;

  border-radius: 8px;

  background: #ffffff;

  color: #333333;

  outline: none;

  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.option-group input:focus,
.option-group select:focus {
  border-color: #ed1c24;

  box-shadow:
    0 0 0 3px rgba(237, 28, 36, 0.07);
}


/* =========================================
   EXTRA OPTIONS
========================================= */

.pdf-extra-options {
  display: flex;

  align-items: center;

  gap: 25px;

  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid #eeeeee;
}

.checkbox-option {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #444444;

  font-size: 14px;

  cursor: pointer;
}

.checkbox-option input {
  width: 16px;
  height: 16px;

  accent-color: #ed1c24;

  cursor: pointer;
}


/* =========================================
   EDITOR ACTIONS
========================================= */

.text-editor-actions {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-top: 22px;
}


/* =========================================
   CLEAR BUTTON
========================================= */

.clear-text-btn {
  flex: 1;

  height: 56px;

  border: 1px solid #e5e7eb;

  border-radius: 10px;

  background: #ffffff;

  color: #ed1c24;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.clear-text-btn:hover {
  background: #fff5f5;

  border-color: #ed1c24;

  transform: translateY(-1px);
}


/* =========================================
   CREATE PDF BUTTON
========================================= */

.compress-btn {
  flex: 1.5;

  height: 56px;

  border: none;

  border-radius: 10px;

  background: #ed1c24;

  color: #ffffff;

  font-size: 17px;

  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 7px 18px rgba(237, 28, 36, 0.20);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.compress-btn:hover {
  background: #d81720;

  transform: translateY(-1px);

  box-shadow:
    0 10px 23px rgba(237, 28, 36, 0.25);
}

.compress-btn:active {
  transform: translateY(0);
}

.compress-icon {
  margin-right: 8px;

  font-size: 19px;
}


/* =========================================
   PROCESSING SCREEN
========================================= */

.compressing-screen {
  display: none;

  width: 100%;

  min-height: 520px;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  text-align: center;

  padding: 70px 20px;
}

.compressing-screen.active {
  display: flex;
}

.compressing-logo {
  font-size: 30px;

  font-weight: 800;

  color: #111111;

  margin-bottom: 55px;
}

.compressing-logo span {
  color: #ed1c24;
}

.compressing-screen h2 {
  font-size: 28px;

  font-weight: 700;

  margin-bottom: 12px;

  color: #111111;
}

.compressing-screen p {
  font-size: 17px;

  color: #6b7280;

  margin-bottom: 35px;
}


/* =========================================
   LOADING SPINNER
========================================= */

.loading-spinner {
  width: 64px;
  height: 64px;

  border-radius: 50%;

  border: 7px solid #eeeeee;

  border-top-color: #ed1c24;

  animation:
    pdfLooksSpin 0.9s linear infinite;
}

@keyframes pdfLooksSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* =========================================
   DOWNLOAD SCREEN
========================================= */

.download-screen {
  display: none;

  width: 100%;

  min-height: 520px;

  align-items: center;
  justify-content: flex-start;

  flex-direction: column;

  text-align: center;

  padding: 60px 20px 70px;
}

.download-screen.active {
  display: flex;
}


/* =========================================
   DOWNLOAD LOGO
========================================= */

.download-logo {
  font-size: 30px;

  font-weight: 800;

  color: #111111;

  margin-bottom: 28px;
}

.download-logo span {
  color: #ed1c24;
}


/* =========================================
   DOWNLOAD HEADING
========================================= */

.download-screen h2 {
  font-size: 30px;

  color: #111111;

  margin-bottom: 12px;
}


/* =========================================
   DOWNLOAD MESSAGE
========================================= */

.download-message {
  color: #6b7280;

  font-size: 17px;

  margin-bottom: 25px;
}


/* =========================================
   FILE CARD
========================================= */

.download-file-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 20px;
  box-sizing: border-box;
}

.download-file-card strong {
  display: block;

  font-size: 17px;

  margin-bottom: 6px;
}

.download-file-card span {
  color: #6b7280;

  font-size: 14px;
}

.download-file-card small {
  display: inline-block;

  margin-top: 7px;

  color: #ed1c24;

  font-weight: 600;
}


/* =========================================
   PDF PREVIEW
========================================= */

.pdf-preview-container {
  width: min(850px, calc(100% - 20px));

  height: 520px;

  margin: 5px auto 25px;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #e1e1e1;

  border-radius: 12px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.07);
}

.pdf-preview-container iframe {
  width: 100%;
  height: 100%;

  display: block;

  border: none;

  background: #ffffff;
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-btn {
  min-width: 360px;

  height: 58px;

  padding: 0 28px;

  border: none;

  border-radius: 10px;

  background: #ed1c24;

  color: #ffffff;

  font-size: 18px;

  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(237, 28, 36, 0.20);

  transition: 0.2s ease;
}

.download-btn:hover {
  background: #d81720;

  transform: translateY(-1px);
}


/* =========================================
   ANOTHER PDF BUTTON
========================================= */

.another-pdf-btn {
  min-width: 360px;

  height: 52px;

  margin-top: 14px;

  padding: 0 24px;

  border: none;

  border-radius: 10px;

  background: #2563eb;

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.20);
}

.another-pdf-btn:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}


/* =========================================
   SCREEN SWITCHING
========================================= */

.compress-page.is-compressing .hero {
  display: none !important;
}

.compress-page.is-downloaded .hero {
  display: none !important;
}

.compress-page.is-compressing
.compressing-screen {
  display: flex !important;
}

.compress-page.is-downloaded
.download-screen {
  display: flex !important;
}

.compress-page.is-downloaded
.compressing-screen {
  display: none !important;
}


/* =========================================
   FOOTER
========================================= */

.footer {
  width: 100%;

  min-height: 78px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #ffffff;

  border-top: 1px solid #eeeeee;
}

.footer p {
  font-size: 16px;

  color: #555555;
}

.footer span {
  color: #ed1c24;

  font-weight: 600;
}

.footer b {
  margin: 0 8px;

  color: #999999;
}


/* =========================================
   MOBILE MENU
========================================= */

@media (max-width: 650px) {

  .header {
    height: 68px;

    padding: 0 16px;
  }

  .logo img {
    height: 45px;
  }

  .navigation {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions > a:first-child {
    display: none;
  }

  .signup-btn {
    min-width: 78px;

    height: 38px;

    padding: 0 12px;

    font-size: 13px;
  }

  .menu-btn {
    display: block;

    font-size: 24px;
  }


  /* =========================
     MAIN
  ========================= */

  .compress-page {
    min-height: calc(100vh - 68px);

    padding-top: 68px;
  }


  /* =========================
     HERO
  ========================= */

  .hero {
    min-height: auto;

    padding:
      52px
      12px
      45px;
  }

  .hero h1 {
    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -0.8px;

    margin-bottom: 15px;
  }

  .hero > p {
    font-size: 16px;

    line-height: 1.55;
  }

  .hero > p br {
    display: none;
  }


  /* =========================
     TEXT EDITOR
  ========================= */

  .text-editor-section {
    width: calc(100% - 8px);

    margin-top: 30px;

    padding: 18px;

    border-radius: 13px;
  }

  .text-editor-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 8px;
  }

  .text-editor-header h2 {
    font-size: 18px;
  }

  .text-editor-header p {
    font-size: 13px;
  }

  .editor-character-count {
    align-self: flex-end;

    font-size: 12px;
  }

  .text-input {
    min-height: 260px;

    padding: 14px;

    font-size: 14px;
  }


  /* =========================
     PDF OPTIONS
  ========================= */

  .pdf-options {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 12px;

    margin-top: 18px;
  }

  .option-group label {
    font-size: 12px;
  }

  .option-group input,
  .option-group select {
    height: 42px;

    font-size: 13px;
  }


  /* =========================
     EXTRA OPTIONS
  ========================= */

  .pdf-extra-options {
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    margin-top: 17px;

    padding-top: 15px;
  }

  .checkbox-option {
    font-size: 13px;
  }


  /* =========================
     ACTIONS
  ========================= */

  .text-editor-actions {
    flex-direction: column;

    gap: 10px;

    margin-top: 18px;
  }

  .clear-text-btn,
  .compress-btn {
    width: 100%;

    flex: none;

    height: 52px;

    font-size: 15px;
  }


  /* =========================
     PROCESSING
  ========================= */

  .compressing-screen {
    min-height: 500px;

    padding:
      50px 20px;
  }

  .compressing-logo {
    font-size: 25px;

    margin-bottom: 30px;
  }

  .compressing-screen h2 {
    font-size: 24px;
  }

  .compressing-screen p {
    font-size: 14px;

    line-height: 1.5;

    max-width: 320px;
  }


  /* =========================
     DOWNLOAD
  ========================= */

  .download-screen {
    min-height: 500px;

    padding:
      45px 12px 50px;
  }

  .download-logo {
    font-size: 25px;

    margin-bottom: 25px;
  }

  .download-screen h2 {
    font-size: 24px;

    line-height: 1.25;
  }

  .download-message {
    font-size: 14px;

    line-height: 1.5;
  }


  /* =========================
     PDF PREVIEW
  ========================= */

  .pdf-preview-container {
    width: 100%;

    height: 400px;

    border-radius: 10px;

    margin-bottom: 20px;
  }


  /* =========================
     DOWNLOAD BUTTON
  ========================= */

  .download-btn {
    width: calc(100% - 20px);

    min-width: 0;

    height: 54px;

    font-size: 15px;
  }


  /* =========================
     ANOTHER BUTTON
  ========================= */

  .another-pdf-btn {
    width: calc(100% - 20px);

    min-width: 0;

    height: 52px;

    font-size: 15px;
  }


  /* =========================
     FOOTER
  ========================= */

  .footer {
    min-height: 60px;

    padding: 0 12px;
  }

  .footer p {
    font-size: 12px;

    text-align: center;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

  .header {
    padding: 0 12px;
  }

  .logo img {
    height: 42px;
  }

  .signup-btn {
    min-width: 70px;

    padding: 0 9px;

    font-size: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero > p {
    font-size: 15px;
  }

  .text-editor-section {
    width: calc(100% - 2px);

    padding: 14px;
  }

  .text-input {
    min-height: 240px;

    font-size: 13px;
  }

  .pdf-options {
    grid-template-columns: 1fr;
  }

  .pdf-preview-container {
    height: 350px;
  }

  .download-file-card {
    width: calc(100% - 20px);
  }

}


/* =========================================
   DESKTOP HEIGHT OPTIMIZATION
========================================= */

@media (min-width: 901px) and (max-height: 850px) {

  .hero {
    padding-top: 45px;

    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: 46px;

    margin-bottom: 15px;
  }

  .hero > p {
    font-size: 18px;
  }

  .text-editor-section {
    margin-top: 30px;
  }

  .text-input {
    min-height: 250px;
  }

  .pdf-preview-container {
    height: 450px;
  }

  .footer {
    min-height: 65px;
  }

}