/* Holdings Page Component - Specific Styles Only */
@media (max-width: 480px) {
  .holding-item__cover {
    width: 160px;
  }
}

/* Holding Item Component */
.holding-item {
  text-align: center;
  position: relative;
}

.holding-item__cover-container {
  position: relative;
  margin-bottom: var(--size-4);
  display: inline-block;
}

.holding-item__cover {
  width: 200px;
  aspect-ratio: 2/3;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: var(--font-size-0);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.holding-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2);
}

.holding-item__title {
  font-size: var(--font-size-1);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0;
  letter-spacing: 0.025em;
}

.holding-item__icon {
  width: var(--font-size-0);
  height: var(--font-size-0);
  margin-right: var(--size-1);
  color: var(--text-2);
  flex-shrink: 0;
}

.holding-item__link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.holding-item__link:hover .holding-item__title {
  color: var(--link-color);
}

.holding-item__meta {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
  margin: var(--size-3) 0;
  font-size: var(--font-size-0);
}

.holding-item__status {
  display: flex;
  justify-content: center;
}

.holding-item__date {
  color: var(--text-2);
  font-size: var(--font-size-0);
}

.holding-item__sections {
  color: var(--text-2);
  font-size: var(--font-size-0);
}

.holding-item__actions {
  display: flex;
  gap: var(--size-2);
  justify-content: center;
  margin-top: var(--size-3);
}

/* Current Cover Display in Forms */
.current-cover {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  margin-bottom: var(--size-3);
  padding: var(--size-3);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-3);
}

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

.current-cover__preview {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-2);
}

.current-cover__info {
  flex: 1;
}

.current-cover__info p {
  margin: 0 0 var(--size-1) 0;
  font-weight: 500;
  color: var(--text-1);
}

.current-cover__info small {
  color: var(--text-2);
}

/* Holding Cover Display */
.holding-cover {
  text-align: center;
  margin-bottom: var(--size-6);
}

.holding-cover__image {
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-3);
  margin-inline: auto;
}

/* Sections Management */
.sections-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--size-6);
}

.sections-header h2 {
  margin: 0;
  font-size: var(--font-size-3);
  color: var(--text-1);
}

.sections-header__actions {
  display: flex;
  gap: var(--size-2);
}

.sections-list {
  display: flex;
  flex-direction: column;
  gap: var(--size-4);
}

.sections-empty {
  text-align: center;
  padding: var(--size-8) var(--size-4);
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-3);
}

/* Section Item */
.section-item {
  display: flex;
  align-items: flex-start;
  gap: var(--size-3);
  padding: var(--size-4);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
}

.section-item:hover {
  background: var(--surface-3);
  border-color: var(--surface-4);
}

.section-item__handle {
  cursor: grab;
  color: var(--text-2);
  padding: var(--size-1);
  border-radius: var(--radius-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-item__handle:hover {
  background: var(--surface-4);
  color: var(--on-surface-4);
}

.section-item__handle:active {
  cursor: grabbing;
}

.section-item__drag-icon {
  width: 16px;
  height: 16px;
}

.section-item__content {
  flex: 1;
  min-width: 0;
}

.section-item__title {
  margin: 0 0 var(--size-2) 0;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-6);
  line-height: var(--font-lineheight-2);
}

.section-item__link {
  color: var(--text-1);
  text-decoration: none;
  display: block;
  width: 100%;
}

.section-item__link:hover {
  color: var(--link-color);
  text-decoration: none;
}


.section-item__icon {
  width: var(--font-size-0);
  height: var(--font-size-0);
  color: var(--text-2);
  flex-shrink: 0;
}

.section-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-2);
  margin-bottom: var(--size-2);
  font-size: var(--font-size-0);
}

.section-item__position {
  color: var(--text-2);
  font-size: var(--font-size-0);
}

.section-item__excerpt {
  margin: 0;
  color: var(--text-2);
  font-size: var(--font-size-1);
  line-height: var(--font-lineheight-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Content Body */
.content-body h2 {
  font-size: var(--font-size-3);
  color: var(--text-1);
  margin-bottom: var(--size-4);
  font-weight: var(--font-weight-6);
}

/* Holding Detail Page */
.holding__footer {
  margin-top: var(--size-8);
}


.holding__sharing {
  text-align: center;
  margin-top: var(--size-6);
}

.holding__sharing-title {
  font-size: var(--font-size-2);
  margin-bottom: var(--size-3);
  color: var(--text-1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .current-cover {
    flex-direction: column;
    text-align: center;
    gap: var(--size-2);
  }
  
  .sections-header {
    flex-direction: column;
    gap: var(--size-3);
    align-items: stretch;
  }
  
  .section-item {
    flex-direction: column;
    gap: var(--size-2);
  }
  
  .section-item__handle {
    align-self: flex-start;
  }
  
  .section-item__actions {
    align-self: flex-end;
  }
}