/**
 * share-page.css - Styles Premium pour la page de partage de thème
 * Design inspiré de ThemeForest/Envato Marketplace
 * Version 2.0 - Refonte complète
 */

/* ═══════════════════════════════════════════════════════════════════
   VARIABLES CSS
   ═══════════════════════════════════════════════════════════════════ */

.share-page-v2 {
  --sp-bg-primary: #0f0f23;
  --sp-bg-secondary: #1a1a35;
  --sp-bg-card: rgba(26, 26, 53, 0.8);
  --sp-bg-card-hover: rgba(35, 35, 70, 0.9);

  --sp-text-primary: #ffffff;
  --sp-text-secondary: #a0a0c0;
  --sp-text-muted: #606080;

  --sp-accent: #6366f1;
  --sp-accent-light: #818cf8;
  --sp-accent-dark: #4f46e5;

  --sp-success: #22c55e;
  --sp-warning: #eab308;
  --sp-danger: #ef4444;

  --sp-gold: #ffd700;
  --sp-purple: #a855f7;
  --sp-blue: #3b82f6;
  --sp-gray: #6b7280;

  --sp-border: rgba(255, 255, 255, 0.08);
  --sp-border-light: rgba(255, 255, 255, 0.12);

  --sp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --sp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --sp-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

  --sp-radius-sm: 8px;
  --sp-radius-md: 12px;
  --sp-radius-lg: 16px;
  --sp-radius-xl: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   BASE CONTAINER
   ═══════════════════════════════════════════════════════════════════ */

.share-page-v2 {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sp-bg-primary) 0%, var(--sp-bg-secondary) 100%);
  color: var(--sp-text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   LOADING & ERROR STATES
   ═══════════════════════════════════════════════════════════════════ */

.sp-loading,
.sp-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.sp-loading-content,
.sp-error-content {
  text-align: center;
  max-width: 400px;
}

.sp-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--sp-border);
  border-top-color: var(--sp-accent);
  border-radius: 50%;
  animation: sp-spin 1s linear infinite;
}

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

.sp-error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.sp-error h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--sp-text-primary);
}

.sp-error p {
  color: var(--sp-text-secondary);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.sp-hero {
  position: relative;
  padding: 2rem 2rem 3rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.05);
}

.sp-hero.has-banner .sp-hero-bg {
  filter: blur(8px) brightness(0.6);
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 35, 0.4) 0%,
    rgba(15, 15, 35, 0.8) 70%,
    rgba(15, 15, 35, 1) 100%
  );
}

.sp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.sp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--sp-radius-md);
  color: var(--sp-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.sp-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--sp-text-primary);
}

.sp-back-icon {
  font-size: 1.1rem;
}

.sp-hero-main {
  max-width: 800px;
}

.sp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-text-secondary);
}

.sp-badge-category {
  background: rgba(99, 102, 241, 0.2);
  color: var(--sp-accent-light);
}

.sp-hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.sp-theme-icon {
  font-size: 2.8rem;
}

.sp-hero-description {
  font-size: 1.1rem;
  color: var(--sp-text-secondary);
  margin: 0 0 1.5rem;
  max-width: 600px;
}

.sp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.sp-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sp-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-text-primary);
}

.sp-stat-stars {
  color: var(--sp-gold);
  font-size: 1.2rem;
}

.sp-stat-icon {
  font-size: 1rem;
}

.sp-stat-label {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
}

.sp-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--sp-border-light);
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN GRID LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.sp-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.sp-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */

.sp-section {
  background: var(--sp-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
}

.sp-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--sp-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW CARDS
   ═══════════════════════════════════════════════════════════════════ */

.sp-overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sp-overview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-overview-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sp-border-light);
  transform: translateY(-2px);
}

.sp-overview-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: var(--sp-radius-md);
  flex-shrink: 0;
}

.sp-overview-info {
  display: flex;
  flex-direction: column;
}

.sp-overview-count {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.sp-overview-label {
  font-size: 0.875rem;
  color: var(--sp-text-secondary);
  margin-top: 0.25rem;
}

.sp-overview-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.sp-rarity-mini {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   PREVIEW SECTION
   ═══════════════════════════════════════════════════════════════════ */

.sp-preview-tabs {
  display: flex;
  gap: 0;
  margin: -1.5rem -1.5rem 1.5rem;
  border-bottom: 1px solid var(--sp-border);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--sp-radius-lg) var(--sp-radius-lg) 0 0;
  overflow: hidden;
}

.sp-preview-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--sp-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.sp-preview-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sp-text-primary);
}

