/* ==========================================================================
   MINTORA - Collection Holographic Cards Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Background Effects
   -------------------------------------------------------------------------- */
.collection-page {
  position: relative;
  min-height: 100vh;
}

.collection-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

.collection-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.collection-header__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-header__subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.collection-header__actions {
  display: flex;
  gap: 0.75rem;
}

/* Desktop: Hide scan button, show export */
.collection-header__actions .btn--scan-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   Stats Cards
   -------------------------------------------------------------------------- */
.collection-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 20;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
  min-height: 130px;
  justify-content: center;
  gap: 0.5rem;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.stat-card__icon--value {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.stat-card__icon--cards {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.stat-card__icon--top {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.stat-card__icon--gain {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.stat-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  width: 100%;
  min-width: 0;
}

.stat-card__label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
}

.stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stat-card__value--positive {
  color: #34d399;
}

.stat-card__change {
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-card__change--up {
  color: #34d399;
}

.stat-card__change--down {
  color: #f87171;
}

.stat-card__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.collection-toolbar__search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.collection-toolbar__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.collection-toolbar__search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.collection-toolbar__search-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.collection-toolbar__search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.collection-toolbar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.collection-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collection-toolbar__select {
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.collection-toolbar__select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

.collection-toolbar__select option {
  background: #1a1a2e;
  color: white;
}

.collection-toolbar__view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.collection-toolbar__view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.collection-toolbar__view-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.collection-toolbar__view-btn--active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* --------------------------------------------------------------------------
   Cards Grid - Desktop-First with Mobile Responsive
   -------------------------------------------------------------------------- */
.collection-cards {
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Desktop default: 4 colonnes fixes pour éviter le bug minmax sur certains écrans */
.collection-cards--grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablette large: 3 colonnes */
@media (max-width: 1200px) {
  .collection-cards--grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Tablette: 2 colonnes */
@media (max-width: 900px) {
  .collection-cards--grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.collection-cards--list {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Fix: ensure items are visible in list view */
.collection-cards--list .collection-cards__item {
  animation: none;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Holo Card List View (Compact)
   -------------------------------------------------------------------------- */
.holo-card-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.holo-card-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.holo-card-list-item--selected {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.holo-card-list-item__thumb {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.holo-card-list-item__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.holo-card-list-item__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.holo-card-list-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.holo-card-list-item__player {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-card-list-item__details {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-card-list-item__types {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.holo-card-list-item__badge {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.holo-card-list-item__badge--base {
  background: rgba(99, 110, 114, 0.3);
  color: #b2bec3;
}

.holo-card-list-item__badge--rookie {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.holo-card-list-item__badge--auto {
  background: rgba(192, 192, 192, 0.2);
  color: #e8e8e8;
}

.holo-card-list-item__badge--patch {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.holo-card-list-item__badge--parallel {
  background: rgba(0, 210, 211, 0.2);
  color: #00d2d3;
}

.holo-card-list-item__badge--insert {
  background: rgba(162, 155, 254, 0.2);
  color: #a29bfe;
}

.holo-card-list-item__badge--memorabilia {
  background: rgba(99, 110, 114, 0.3);
  color: #dfe6e9;
}

.holo-card-list-item__grade {
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.holo-card-list-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 80px;
}

.holo-card-list-item__price-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.holo-card-list-item__change {
  font-size: 0.7rem;
  font-weight: 600;
}

.holo-card-list-item__change--up {
  color: #34d399;
}

.holo-card-list-item__change--down {
  color: #f87171;
}

/* Mobile adjustments for list view */
@media (max-width: 480px) {
  .holo-card-list-item {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  
  .holo-card-list-item__thumb {
    width: 32px;
    height: 44px;
  }
  
  .holo-card-list-item__player {
    font-size: 0.8rem;
  }
  
  .holo-card-list-item__details {
    font-size: 0.65rem;
  }
  
  .holo-card-list-item__types {
    display: none; /* Hide on very small screens */
  }
  
  .holo-card-list-item__price-value {
    font-size: 0.8rem;
  }
}

.collection-cards__item {
  animation: cardFadeIn 0.5s ease-out backwards;
  min-width: 0; /* Critical fix for CSS Grid overflow */
  width: 100%;
}

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

/* --------------------------------------------------------------------------
   Holo Card Component
   -------------------------------------------------------------------------- */
.holo-card-container {
  width: 100%;
  min-width: 0; /* Critical fix for CSS Grid overflow */
  box-sizing: border-box;
}

.holo-card {
  position: relative;
  width: 100%;
  min-width: 0; /* Prevent grid blowout */
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  box-sizing: border-box;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 10;
}

.holo-card--selected {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(99, 102, 241, 0.2);
}

.holo-card__image-wrapper {
  position: relative;
  aspect-ratio: 2.5/3.5;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 20, 35, 1) 0%, rgba(15, 15, 25, 1) 100%);
}

.holo-card__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease;
}

.holo-card:hover .holo-card__image {
  transform: scale(1.03);
}

.holo-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(18, 18, 26, 1) 0%, rgba(12, 12, 20, 1) 100%);
}

.holo-card__placeholder svg {
  color: rgba(255, 255, 255, 0.2);
}

.holo-card__placeholder-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 0 1rem;
}

/* Holographic Effects */
.holo-card__holo-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.holo-card__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.holo-card__prism {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
  transition: opacity 0.3s;
}

/* Sparkles */
.holo-card__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.holo-card__sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkleAnim 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.8);
}

@keyframes sparkleAnim {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Badges */
.holo-card__grade-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
  z-index: 5;
}

.holo-card__grade-label {
  opacity: 0.8;
}

.holo-card__grade-value {
  font-size: 0.8rem;
}

.holo-card__qty-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.holo-card__type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.holo-card__type-badge--rookie {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 236, 139, 0.9));
  color: #1a1a2e;
}

.holo-card__type-badge--auto {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.9), rgba(232, 232, 232, 0.9));
  color: #1a1a2e;
}

.holo-card__type-badge--patch {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(84, 160, 255, 0.9));
  color: white;
}

.holo-card__type-badge--parallel {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.9), rgba(95, 39, 205, 0.9));
  color: white;
}

.holo-card__type-badge--insert {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.9), rgba(250, 177, 160, 0.9));
  color: #1a1a2e;
}

.holo-card__type-badge--memorabilia {
  background: linear-gradient(135deg, rgba(45, 52, 54, 0.95), rgba(99, 110, 114, 0.95));
  color: white;
}

.holo-card__type-badge--base {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.holo-card__type-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  max-width: 70%;
  overflow: hidden;
}

.holo-card__type-badge--more {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* Card Info */
.holo-card__info {
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.holo-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-card__team {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.125rem;
}

.holo-card__set {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-card__price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.holo-card__price {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  flex: 1;
}

.holo-card__change {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.holo-card__change--up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.holo-card__change--down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* --------------------------------------------------------------------------
   Card Detail Modal
   -------------------------------------------------------------------------- */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-modal {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(25, 25, 40, 0.98), rgba(15, 15, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  animation: modalSlideUp 0.3s ease-out;
}

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

.card-modal__close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin-right: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: -40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}

.card-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card-modal__content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.card-modal__preview {
  flex-shrink: 0;
  width: 280px;
}

.card-modal__details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.card-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card-modal__meta span:not(:last-child)::after {
  content: '•';
  margin-left: 0.5rem;
  opacity: 0.5;
}

.card-modal__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-modal__stat {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.card-modal__stat--full {
  grid-column: 1 / -1;
}

.card-modal__stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.card-modal__stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-modal__stat-value--positive {
  color: #34d399;
}

.card-modal__stat-value--negative {
  color: #f87171;
}

.card-modal__stat-value--capitalize {
  text-transform: capitalize;
}

/* Type Tags */
.card-modal__type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.card-modal__type-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid;
}

.card-modal__type-tag--base {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

.card-modal__type-tag--rookie {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.card-modal__type-tag--auto {
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.card-modal__type-tag--patch {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.card-modal__type-tag--parallel {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.card-modal__type-tag--insert {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.card-modal__type-tag--memorabilia {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

/* Price Chart */
.card-modal__chart {
  margin-bottom: 1.5rem;
}

.card-modal__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-modal__chart-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.card-modal__chart-range {
  display: flex;
  gap: 0.25rem;
}

.card-modal__chart-btn {
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.card-modal__chart-btn:hover {
  color: white;
}

.card-modal__chart-btn--active {
  background: rgba(99, 102, 241, 0.2);
  color: white;
}

.card-modal__chart-placeholder {
  height: 100px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.card-modal__chart-svg {
  width: 100%;
  height: 100%;
}

/* Modal Actions */
.card-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.card-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.card-modal__btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.card-modal__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card-modal__btn--danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.card-modal__btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.card-modal__btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
}

.card-modal__btn--primary:hover {
  filter: brightness(1.1);
}

.card-modal__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-modal__btn--move {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 0.5rem;
  min-width: 40px;
}

.card-modal__btn--move:hover {
  filter: brightness(1.1);
}

.card-modal__move-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.card-modal__move-wrapper .card-modal__select {
  flex: 1;
}

/* Image Container */
.card-modal__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 245 / 342;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.card-modal__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.card-modal__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

.card-modal__flip-btn {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.card-modal__flip-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Edit Image Button */
.card-modal__edit-img-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(139, 92, 246, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.card-modal__edit-img-btn:hover {
  background: rgba(139, 92, 246, 1);
  transform: scale(1.1);
}

/* Image action buttons container */
.card-modal__img-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.card-modal__img-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.card-modal__img-action-btn:hover {
  background: rgba(139, 92, 246, 0.9);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
}

/* Clickable placeholder for adding images */
.card-modal__placeholder--clickable {
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.card-modal__placeholder--clickable span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.card-modal__placeholder--clickable:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.card-modal__placeholder--clickable:hover svg {
  stroke: rgba(139, 92, 246, 0.8);
}

.card-modal__placeholder--clickable:hover span {
  color: rgba(139, 92, 246, 0.8);
}

/* Front/Back toggle */
.card-modal__image-toggle {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  gap: 2px;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.card-modal__toggle-btn {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-modal__toggle-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.card-modal__toggle-btn--active {
  color: white;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(168, 85, 247, 0.9));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.card-modal__toggle-btn--active:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(168, 85, 247, 1));
}

.card-modal__match-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 500;
}

.card-modal__match-badge--matched {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
  color: #34d399;
}

/* Edit Form */
.card-modal__edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-modal__field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.card-modal__input,
.card-modal__select {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
}

.card-modal__input:focus,
.card-modal__select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

.card-modal__price-input {
  display: flex;
  gap: 0.5rem;
}

.card-modal__currency-select {
  width: 80px;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

.card-modal__currency-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

.card-modal__input--with-currency {
  flex: 1;
}

.card-modal__edit-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.card-modal__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card-modal__textarea {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.card-modal__textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

/* Chart Container */
.card-modal__chart-container {
  position: relative;
  height: 100px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.card-modal__chart-labels {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

.card-modal__chart-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Spinner */
.card-modal__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: modalSpin 0.8s linear infinite;
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.collection-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.collection-empty__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.collection-empty__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.collection-empty__text {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.collection-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.collection-empty__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
.collection-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
}

.collection-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.collection-error {
  padding: 2rem;
  text-align: center;
  color: #f87171;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--share {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--share:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.btn--share svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsive - Comprehensive Mobile/Tablet Support
   -------------------------------------------------------------------------- */

/* Large tablets */
@media (max-width: 1200px) {
  .collection-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .card-modal {
    max-width: calc(100vw - 2rem);
  }
  
  .card-modal__content {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .card-modal__preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Mobile - Cards compactes style TCGPlayer */
@media (max-width: 768px) {
  .collection-header {
    flex-direction: column;
    gap: 1rem;
  }

  .collection-header__title {
    font-size: 1.5rem;
  }
  
  .collection-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .collection-header__actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
  
  /* Mobile: Show scan button */
  .collection-header__actions .btn--scan-mobile {
    display: flex;
    order: 1;
  }
  
  .collection-header__actions .btn--add-mobile {
    order: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .collection-header__actions .btn--add-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .collection-header__actions .btn--export-desktop {
    display: none;
  }

  .collection-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 0.875rem 0.75rem;
    gap: 0.375rem;
    min-height: 110px;
  }
  
  .stat-card__icon {
    width: 36px;
    height: 36px;
  }
  
  .stat-card__icon svg {
    width: 18px;
    height: 18px;
  }
  
  .stat-card__value {
    font-size: 1.1rem;
  }

  .collection-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .collection-toolbar__search {
    max-width: none;
  }

  .collection-toolbar__filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .collection-toolbar__select {
    flex: 1;
    min-width: 110px;
  }

  /* ===== GRILLE 2 COLONNES SUR MOBILE ===== */
  .collection-cards--grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  /* ===== CARTES HAUTEUR UNIFORME ===== */
  .holo-card-container {
    height: 100%;
  }
  
  .holo-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
  }
  
  .holo-card__image-wrapper {
    flex-shrink: 0;
  }
  
  /* Zone info avec hauteur fixe pour uniformité */
  .holo-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
    min-height: 85px;
    position: relative;
    background: rgba(15, 15, 25, 0.95);
  }
  
  .holo-card__title {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.125rem;
    /* Limite à 2 lignes max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  
  .holo-card__team {
    font-size: 0.65rem;
    margin-bottom: 0.125rem;
  }
  
  .holo-card__set {
    font-size: 0.6rem;
    margin-bottom: auto; /* Pousse le prix vers le bas */
  }
  
  .holo-card__price-row {
    margin-top: auto; /* Colle le prix en bas */
  }
  
  .holo-card__price {
    font-size: 0.85rem;
  }
  
  .holo-card__change {
    font-size: 0.6rem;
    padding: 0.125rem 0.375rem;
  }
  
  /* Badges compacts */
  .holo-card__grade-badge {
    top: 0.375rem;
    left: 0.375rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.55rem;
    border-radius: 4px;
  }
  
  .holo-card__grade-value {
    font-size: 0.65rem;
  }
  
  .holo-card__qty-badge {
    top: 0.375rem;
    right: 0.375rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 4px;
  }
  
  .holo-card__type-badge {
    bottom: 0.375rem;
    left: 0.375rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.55rem;
    border-radius: 4px;
  }

  /* Card Detail Modal - Optimized mobile layout */
  .card-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .card-modal {
    max-width: 100%;
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: 24px 24px 0 0;
    margin: 0;
  }
  
  .card-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    min-width: 44px;
    min-height: 44px;
  }

  .card-modal__content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1.25rem;
    padding-top: 3.5rem;
    max-height: calc(95vh - 0px);
    max-height: calc(95dvh - 0px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: start;
  }

  .card-modal__preview {
    width: 120px;
    position: sticky;
    top: 0;
  }
  
  .card-modal__image-container {
    aspect-ratio: 2.5/3.5;
  }
  
  .card-modal__flip-btn {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
  }
  
  .card-modal__details {
    min-width: 0;
  }
  
  .card-modal__title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .card-modal__meta {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .card-modal__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .card-modal__stat {
    padding: 0.625rem;
    border-radius: 10px;
  }
  
  .card-modal__stat-label {
    font-size: 0.6rem;
    margin-bottom: 0.125rem;
  }
  
  .card-modal__stat-value {
    font-size: 0.85rem;
  }
  
  .card-modal__stat--full {
    grid-column: 1 / -1;
  }
  
  /* Chart section */
  .card-modal__chart {
    margin-bottom: 1rem;
    grid-column: 1 / -1;
  }
  
  .card-modal__chart-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .card-modal__chart-title {
    font-size: 0.75rem;
  }
  
  .card-modal__chart-range {
    gap: 0.125rem;
  }
  
  .card-modal__chart-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    min-height: 28px;
  }
  
  .card-modal__chart-container {
    height: 80px;
  }
  
  /* Actions full width at bottom */
  .card-modal__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .card-modal__btn {
    min-height: 44px;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .card-modal__btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Edit form adjustments */
  .card-modal__edit-form {
    grid-column: 1 / -1;
  }
  
  .card-modal__field-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .card-modal__edit-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
}

/* Small mobile - Keep 2 columns, more compact */
@media (max-width: 480px) {
  .collection-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 0.75rem 0.5rem;
    min-height: 100px;
    gap: 0.25rem;
  }
  
  .stat-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  
  .stat-card__icon svg {
    width: 16px;
    height: 16px;
  }
  
  .stat-card__label {
    font-size: 0.6rem;
  }
  
  .stat-card__value {
    font-size: 0.95rem;
  }
  
  .stat-card__change,
  .stat-card__sub {
    font-size: 0.65rem;
  }
  
  /* Toujours 2 colonnes mais gap plus serré */
  .collection-cards--grid {
    gap: 0.5rem;
  }
  
  /* Hauteur info légèrement réduite */
  .holo-card__info {
    min-height: 75px;
    padding: 0.5rem;
  }
  
  .holo-card__title {
    font-size: 0.75rem;
  }
  
  .holo-card__team {
    display: none; /* Cache team sur petits écrans */
  }
  
  .holo-card__set {
    font-size: 0.55rem;
  }
  
  .holo-card__price {
    font-size: 0.8rem;
  }
  
  .holo-card__change {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
  }
  
  .holo-card__grade-badge,
  .holo-card__qty-badge,
  .holo-card__type-badge {
    font-size: 0.5rem;
    padding: 0.125rem 0.3rem;
  }
  
  .card-modal__stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card-modal__actions {
    flex-direction: column;
  }
  
  .card-modal__btn {
    width: 100%;
  }
}

/* Very small phones - Still 2 columns */
@media (max-width: 360px) {
  .collection-cards--grid {
    gap: 0.375rem;
  }
  
  .collection-toolbar__filters {
    flex-direction: column;
  }
  
  .collection-toolbar__select {
    width: 100%;
  }
  
  .holo-card {
    border-radius: 8px;
  }
  
  .holo-card__info {
    min-height: 70px;
    padding: 0.375rem;
  }
  
  .holo-card__title {
    font-size: 0.7rem;
  }
  
  .holo-card__set {
    font-size: 0.5rem;
  }
  
  .holo-card__price {
    font-size: 0.75rem;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .card-modal {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  
  .card-modal__content {
    flex-direction: row;
    max-height: calc(100vh - 60px);
  }
  
  .card-modal__preview {
    width: 35%;
    max-width: none;
  }
  
  .card-modal__details {
    width: 65%;
    overflow-y: auto;
  }
}

/* ==========================================================================
   SHOWCASE LIST VIEW STYLES
   ========================================================================== */

/* ===== SHOWCASE GRID - Responsive columns ===== */
.showcase-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
}

/* Tablet: 2 colonnes */
@media (min-width: 640px) {
  .showcase-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Tablet large: 3 colonnes */
@media (min-width: 768px) {
  .showcase-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* Desktop: 4 colonnes */
@media (min-width: 1024px) {
  .showcase-cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }
}

.showcase-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.showcase-list-item__thumb {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.showcase-list-item__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.showcase-list-item__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.showcase-list-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.showcase-list-item__player {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-list-item__details {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-list-item__types {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.showcase-list-item__badge {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-list-item__badge--base {
  background: rgba(99, 110, 114, 0.3);
  color: #b2bec3;
}

.showcase-list-item__badge--rookie {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.showcase-list-item__badge--auto {
  background: rgba(192, 192, 192, 0.2);
  color: #e8e8e8;
}

.showcase-list-item__badge--patch {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.showcase-list-item__badge--parallel {
  background: rgba(0, 210, 211, 0.2);
  color: #00d2d3;
}

.showcase-list-item__badge--insert {
  background: rgba(162, 155, 254, 0.2);
  color: #a29bfe;
}

.showcase-list-item__badge--memorabilia {
  background: rgba(99, 110, 114, 0.3);
  color: #dfe6e9;
}

.showcase-list-item__grade {
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.showcase-list-item__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}

/* Mobile adjustments for showcase list view */
@media (max-width: 480px) {
  .showcase-list-item {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  
  .showcase-list-item__thumb {
    width: 32px;
    height: 44px;
  }
  
  .showcase-list-item__player {
    font-size: 0.8rem;
  }
  
  .showcase-list-item__details {
    font-size: 0.7rem;
  }
  
  .showcase-list-item__types {
    display: none;
  }
  
  .showcase-list-item__price {
    font-size: 0.8rem;
    min-width: 55px;
  }
}


