/* Custom CSS for FileFinder Production */
:root {
  --primary: #0ea5e9;
  --secondary: #06b6d4;
  --dark: #0f172a;
  --light: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  margin: 0;
  padding: 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Spacing */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* Sizing */
.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-9 {
  width: 2.25rem;
}

.w-10 {
  width: 2.5rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-9 {
  height: 2.25rem;
}

.h-10 {
  height: 2.5rem;
}

.h-48 {
  height: 12rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Colors */
.bg-white {
  background-color: white;
}

.bg-primary {
  background-color: var(--primary);
}

.bg-sky-500 {
  background-color: var(--primary);
}

.bg-green-500 {
  background-color: #10b981;
}

.bg-dark {
  background-color: var(--dark);
}

.text-white {
  color: white;
}

.text-dark {
  color: var(--dark);
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-primary {
  color: var(--primary);
}

.text-red-500 {
  color: #ef4444;
}

.text-green-600 {
  color: #059669;
}

.text-sky-300 {
  color: #7dd3fc;
}

.text-orange-300 {
  color: #fdba74;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Borders */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.border {
  border-width: 1px;
}

.border-gray-700 {
  border-color: #374151;
}

.border-t {
  border-top-width: 1px;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Effects */
.hover\:bg-sky-600:hover {
  background-color: #0284c7;
}

.hover\:bg-green-600:hover {
  background-color: #059669;
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Positioning */
.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.right-4 {
  right: 1rem;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Focus */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

/* Placeholder */
.placeholder-gray-400::placeholder {
  color: #9ca3af;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:items-center {
    align-items: center;
  }
  
  .sm\:justify-center {
    justify-content: center;
  }
  
  .sm\:inline {
    display: inline;
  }
  
  .sm\:hidden {
    display: none;
  }
  
  .sm\:max-w-lg {
    max-width: 32rem;
  }
  
  .sm\:rounded-2xl {
    border-radius: 1rem;
  }
  
  .sm\:p-8 {
    padding: 2rem;
  }
  
  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .sm\:w-10 {
    width: 2.5rem;
  }
  
  .sm\:h-10 {
    height: 2.5rem;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  
  .md\:py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Modal styles */
.ios-modal {
  opacity: 0;
  backdrop-filter: blur(0px);
  transition: opacity 420ms ease, backdrop-filter 420ms ease;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ios-modal.open {
  opacity: 1;
  backdrop-filter: blur(8px);
}

.ios-sheet {
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 520ms cubic-bezier(.22,.61,.36,1), opacity 380ms ease;
  z-index: 10000;
}

.ios-modal.open .ios-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Custom classes */
.gradient-bg {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

.ignite-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ignite-btn {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
}

/* Switch Button Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.switch-label {
  font-size: 14px;
  color: white;
  font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  #searchInput {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  #searchBtn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #searchInput {
    padding: 10px 14px;
    font-size: 15px;
  }
  
  #searchBtn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Utility classes */
.hidden { 
  display: none !important; 
  visibility: hidden !important;
  opacity: 0 !important;
}