.sp-preview-tab.active {
  color: var(--sp-accent-light);
  border-bottom-color: var(--sp-accent);
  background: rgba(99, 102, 241, 0.1);
}

.sp-preview-content {
  min-height: 300px;
}

.sp-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--sp-text-muted);
  font-style: italic;
}

/* Collectibles Grid */
.sp-rarity-group {
  margin-bottom: 1.5rem;
}

.sp-rarity-group:last-child {
  margin-bottom: 0;
}

.sp-rarity-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid;
}

.sp-rarity-icon {
  font-size: 1.2rem;
}

.sp-rarity-name {
  font-weight: 600;
  font-size: 1rem;
}

.sp-rarity-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
}

.sp-collectibles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.sp-collectible-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--sp-radius-md);
  text-align: center;
  transition: all 0.2s ease;
}

.sp-collectible-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.sp-collectible-img {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid;
  border-radius: var(--sp-radius-md);
  overflow: hidden;
}

.sp-collectible-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-collectible-emoji {
  font-size: 2rem;
}

.sp-collectible-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sp-text-primary);
  line-height: 1.2;
}

/* Traps Grid */
.sp-traps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sp-trap-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--sp-radius-md);
}

.sp-trap-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--sp-radius-sm);
}

.sp-trap-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sp-trap-name {
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-trap-type {
  font-size: 0.8rem;
  color: var(--sp-text-secondary);
}

.sp-trap-prob {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sp-danger);
}

/* Missions List */
.sp-missions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sp-mission-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--sp-radius-md);
}

.sp-mission-type-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--sp-radius-sm);
  flex-shrink: 0;
}

.sp-mission-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sp-mission-name {
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-mission-desc {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
}

.sp-mission-reward {
  font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.sp-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sp-reviews-header .sp-section-title {
  margin: 0;
}

.sp-already-reviewed {
  font-size: 0.9rem;
  color: var(--sp-success);
}

/* Rating Summary */
.sp-rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--sp-radius-md);
  margin-bottom: 1.5rem;
}

.sp-rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  border-right: 1px solid var(--sp-border);
}

.sp-rating-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sp-text-primary);
}

.sp-rating-stars {
  display: flex;
  gap: 0.15rem;
  margin: 0.5rem 0;
}

.sp-star {
  font-size: 1.2rem;
  color: var(--sp-text-muted);
}

.sp-star.filled {
  color: var(--sp-gold);
}

.sp-rating-count {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
}

.sp-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.sp-rating-bar-row {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 0.75rem;
}

.sp-bar-label {
  font-size: 0.8rem;
  color: var(--sp-text-secondary);
  text-align: right;
}

.sp-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.sp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sp-gold), #ff8c00);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sp-bar-count {
  font-size: 0.8rem;
  color: var(--sp-text-secondary);
}

/* Reviews List */
.sp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-no-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--sp-text-secondary);
}

.sp-no-reviews-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.sp-review-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
}

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

.sp-reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sp-reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sp-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-accent);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.sp-reviewer-meta {
  display: flex;
  flex-direction: column;
}

.sp-reviewer-name {
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-review-date {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
}

.sp-review-rating {
  display: flex;
  gap: 0.1rem;
}

.sp-review-rating .sp-star {
  font-size: 0.95rem;
}

.sp-review-text {
  margin: 0;
  color: var(--sp-text-secondary);
  line-height: 1.5;
}

.sp-review-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sp-badge-verified {
  background: rgba(34, 197, 94, 0.15);
  color: var(--sp-success);
}

.sp-badge-featured {
  background: rgba(255, 215, 0, 0.15);
  color: var(--sp-gold);
}

.sp-show-more {
  width: 100%;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */

.sp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.sp-sidebar-card {
  background: var(--sp-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
}

.sp-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sp-text-secondary);
  margin: 0 0 1rem;
}

/* CTA Card */
.sp-cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.sp-cta-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sp-price-label {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sp-success);
}

