/* Base styles */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #8b0000; /* Deep Red */
  --primary-foreground: #ffffff;
  --secondary: #b22222; /* Lighter Red for accents */
  --muted: #f8f0f0; /* Slight red tint to muted background */
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #8b0000;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Layout */
.flex {
  display: flex;
}

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

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

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.ml-auto {
  margin-left: auto;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

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

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

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-32 {
  height: 8rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.w-32 {
  width: 8rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-[600px] {
  max-width: 600px;
}

.max-w-[900px] {
  max-width: 900px;
}

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

.flex-shrink-0 {
  flex-shrink: 0;
}

.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));
}

.p-1 {
  padding: 0.25rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

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

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

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

/* Typography */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

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

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

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

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

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

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

.tracking-tighter {
  letter-spacing: -0.05em;
}

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

.text-gray-500 {
  color: var(--muted-foreground);
}

.text-gray-600 {
  color: #475569;
}

.text-gray-900 {
  color: var(--foreground);
}

.text-white {
  color: #ffffff;
}

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

.opacity-30 {
  opacity: 0.3;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-80 {
  opacity: 0.8;
}

.line-through {
  text-decoration: line-through;
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

.hover\:underline:hover {
  text-decoration: underline;
}

/* Components */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: var(--secondary);
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.button-outline:hover {
  background-color: var(--muted);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.5rem;
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.button-icon:hover {
  background-color: var(--muted);
}

.input {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.5rem;
}

.input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.textarea {
  display: flex;
  min-height: 80px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: transparent;
  padding: 0.5rem;
  resize: vertical;
}

.textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.separator {
  height: 1px;
  background-color: var(--border);
  border: none;
  margin: 1rem 0;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-xl {
  border-radius: calc(var(--radius) + 0.25rem);
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-tl-full {
  border-top-left-radius: 9999px;
}

.border {
  border: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.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-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bg-white {
  background-color: #ffffff;
}

.bg-gray-100 {
  background-color: var(--muted);
}

.bg-gray-200 {
  background-color: #e2e8f0;
}

.bg-gray-300 {
  background-color: #cbd5e1;
}

.bg-gray-700 {
  background-color: #334155;
}

.bg-gray-800 {
  background-color: #1e293b;
}

.bg-gray-900 {
  background-color: #0f172a;
}

.bg-green-100 {
  background-color: #dcfce7;
}

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

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

.bg-gradient {
  background-image: linear-gradient(to bottom, #ffffff, var(--muted));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-300 {
  --tw-gradient-stops: #cbd5e1, var(--tw-gradient-to, rgba(203, 213, 225, 0));
}

.from-gray-800 {
  --tw-gradient-stops: #1e293b, var(--tw-gradient-to, rgba(30, 41, 59, 0));
}

.from-primary {
  --tw-gradient-stops: var(--primary), var(--tw-gradient-to, rgba(139, 0, 0, 0));
}

.to-gray-400 {
  --tw-gradient-to: #94a3b8;
}

.to-gray-900 {
  --tw-gradient-to: #0f172a;
}

.to-secondary {
  --tw-gradient-to: var(--secondary);
}

.fill-primary {
  fill: var(--primary);
}

.transform {
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.rotate-3 {
  transform: rotate(3deg);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:rotate-0:hover {
  transform: rotate(0deg);
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

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

.top-10 {
  top: 2.5rem;
}

.top-40 {
  top: 10rem;
}

.right-10 {
  right: 2.5rem;
}

.bottom-0 {
  bottom: 0;
}

.right-0 {
  right: 0;
}

.left-10 {
  left: 2.5rem;
}

.overflow-hidden {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Book cover image */
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:gap-6 {
    gap: 1.5rem;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:ml-auto {
    margin-left: auto;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/2 {
    width: 50%;
  }

  .md\:w-48 {
    width: 12rem;
  }

  .md\:h-48 {
    height: 12rem;
  }

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

  .md\:gap-6 {
    gap: 1.5rem;
  }

  .md\:gap-16 {
    gap: 4rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:py-24 {
    padding-top: 3rem; /*4rem patate*/
    padding-bottom: 3rem; /*4rem patate*/
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
  }

  .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\:gap-12 {
    gap: 3rem;
  }

  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lg\:py-32 {
    padding-top: 4rem; /*8rem patate*/
    padding-bottom: 4rem; /*8rem patate*/
  }

  .lg\:text-6xl {
    font-size: 3.75rem;
  }

  .lg\:text-base\/relaxed {
    font-size: 1rem;
    line-height: 1.625;
  }
}

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

  .xl\:text-xl\/relaxed {
    font-size: 1.25rem;
    line-height: 1.625;
  }
}
