/* ============================================
   REDRAG Tools — Game Storage Planner (Tool-Specific)
   Only styles not covered by shared framework
   Version: 2.1.0 (Phase 7)
   ============================================ */

/* ------------------------------------------
   SECTION HEADERS (moved from inline styles)
   ------------------------------------------ */
.storage-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--rt-space-5);
}

.storage-section-title {
  font-size: var(--rt-text-h4);
  font-weight: var(--rt-weight-extrabold);
  letter-spacing: -0.3px;
  margin: 0;
}

.storage-section-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.storage-section-icon--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

/* ------------------------------------------
   FILTERS
   ------------------------------------------ */
.storage-filters {
  display: flex;
  gap: var(--rt-space-2);
  flex-wrap: wrap;
  margin-bottom: var(--rt-space-3);
}

/* ------------------------------------------
   GAME LIST
   ------------------------------------------ */
.storage-game-list {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  background: var(--rt-bg-input);
}

.storage-game-list::-webkit-scrollbar { width: 5px; }
.storage-game-list::-webkit-scrollbar-track { background: transparent; }
.storage-game-list::-webkit-scrollbar-thumb { background: var(--rt-border-hover); border-radius: 3px; }

.storage-game-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rt-border-default);
  cursor: pointer;
  transition: var(--rt-transition);
  gap: 12px;
}

.storage-game-item:last-child { border-bottom: none; }
.storage-game-item:hover { background: rgba(255, 255, 255, 0.02); }
.storage-game-item.is-selected {
  background: rgba(230, 57, 70, 0.06);
  border-left: 3px solid var(--rt-primary);
}

.storage-game-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--rt-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.storage-game-info { flex: 1; min-width: 0; }

.storage-game-name {
  font-size: 14px;
  font-weight: var(--rt-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storage-game-meta {
  font-size: 12px;
  color: var(--rt-text-muted);
  margin-top: 2px;
}

.storage-game-size {
  font-size: 14px;
  font-weight: var(--rt-weight-bold);
  color: var(--rt-primary-light);
  flex-shrink: 0;
}

/* ------------------------------------------
   STORAGE SIZE SELECTOR
   ------------------------------------------ */
.storage-storage-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.storage-size-btn {
  padding: 16px 10px;
  background: var(--rt-bg-input);
  border: 2px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  color: var(--rt-text-secondary);
  cursor: pointer;
  transition: var(--rt-transition);
  text-align: center;
  font-family: inherit;
}

.storage-size-btn:hover { border-color: var(--rt-border-hover); }
.storage-size-btn.is-active {
  border-color: var(--rt-primary);
  background: rgba(230, 57, 70, 0.1);
  color: var(--rt-text-primary);
}

.storage-size-btn__size {
  font-size: 18px;
  font-weight: var(--rt-weight-extrabold);
  display: block;
  letter-spacing: -0.5px;
}

.storage-size-btn__label {
  font-size: 11px;
  opacity: 0.6;
  font-weight: var(--rt-weight-medium);
}

/* ------------------------------------------
   PLATFORM SELECTOR
   ------------------------------------------ */
.storage-platform-options {
  display: flex;
  gap: 10px;
}

.storage-platform-btn {
  flex: 1;
  padding: 12px;
  background: var(--rt-bg-input);
  border: 2px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  color: var(--rt-text-secondary);
  cursor: pointer;
  transition: var(--rt-transition);
  font-size: 14px;
  font-weight: var(--rt-weight-bold);
  font-family: inherit;
}

.storage-platform-btn:hover { border-color: var(--rt-border-hover); }
.storage-platform-btn.is-active {
  border-color: var(--rt-info);
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

/* ------------------------------------------
   RESULTS
   ------------------------------------------ */
.storage-big-number {
  font-size: 52px;
  font-weight: var(--rt-weight-black);
  color: var(--rt-primary);
  line-height: 1;
  letter-spacing: -2px;
  transition: color 0.3s ease;
}

.storage-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--rt-space-4);
}

.storage-stat {
  background: var(--rt-bg-input);
  border: 1px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.storage-selected-games {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: var(--rt-space-2);
}

.storage-selected-games::-webkit-scrollbar { width: 4px; }
.storage-selected-games::-webkit-scrollbar-thumb { background: var(--rt-border-hover); border-radius: 2px; }

.storage-action-btns {
  display: flex;
  gap: 10px;
}

/* ------------------------------------------
   FAQ (component styles not in shared CSS)
   ------------------------------------------ */
.rt-faq__item {
  background: var(--rt-bg-card);
  border: 1px solid var(--rt-border-default);
  border-radius: var(--rt-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--rt-transition);
}

.rt-faq__item:hover { border-color: var(--rt-border-hover); }

.rt-faq__question {
  padding: 18px 22px;
  font-weight: var(--rt-weight-bold);
  font-size: var(--rt-text-body);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--rt-transition);
  user-select: none;
}

.rt-faq__question:hover { color: var(--rt-primary-light); }

.rt-faq__icon {
  width: 28px;
  height: 28px;
  background: var(--rt-bg-elevated);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--rt-primary);
  transition: var(--rt-transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.rt-faq__item.is-active .rt-faq__icon {
  transform: rotate(45deg);
  background: var(--rt-primary);
  color: white;
}

.rt-faq__answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--rt-text-secondary);
  font-size: var(--rt-text-body);
  line-height: 1.8;
}

.rt-faq__item.is-active .rt-faq__answer {
  padding: 0 22px 18px;
  max-height: 600px;
}

.rt-faq__answer ul,
.rt-faq__answer ol {
  padding-left: var(--rt-space-5);
  margin-bottom: var(--rt-space-3);
}

.rt-faq__answer li { margin-bottom: var(--rt-space-2); }

/* ------------------------------------------
   RESPONSIVE
   ------------------------------------------ */
@media (max-width: 768px) {
  .storage-storage-options { grid-template-columns: repeat(2, 1fr); }
  .storage-big-number { font-size: 42px; }
}