.sp-price-badge {
  padding: 0.25rem 0.6rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--sp-success);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.sp-btn-import {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sp-cta-note {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.sp-cta-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--sp-text-secondary);
}

.sp-cta-feature span {
  color: var(--sp-success);
  font-weight: 600;
}

/* Author Card */
.sp-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sp-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sp-author-meta {
  display: flex;
  flex-direction: column;
}

.sp-author-name {
  font-weight: 600;
  color: var(--sp-text-primary);
}

.sp-author-date {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
}

/* Share Card */
.sp-share-url {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sp-share-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-secondary);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-copy-btn {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sp-copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--sp-success);
  color: var(--sp-success);
}

.sp-share-buttons {
  display: flex;
  gap: 0.5rem;
}

.sp-share-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-share-twitter {
  background: #1da1f2;
  color: white;
}

.sp-share-twitter:hover {
  background: #0d8ecf;
}

.sp-share-discord {
  background: #5865f2;
  color: white;
}

.sp-share-discord:hover {
  background: #4752c4;
}

/* Tags */
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-tag {
  padding: 0.35rem 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--sp-accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
}

/* Info Card */
.sp-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-info-label {
  font-size: 0.85rem;
  color: var(--sp-text-secondary);
}

.sp-info-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sp-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sp-btn-primary {
  background: linear-gradient(135deg, var(--sp-accent) 0%, var(--sp-accent-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sp-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.sp-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-text-primary);
  border: 1px solid var(--sp-border-light);
}

.sp-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.sp-btn-ghost {
  background: transparent;
  color: var(--sp-text-secondary);
  border: 1px solid var(--sp-border);
}

.sp-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sp-text-primary);
}

.sp-btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: sp-spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */

.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.sp-modal {
  width: 100%;
  max-width: 480px;
  background: var(--sp-bg-secondary);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
}

.sp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sp-border);
}

.sp-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.sp-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--sp-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--sp-radius-sm);
  transition: all 0.2s ease;
}

.sp-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-text-primary);
}

.sp-modal-body {
  padding: 1.5rem;
}

.sp-form-group {
  margin-bottom: 1.25rem;
}

.sp-form-group:last-child {
  margin-bottom: 0;
}

.sp-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sp-text-primary);
}

.sp-optional {
  font-weight: 400;
  color: var(--sp-text-muted);
}

.sp-star-input {
  display: flex;
  gap: 0.25rem;
}

.sp-star-btn {
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: var(--sp-text-muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.sp-star-btn.active {
  color: var(--sp-gold);
}

.sp-star-btn:hover {
  color: var(--sp-gold);
  transform: scale(1.1);
}

.sp-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.sp-form-group textarea:focus {
  outline: none;
  border-color: var(--sp-accent);
}

.sp-form-group textarea::placeholder {
  color: var(--sp-text-muted);
}

.sp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--sp-border);
  background: rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.sp-footer {
  text-align: center;
  padding: 2rem;
  color: var(--sp-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--sp-border);
}

.sp-footer p {
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .sp-main-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 2rem;
  }

  .sp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }

  .sp-hero {
    padding: 1.5rem 1.5rem 2rem;
  }

  .sp-hero-title {
    font-size: 2rem;
  }

  .sp-rating-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sp-rating-big {
    border-right: none;
    border-bottom: 1px solid var(--sp-border);
    padding: 0 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: 1rem 1rem 1.5rem;
    min-height: auto;
  }

  .sp-hero-title {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  .sp-theme-icon {
    font-size: 2rem;
  }

  .sp-hero-stats {
    gap: 0.75rem;
  }

  .sp-stat-divider {
    display: none;
  }

  .sp-main-grid {
    padding: 0 1rem 2rem;
  }

  .sp-section {
    padding: 1rem;
  }

  .sp-preview-tabs {
    margin: -1rem -1rem 1rem;
    overflow-x: auto;
  }

  .sp-preview-tab {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .sp-overview-cards {
    grid-template-columns: 1fr;
  }

  .sp-collectibles-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .sp-traps-grid {
    grid-template-columns: 1fr;
  }

  .sp-sidebar-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .sp-hero-badges {
    flex-wrap: wrap;
  }

  .sp-rating-number {
    font-size: 2.5rem;
  }

  .sp-review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .sp-modal {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
