/* Custom styles for Safer Search */

/* Base styles */
:root {
  --primary-color: #051f45;
  --secondary-color: #2d4a70;
}

*{padding: 0; margin: 0;box-sizing: border-box;}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: inherit;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Icon styles */
:where([class^="ri-"])::before { 
  content: "\f3c2"; 
}

/* Animation styles */
.chrome-badge {
  transition: transform 0.2s ease;
}

.chrome-badge:hover {
  transform: scale(1.03);
}

.cta-button {
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.footer-link {
  transition: color 0.2s ease;
}

/* Tailwind utilities */
*, ::after, ::before {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

/* Position utilities */
.relative { position: relative; }
.left-\[50\%\] { left: 50%; }
.right-\[50\%\] { right: 50%; }

/* Margin utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0px; }
.mb-12 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-\[-50vw\] { margin-left: -50vw; }
.mr-\[-50vw\] { margin-right: -50vw; }
.mt-2 { margin-top: 0.5rem; }
.mt-24 { margin-top: 6rem; }

/* Display utilities */
.flex { display: flex; }
.hidden { display: none; }

/* Size utilities */
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.w-12 { width: 3rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.max-w-3xl { max-width: 50rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 3rem; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }

/* Spacing utilities */
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

/* Text utilities */
.whitespace-nowrap { white-space: nowrap; }
.\!rounded-button { border-radius: 8px !important; }
.rounded-lg { border-radius: 16px; }

/* Background utilities */
.bg-white { background-color: rgb(255, 255, 255); }
.bg-\[\#051f45\] { background-color: rgb(5, 31, 69); }

/* Object utilities */
.object-cover { object-fit: cover; }
.object-top { object-position: top; }

/* Padding utilities */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-16 { padding-top: 4rem; }
.pt-8 { padding-top: 2rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-\[1\.4\] { line-height: 1.4; }

/* Color utilities */
.text-gray-500 { color: rgb(107, 114, 128); }
.text-gray-700 { color: rgb(55, 65, 81); }
.text-gray-900 { color: rgb(17, 24, 39); }
.text-white { color: rgb(255, 255, 255); }

.text-gray-500 a {
  color: inherit
}

.text-gray-500 a:hover {
  text-decoration: none;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Hover utilities */
.hover\:text-secondary:hover { color: rgb(95 157 238); }

/* Fixed footer for taller screens (desktop only) */
@media (min-width: 769px) and (min-height: 985px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  
  main {
    padding-bottom: 250px; /* Add space for the fixed footer */
  }
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:w-1\/2 { width: 50%; }
  .md\:flex-row { flex-direction: row; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  /* Adjust spacing */
  .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .pt-16 { padding-top: 1.5rem; }
  .gap-12 { gap: 1rem; }
  .mb-12 { margin-bottom: 1.5rem; }
  .mb-8 { margin-bottom: 1.5rem; }
  .mb-6 { margin-bottom: 1rem; }
  .mt-24 { margin-top: 3rem; }
  
  /* Center align content in columns */
  .flex-col {
    align-items: center;
    text-align: center;
  }
  
  /* Add proper spacing between column elements */
  /* .flex-col > * {
      margin-bottom: 1.5rem;
  } */
  
  .flex-col > *:last-child {
    margin-bottom: 0;
  }
  
  /* Ensure proper spacing for text content */
  p {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  /* Adjust font sizes */
  .text-3xl { font-size: 1.5rem; line-height: 1.75rem; }
  .text-lg { font-size: 1rem; line-height: 1.5rem; }
  
  /* Improve footer layout */
  .footer-link {
    margin: 0.25rem 0;
  }
  
  /* Fix footer text wrapping */
  .space-y-2 {
    padding: 0 1rem;
  }
  
  .space-y-2 > p {
    max-width: 100%;
    word-wrap: break-word;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }
  
  /* Adjust button */
  .cta-button {
    width: 80%;
    text-align: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
  }
  
  /* Improve mobile image */
  .max-w-md {
    max-width: 90%;
    padding: 0;
    margin: 0 auto 1.5rem auto;
  }
  
  /* Fix footer spacing */
  .gap-8 {
    gap: 0.5rem;
  }
  
  /* Adjust footer links container */
  .footer-link {
    padding: 0.5rem;
  }
  
  /* Add proper spacing between main sections */
  main > div {
    margin-bottom: 2rem;
  }
  
  /* Remove whitespace-nowrap from footer links in mobile */
  .whitespace-nowrap {
    white-space: normal;
  }
  
  /* Hide pipe separators in footer links when in column layout */
  .gap-8 > span {
    display: none;
  }
  
  /* Make footer links display as a column */
  .gap-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Small mobile improvements */
@media (max-width: 480px) {
  /* Further reduce spacing */
  .px-6 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .pt-8 { padding-top: 1rem; }
  .pb-4 { padding-bottom: 0.75rem; }
  
  /* Adjust header */
  .h-16 { height: 3.5rem; }
  .h-12 { height: 2.5rem; }
  .w-12 { width: 2.5rem; }
  
  /* Adjust text */
  .text-3xl { font-size: 1.25rem; line-height: 1.5rem; }
  
  /* Fix footer layout */
  .gap-8 {
    gap: 0;
  }
  
  /* Add spacing between footer links */
  .footer-link {
    margin: 0.5rem 0;
    padding: 0.25rem 0;
  }
  
  /* Ensure proper column spacing */
  /* .flex-col > * {
      margin-bottom: 1.25rem;
  } */
  
  /* Make button full width on very small screens */
  .cta-button {
    width: 100%;
  }
  
  /* Further improve footer text wrapping */
  .space-y-2 {
    padding: 0 0.5rem;
  }
  
  .space-y-2 > p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
} 