/* Custom styles for Granátová Jahoda */

:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #737373;
  --border: #e5e5e5;
  --primary: #DC2626;
  --primary-dark: #991B1B;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Prose styling for markdown content */
.prose {
  max-width: 65ch;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #171717;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #171717;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #171717;
  line-height: 1.4;
}

.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #262626;
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #404040;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--primary-dark);
}

.prose strong {
  font-weight: 600;
  color: #171717;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose li::marker {
  color: var(--primary);
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: #525252;
  margin: 2rem 0;
  background: #fafafa;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  color: #dc2626;
  border: 1px solid #e5e5e5;
}

.prose pre {
  background-color: #171717;
  color: #fafafa;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  border: none;
}

.prose hr {
  border-color: #e5e5e5;
  margin: 2.5rem 0;
}

.prose img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #737373;
  margin-top: 0.75rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  border: 1px solid #e5e5e5;
  padding: 0.875rem 1rem;
  text-align: left;
}

.prose th {
  background-color: #fafafa;
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background-color: #fafafa;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #fafafa;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect ratio utility */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.4s ease-out;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button styles */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #171717;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #e5e5e5;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Category badge */
.category-badge {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
