/* Tailwind CSS Base Styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
  scroll-behavior: smooth;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  line-height: inherit;
  font-family: Inter, sans-serif;
}

/* Custom Mobilya Portal Styles */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Color Utilities */
.text-wood-800 {
  color: #725a3c;
}
.text-wood-700 {
  color: #8b6f48;
}
.text-wood-600 {
  color: #a08458;
}
.text-wood-500 {
  color: #b59a73;
}
.text-wood-400 {
  color: #c7b394;
}
.text-wood-300 {
  color: #d9ccb5;
}
.text-modern-800 {
  color: #3f3f4e;
}
.text-modern-700 {
  color: #4a4a5c;
}
.text-modern-600 {
  color: #5c5c70;
}
.text-modern-500 {
  color: #737388;
}
.text-modern-400 {
  color: #9393a3;
}
.text-modern-300 {
  color: #b9b9c3;
}
.text-luxury-800 {
  color: #63573e;
}
.text-luxury-700 {
  color: #786949;
}
.text-luxury-600 {
  color: #8f7f56;
}
.text-luxury-500 {
  color: #a39464;
}
.text-luxury-400 {
  color: #b5a983;
}
.text-luxury-300 {
  color: #ccc4aa;
}
.text-green-800 {
  color: #166534;
}
.text-green-700 {
  color: #15803d;
}
.text-green-600 {
  color: #16a34a;
}
.text-green-500 {
  color: #22c55e;
}
.text-green-400 {
  color: #4ade80;
}
.text-green-300 {
  color: #86efac;
}
.text-amber-800 {
  color: #92400e;
}
.text-amber-700 {
  color: #b45309;
}
.text-amber-600 {
  color: #d97706;
}
.text-amber-500 {
  color: #f59e0b;
}
.text-amber-400 {
  color: #fbbf24;
}
.text-orange-800 {
  color: #9a3412;
}
.text-orange-700 {
  color: #c2410c;
}
.text-orange-600 {
  color: #ea580c;
}
.text-orange-500 {
  color: #f97316;
}
.text-orange-400 {
  color: #fb923c;
}
.text-gray-800 {
  color: #1f2937;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-500 {
  color: #6b7280;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-300 {
  color: #d1d5db;
}
.text-gray-100 {
  color: #f3f4f6;
}
.text-red-600 {
  color: #dc2626;
}
.text-red-500 {
  color: #ef4444;
}
.text-white {
  color: #ffffff;
}

