@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Master Color Variables - Change these to update the entire theme */
    --color-primary: 14 165 233;
    /* rgb(14, 165, 233) - blue-500 */
    --color-secondary: 34 197 94;
    /* rgb(34, 197, 94) - green-500 */
    --color-accent: 249 115 22;
    /* rgb(249, 115, 22) - orange-500 */
    --color-neutral: 100 116 139;
    /* rgb(100, 116, 139) - slate-500 */

    /* Background colors */
    --bg-primary: 248 250 252;
    /* rgb(248, 250, 252) - slate-50 */
    --bg-secondary: 255 255 255;
    /* rgb(255, 255, 255) - white */

    /* Text colors */
    --text-primary: 15 23 42;
    /* rgb(15, 23, 42) - slate-900 */
    --text-secondary: 100 116 139;
    /* rgb(100, 116, 139) - slate-500 */
  }

  * {
    border-color: rgb(203 213 225);
    /* border-slate-300 */
  }

  body {
    background-color: rgb(248 250 252);
    color: rgb(15 23 42);
    font-family: 'Inter', system-ui, sans-serif;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
}

@layer components {
  .btn-primary {
    background-color: rgb(14 165 233);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
  }

  .btn-primary:hover {
    background-color: rgb(2 132 199);
  }

  .btn-secondary {
    background-color: rgb(34 197 94);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
  }

  .btn-secondary:hover {
    background-color: rgb(22 163 74);
  }

  .card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: box-shadow 0.3s;
  }

  .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .category-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
  }

  .category-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
  }

  .category-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem auto;
    color: rgb(14 165 233);
  }

  .section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgb(31 41 55);
    margin-bottom: 2rem;
    text-align: center;
  }

  .nav-link {
    color: rgb(107 114 128);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: color 0.2s;
  }

  .nav-link:hover {
    color: rgb(14 165 233);
  }

  .nav-link.active {
    color: rgb(14 165 233);
    background-color: rgb(240 249 255);
  }

  /*  */
  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
    }
  }

  .floating {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-20px);
    }

    100% {
      transform: translateY(0px);
    }
  }

  /*  */
  .service-card {
    transition: all 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }

  .search-box:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.3);
  }
}

/*  */

.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-btn {
  transition: all 0.2s ease;
}

.category-btn:hover {
  transform: scale(1.05);
}

.category-btn.active {
  background-color: rgb(var(--color-primary));
  color: white;
}

/*  */

.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.order-summary {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}