/* Card components */

/* Book card */
.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.book-card:hover {
  border-color: var(--focus-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-cover-container {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  font-size: 3rem;
  color: var(--placeholder-color);
  opacity: 0.5;
}

.book-creating-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  z-index: 1;
}

.book-creating-overlay-text {
  position: relative;
  overflow: hidden;
  height: 1.5rem;
  width: 100%;
  display: block;
  line-height: 1.5rem;
}

.book-info-container {
  padding: 1rem;
}

.book-info-container .book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 3);
  text-align: left;
}

.book-date {
  font-size: 0.875rem;
  color: var(--placeholder-color);
  text-align: left;
}

/* Order card */
.order-card {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
  background-color: #f8f4ed;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--input-border);
}

.order-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-id {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.125rem;
  margin: 0;
}

.order-date-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.order-date,
.order-bullet,
.order-price {
  color: var(--text-color);
  margin: 0;
}

.order-status-container {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  flex-shrink: 0;
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.order-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}

.order-image-section {
  flex-shrink: 0;
  width: 250px;
}

.order-preview {
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.order-preview img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-details-section {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.order-book-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.4;
}

.order-details-section .btn.secondary {
  display: block;
  margin: 0.75rem 0 1.5rem 0;
  width: fit-content;
  padding: 0.75rem 1.5rem;
}

.order-shipping {
  margin: 1.5rem 0;
  text-align: left;
}

.order-shipping-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-shipping-address {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .order-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .order-image-section {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .order-preview img {
    max-width: 300px;
  }
}