.bg-wood-800 {
  background-color: #725a3c;
}
.bg-wood-700 {
  background-color: #8b6f48;
}
.bg-wood-600 {
  background-color: #a08458;
}
.bg-wood-500 {
  background-color: #b59a73;
}
.bg-wood-400 {
  background-color: #c7b394;
}
.bg-wood-50 {
  background-color: #faf9f6;
}
.bg-wood-100 {
  background-color: #f5f2ec;
}
.bg-modern-800 {
  background-color: #3f3f4e;
}
.bg-modern-700 {
  background-color: #4a4a5c;
}
.bg-modern-600 {
  background-color: #5c5c70;
}
.bg-modern-500 {
  background-color: #737388;
}
.bg-modern-400 {
  background-color: #9393a3;
}
.bg-modern-300 {
  background-color: #b9b9c3;
}
.bg-modern-200 {
  background-color: #d9d9de;
}
.bg-modern-50 {
  background-color: #f7f7f8;
}
.bg-modern-100 {
  background-color: #eeeef0;
}
.bg-luxury-800 {
  background-color: #63573e;
}
.bg-luxury-700 {
  background-color: #786949;
}
.bg-luxury-600 {
  background-color: #8f7f56;
}
.bg-luxury-500 {
  background-color: #a39464;
}
.bg-luxury-400 {
  background-color: #b5a983;
}
.bg-luxury-300 {
  background-color: #ccc4aa;
}
.bg-luxury-200 {
  background-color: #e0dcce;
}
.bg-luxury-50 {
  background-color: #f8f7f4;
}
.bg-luxury-100 {
  background-color: #f1efe8;
}
.bg-green-800 {
  background-color: #166534;
}
.bg-green-700 {
  background-color: #15803d;
}
.bg-green-600 {
  background-color: #16a34a;
}
.bg-green-500 {
  background-color: #22c55e;
}
.bg-green-400 {
  background-color: #4ade80;
}
.bg-green-300 {
  background-color: #86efac;
}
.bg-green-200 {
  background-color: #bbf7d0;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.bg-green-50 {
  background-color: #f0fdf4;
}
.bg-amber-800 {
  background-color: #92400e;
}
.bg-amber-700 {
  background-color: #b45309;
}
.bg-amber-600 {
  background-color: #d97706;
}
.bg-amber-500 {
  background-color: #f59e0b;
}
.bg-amber-400 {
  background-color: #fbbf24;
}
.bg-amber-200 {
  background-color: #fde68a;
}
.bg-amber-100 {
  background-color: #fef3c7;
}
.bg-amber-50 {
  background-color: #fffbeb;
}
.bg-orange-800 {
  background-color: #9a3412;
}
.bg-orange-700 {
  background-color: #c2410c;
}
.bg-orange-600 {
  background-color: #ea580c;
}
.bg-orange-500 {
  background-color: #f97316;
}
.bg-orange-400 {
  background-color: #fb923c;
}
.bg-orange-200 {
  background-color: #fed7aa;
}
.bg-orange-100 {
  background-color: #ffedd5;
}
.bg-orange-50 {
  background-color: #fff7ed;
}
.bg-orange-900 {
  background-color: #7c2d12;
}
.bg-gray-900 {
  background-color: #111827;
}
.bg-gray-800 {
  background-color: #1f2937;
}
.bg-gray-700 {
  background-color: #374151;
}
.bg-gray-600 {
  background-color: #4b5563;
}
.bg-gray-500 {
  background-color: #6b7280;
}
.bg-gray-400 {
  background-color: #9ca3af;
}
.bg-gray-300 {
  background-color: #d1d5db;
}
.bg-gray-200 {
  background-color: #e5e7eb;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-red-500 {
  background-color: #ef4444;
}
.bg-white {
  background-color: #ffffff;
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.p-12 {
  padding: 3rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.pt-20 {
  padding-top: 5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-8 {
  margin-top: 2rem;
}

/* Layout */
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.top-full {
  top: 100%;
}
.top-4 {
  top: 1rem;
}
.right-4 {
  right: 1rem;
}
.z-50 {
  z-index: 50;
}
.z-10 {
  z-index: 10;
}

/* Flexbox */
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.flex-col {
  flex-direction: column;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-8 > * + * {
  margin-left: 2rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Grid */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}

/* Typography */
.font-display {
  font-family: "Playfair Display", serif;
}
.font-body {
  font-family: "Inter", sans-serif;
}
.font-heading {
  font-family: "Montserrat", sans-serif;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-7xl {
  font-size: 4.5rem;
}
.text-center {
  text-align: center;
}
.leading-relaxed {
  line-height: 1.625;
}

/* Borders */
.border-2 {
  border-width: 2px;
}
.border-t {
  border-top-width: 1px;
}
.border-wood-600 {
  border-color: #a08458;
}
.border-wood-700 {
  border-color: #8b6f48;
}
.border-modern-500 {
  border-color: #737388;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.overflow-hidden {
  overflow: hidden;
}

/* Sizing */
.w-full {
  width: 100%;
}
.w-48 {
  width: 12rem;
}
.w-16 {
  width: 4rem;
}
.w-8 {
  width: 2rem;
}
.w-72 {
  width: 18rem;
}
.w-96 {
  width: 24rem;
}
.h-16 {
  height: 4rem;
}
.h-8 {
  height: 2rem;
}
.h-64 {
  height: 16rem;
}
.h-72 {
  height: 18rem;
}
.h-96 {
  height: 24rem;
}
.min-h-screen {
  min-height: 100vh;
}
.max-w-2xl {
  max-width: 42rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.object-cover {
  object-fit: cover;
}

/* Effects */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.opacity-0 {
  opacity: 0;
}
.opacity-10 {
  opacity: 0.1;
}
.opacity-100 {
  opacity: 1;
}
.invisible {
  visibility: hidden;
}

/* Transitions */
.transition-all {
  transition-property: all;
}
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
}
.transition-transform {
  transition-property: transform;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.duration-700 {
  transition-duration: 700ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transforms */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-0 {
  --tw-translate-y: 0px;
}
.translate-y-2 {
  --tw-translate-y: 0.5rem;
}
.translate-y-8 {
  --tw-translate-y: 2rem;
}
.-translate-y-2 {
  --tw-translate-y: -0.5rem;
}
.scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
}
.scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
}

/* Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-wood-50 {
  --tw-gradient-from: #faf9f6;
  --tw-gradient-to: rgb(250 249 246 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-wood-100 {
  --tw-gradient-to: #f5f2ec;
}
.from-modern-50 {
  --tw-gradient-from: #f7f7f8;
  --tw-gradient-to: rgb(247 247 248 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-modern-100 {
  --tw-gradient-to: #eeeef0;
}

/* Backdrop */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* Background opacity */
.bg-white\/95 {
  background-color: rgb(255 255 255 / 0.95);
}

/* Focus states */
.focus\:border-modern-400:focus {
  border-color: #9393a3;
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Hover states */
.hover\:bg-wood-700:hover {
  background-color: #8b6f48;
}
.hover\:bg-wood-600:hover {
  background-color: #a08458;
}
.hover\:bg-wood-50:hover {
  background-color: #faf9f6;
}
.hover\:bg-modern-700:hover {
  background-color: #4a4a5c;
}
.hover\:bg-modern-600:hover {
  background-color: #5c5c70;
}
.hover\:bg-modern-100:hover {
  background-color: #eeeef0;
}
.hover\:bg-modern-400:hover {
  background-color: #9393a3;
}
.hover\:text-wood-600:hover {
  color: #a08458;
}
.hover\:text-wood-600:hover {
  color: #a08458;
}
.hover\:text-white:hover {
  color: #ffffff;
}
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hover\:scale-105:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
}
.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
}
.hover\:-translate-y-2:hover {
  --tw-translate-y: -0.5rem;
}

/* Group hover states */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.group:hover .group-hover\:visible {
  visibility: visible;
}
.group:hover .group-hover\:translate-y-0 {
  --tw-translate-y: 0px;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}
.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}
.animate-slide-right {
  animation: slideRight 0.6s ease-out;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Custom Components */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s;
}

.nav-link {
  color: #8b6f48;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #a08458;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a08458;
  transition: all 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Responsive design */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:text-5xl {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:text-7xl {
    font-size: 4.5rem;
  }
}

@media (max-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Line through */
.line-through {
  text-decoration: line-through;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner-container {
  text-align: center;
}

.loading-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #a08458;
  font-weight: 600;
}

/* Theme transition */
.theme-transitioning {
  overflow: hidden;
}

/* Navbar states */
.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(160, 132, 88, 0.2);
  z-index: 51;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a08458, #b59a73);
  width: 0%;
  transition: width 0.1s ease;
}

/* Keyboard navigation */
.keyboard-navigation *:focus {
  outline: 2px solid #a08458;
  outline-offset: 2px;
}
