/* ==============================
   Base / Global Styles
   ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #2a2a2a;
  font-family: "Poppins", Arial, sans-serif;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Visually hidden content for SEO and accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==============================
   Index Page Styles
   ============================== */
body.index-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content wrapper */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding-top: 60px;
  gap: 20px;
}

/* Logo animation */
.logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLogo 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typed.js wrapper */
.typed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
}

.typed-text,
.typed-cursor {
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
}

.typed-cursor {
  display: inline-block;
  vertical-align: middle;
  animation: blink 0.8s infinite;
  line-height: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 480px) {
  .typed-text {
    font-size: 24px;
    padding: 0 16px;
  }
}

/* Chrome extension button */
.chrome-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #4285f4;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.chrome-button:hover {
  background-color: #3367d6;
}

.chrome-button .chrome-icon {
  display: flex;
  align-items: center;
}

.chrome-button .chrome-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Screenshots section */
.screenshots-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 50px 20px;
  max-width: 1000px;
}

.screenshot-box {
  flex: 1 1 300px;
  max-width: 450px;
  text-align: center;
  opacity: 0;
  transform: scale(0.97);
  animation: fadeInScreenshot 0.7s ease-out forwards;
}

.screenshot-box:nth-child(1) { animation-delay: 0.4s; }
.screenshot-box:nth-child(2) { animation-delay: 0.5s; }

@keyframes fadeInScreenshot {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.screenshot-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Caption for screenshots */
.caption {
  color: #cccccc;
  font-size: 14px;
  margin-top: 10px;
}

/* ==============================
   Footer
   ============================== */
.footer {
  margin-top: auto;
  font-size: 14px;
  width: 100%;
  text-align: center;
  color: #bbbbbb;
  padding: 20px 0;
}

.footer a {
  color: #bbbbbb;
  font-weight: 500;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-divider {
  color: #777;
  margin: 0 4px;
}

.footer-copyright {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

/* ==============================
   Privacy Page Styles
   ============================== */
body.privacy-body {
  background-color: #2a2a2a;
  color: #ffffff;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 30px;
  box-sizing: border-box;
}

.privacy-container h1,
.privacy-container h2,
.privacy-container p,
.privacy-container li,
.privacy-container strong,
.privacy-container a {
  color: #ffffff;
}

.privacy-container h1 {
  margin-top: 0;
  font-size: 2rem;
}

.privacy-container h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.privacy-container p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-container ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-container ul li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Privacy footer overrides */
body.privacy-body .footer {
  margin-top: 50px;
  text-align: center;
}

body.privacy-body .footer a {
  color: #ffffff;
}

.top-nav {
  margin-bottom: 30px;
}

.top-nav a {
  color: #ffffff;
  font-weight: 500;
}

.top-nav a:hover {
  text-decoration: underline;
}
