:root {
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --soft-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  --brand-glow: 0 0 20px rgba(245, 158, 11, 0.3);
  --nemeks-primary: #f59e0b;
  --nemeks-secondary: #ea580c;
  --nemeks-dark: #1f2937;
  --nemeks-light: #fffbeb;
  --accent-green: #10b981;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--nemeks-secondary);
  color: white;
}

.custom-scrollbar::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: #fff;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--nemeks-primary), var(--nemeks-secondary));
  border-radius: 10px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.animate-progress {
    animation: progress 5s linear forwards;
}

.recipe-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.recipe-card img {
    transition: transform 0.6s ease;
}

.recipe-card:hover img {
    transform: scale(1.1);
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out forwards;
}

.slide-out-left {
    animation: slideOutToLeft 0.5s ease-out forwards;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nemeks-primary) 0%, var(--nemeks-secondary) 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

select, input {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 0.75rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    border-color: var(--nemeks-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
   
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

.prose a {
    color: var(--nemeks-primary);
    text-decoration: underline;
    word-break: break-word;
}

.prose a:hover {
    color: var(--nemeks-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

.grid {
    width: 100%;
}

nav.flex {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose h4 {
        font-size: 1.125rem;
    }
}