/* CardForge Modular System Styles
 * Modular design system, presets, tiers, palettes
 * Extracted from: cardforge-ui.css (modular system classes)
 * Created: 2025-08-03
 */

/* This file will contain:
 * - Color palette variants (neon, earth, ocean, sunset, monochrome)
 * - Layout-specific card styling (minimal, split, stack, frame)
 * - Content alignment and weight distribution classes
 * - Modular system CSS classes and combinations
 * - Card element styling variations
 */

/* ===== MODULAR SYSTEM BASE ===== */

.modular-system {
  margin-bottom: 2rem;
}

/* ===== TEXT COLOR OPTIONS STYLING ===== */

.text-color-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.text-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: var(--aura-bg-color, #1a1a2e);
  border: 2px solid var(--mood-accent-color, #4a4a6a);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.text-color-option:hover {
  border-color: var(--mood-primary-color, #00d4ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.text-color-option.selected {
  border-color: var(--mood-primary-color, #00d4ff);
  background: var(--aura-bg-secondary, #2a2a3e);
  box-shadow: 0 0 0 1px var(--mood-primary-color, #00d4ff);
}

.text-color-preview {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--aura-bg-secondary, #2a2a3e);
}

.text-color-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mood-text-secondary, #cccccc);
  text-align: center;
}

/* Text Color Preview Variants */
.auto-text-preview {
  color: var(--mood-primary-color, #00d4ff);
  background: linear-gradient(45deg, #1a1a2e 50%, #2a2a3e 50%);
}

.light-text-preview {
  color: #ffffff;
  background: #333333;
}

.dark-text-preview {
  color: #000000;
  background: #f0f0f0;
}

/* Selected state for text color options */
.text-color-option.selected .text-color-label {
  color: var(--mood-primary-color, #00d4ff);
}

.text-color-option.selected .auto-text-preview {
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.text-color-option.selected .light-text-preview {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.text-color-option.selected .dark-text-preview {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* ===== PRESETS SECTION ===== */

.presets-section {
  background: var(--aura-bg-secondary, #2a2a3e);
  border: 1px solid var(--mood-accent-color, #4a4a6a);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.presets-title {
  color: var(--mood-primary-color, #00d4ff);
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.preset-btn {
  background: var(--aura-bg-color, #1a1a2e);
  border: 2px solid var(--mood-accent-color, #4a4a6a);
  border-radius: 8px;
  padding: 1rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-family: inherit;
  color: var(--mood-text-primary, #e1e1ff);
}

.preset-btn:hover {
  border-color: var(--mood-primary-color, #00d4ff);
  background: var(--aura-bg-secondary, #2a2a3e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.preset-btn.active {
  border-color: var(--mood-primary-color, #00d4ff);
  background: var(--mood-primary-color, #00d4ff);
  color: var(--aura-bg-color, #1a1a2e);
}

.preset-preview {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.preset-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  position: relative;
}

/* Preset Icon Styles */
.hero-classic-icon {
  background: linear-gradient(135deg, var(--mood-primary-color, #00d4ff) 0%, var(--aura-cyan) 100%);
  border-radius: 50%;
}

.split-modern-icon {
  background: linear-gradient(90deg, var(--aura-violet) 0%, var(--aura-violet) 50%, var(--mood-accent-color, #4a4a6a) 50%, var(--mood-accent-color, #4a4a6a) 100%);
  border-radius: 2px;
}

.minimal-glow-icon {
  background: var(--aura-bg-secondary, #2a2a3e);
  border: 2px solid var(--mood-primary-color, #00d4ff);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.fullbleed-cinematic-icon {
  background: linear-gradient(135deg, var(--aura-red) 0%, var(--aura-orange) 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.fullbleed-cinematic-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.framed-ornate-icon {
  background: var(--aura-bg-color, #1a1a2e);
  border: 3px solid var(--mood-primary-color, #00d4ff);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--aura-bg-secondary, #2a2a3e), 0 0 6px rgba(0, 212, 255, 0.3);
}

.preset-label {
  font-size: 0.9em;
  font-weight: 600;
  color: inherit;
  margin: 0;
}

.preset-desc {
  font-size: 0.75em;
  color: var(--mood-text-secondary, #a0a0c0);
  margin: 0;
  line-height: 1.2;
}

/* ===== TIER SYSTEM ===== */

.tier-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tier-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--aura-bg-secondary, #2a2a4e);
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tier-option:hover {
  border-color: var(--mood-accent-color, #4a4a6a);
  background: var(--aura-bg-hover, #3a3a5e);
}

.tier-option.selected {
  border-color: var(--mood-primary-color, #00d4ff);
  background: var(--aura-bg-active, #1a4a5e);
}

.option-preview {
  width: 40px;
  height: 30px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-icon {
  width: 32px;
  height: 24px;
  background: var(--mood-text-secondary, #cccccc);
  border-radius: 2px;
  position: relative;
}

/* Layout Icon Styles */
.hero-icon {
  background: linear-gradient(to bottom, var(--mood-primary-color, #00d4ff) 0%, var(--mood-primary-color, #00d4ff) 40%, var(--mood-text-secondary, #cccccc) 40%);
}

.split-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 2px 0 0 2px;
}

.minimal-icon {
  height: 16px;
  background: var(--mood-text-secondary, #cccccc);
}

/* ===== TIER 4: PALETTE OPTIONS ===== */
.palette-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.palette-families {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.palette-family {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--aura-bg-secondary, #2a2a4e);
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.palette-family:hover {
  border-color: var(--mood-accent-color, #4a4a6a);
  background: var(--aura-bg-hover, #3a3a5e);
}

.palette-family.selected {
  border-color: var(--mood-primary-color, #00d4ff);
  background: var(--aura-bg-active, #1a4a5e);
}

.palette-preview {
  width: 40px;
  height: 24px;
  border-radius: 4px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

/* Palette preview colors */
.neon-preview {
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88);
}

.earth-preview {
  background: linear-gradient(45deg, #8B4513, #228B22, #DAA520);
}

.ocean-preview {
  background: linear-gradient(45deg, #006994, #0099cc, #66ccff);
}

.sunset-preview {
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcd3c);
}

.monochrome-preview {
  background: linear-gradient(45deg, #333333, #666666, #999999);
}

.palette-label {
  font-size: 12px;
  color: var(--mood-text-secondary, #cccccc);
  font-weight: 500;
}

.palette-family.selected .palette-label {
  color: var(--mood-primary-color, #00d4ff);
}

/* ===== TIER SYSTEM ===== */
.tier-option.selected .option-label {
  color: var(--mood-primary-color, #00d4ff);
}

/* Collapsible Tier System */
.collapsible-tier {
  background: var(--aura-bg-secondary, #2a2a4e);
  border: 1px solid var(--mood-accent-color, #4a4a6a);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.collapsible-tier:hover {
  border-color: var(--mood-primary-color, #e1e1ff);
}

/* Tier Header (Always Visible) */
.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background: var(--aura-bg-color, #1a1a2e);
  border-bottom: 1px solid var(--mood-accent-color, #4a4a6a);
  transition: all 0.2s ease;
}

.tier-header:hover {
  background: var(--aura-bg-hover, #3a3a5e);
}

.tier-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mood-primary-color, #e1e1ff);
  margin: 0;
}

.tier-current-selection {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-expand-icon {
  font-size: 0.8rem;
  color: var(--aura-bg-color, #1a1a2e);
  transition: transform 0.3s ease;
}

.collapsible-tier.expanded .tier-expand-icon {
  transform: rotate(180deg);
}

/* Tier Content (Collapsible) */
.tier-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-tier.expanded .tier-content {
  max-height: 800px;
}

/* ===== PREVIEW COMPONENTS ===== */
/* Weight Previews */
.current-weight-preview {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  background: var(--aura-bg-secondary, #2a2a4e);
}

.top-heavy-weight-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 12px;
  height: 6px;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 2px;
}

.balanced-weight-preview::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 2px;
}

.bottom-heavy-weight-preview::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 12px;
  height: 6px;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 2px;
}



.overlay-icon {
  background: var(--mood-text-secondary, #cccccc);
  position: relative;
}

.overlay-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 1px;
  opacity: 0.7;
}

.stack-icon {
  background: var(--mood-text-secondary, #cccccc);
  position: relative;
}

.stack-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--mood-primary-color, #00d4ff);
  border-radius: 2px 2px 0 0;
}

.frame-icon {
  background: var(--aura-bg-color, #1a1a2e);
  border: 2px solid var(--mood-primary-color, #00d4ff);
  border-radius: 2px;
}

.option-label {
  font-size: 0.75em;
  color: var(--mood-text-primary, #e1e1ff);
  margin: 0;
  font-weight: 500;
}

/* ===== MODULAR TIER CONTAINERS ===== */

.modular-tier {
  margin-bottom: 24px;
}

.modular-tier:last-child {
  margin-bottom: 0;
}

.tier-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mood-text-primary, #ffffff);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--mood-accent-color, #4a4a6a);
  border-radius: 2px;
}

/* ===== PRESET-SPECIFIC THEMES ===== */
/* Extracted from cardforge-ui.css to consolidate preset system */

/* Cyberpunk Preset */
.preset-cyberpunk .card-header {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
}

.preset-cyberpunk .card-badge {
  background: #00ffff;
}

.preset-cyberpunk .card-text {
  background: #ff00ff;
}

/* Fantasy Preset */
.preset-fantasy .card-header {
  background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

.preset-fantasy .card-badge {
  background: #f3e8ff;
}

.preset-fantasy .card-text {
  background: #e1d4ff;
}

/* Corporate Preset */
.preset-corporate .card-header {
  background: linear-gradient(45deg, #1f2937, #374151);
}

.preset-corporate .card-badge {
  background: #60a5fa;
}

.preset-corporate .card-text {
  background: #9ca3af;
}

/* Retro Preset */
.preset-retro .card-header {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
}

.preset-retro .card-badge {
  background: #fb7185;
}

.preset-retro .card-text {
  background: #34d399;
}

/* ===== VISUAL LAYOUT PICKER SYSTEM ===== */
/* Extracted from cardforge-ui.css - Visual layout selection UI */

/* Visual Layout Picker - Independent System */
.visual-layout-group {
  margin-top: 1.5rem;
}

.visual-layout-group .layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--aura-bg-secondary, #2a2a3e);
}

.layout-option:hover {
  border-color: var(--mood-accent-color, #4a4a6a);
  transform: translateY(-2px);
}

/* ===== COLLAPSIBLE TIER SYSTEM ===== */

/* Collapsible Tier Container */
.collapsible-tier {
  border: 1px solid var(--mood-accent-color, #4a4a6a);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--aura-bg-color, #1a1a2e);
  overflow: hidden;
  transition: all 0.3s ease;
}

.collapsible-tier:hover {
  border-color: var(--mood-primary-color, #e1e1ff);
}

/* Tier Header (Always Visible) */
.tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  cursor: pointer;
  background: var(--mood-accent-color, #4a4a6a);
  transition: background-color 0.2s ease;
}

.tier-header:hover {
  background: var(--mood-primary-color, #e1e1ff);
}

.tier-header:hover .tier-title,
.tier-header:hover .current-selection-text {
  color: var(--aura-bg-color, #1a1a2e);
}

.tier-title {
  margin: 0;
  font-size: 1rem;
  color: var(--aura-bg-color, #1a1a2e);
  font-weight: 600;
}

/* Current Selection Display */
.tier-current-selection {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.current-palette-preview,
.current-layout-preview,
.current-container-preview,
.current-effect-preview,
.current-weight-preview {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Layout Preview Icons */
.current-layout-preview {
  background: var(--mood-accent-color, #4a4a6a);
  position: relative;
}

.hero-layout-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 6px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 1px;
}

.hero-layout-preview::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  height: 8px;
  background: var(--mood-secondary-color, #a0a0c0);
  border-radius: 1px;
}

.split-layout-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: 7px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 1px;
}

.split-layout-preview::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 7px;
  background: var(--mood-secondary-color, #a0a0c0);
  border-radius: 1px;
}

.minimal-layout-preview::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 50%;
}

/* Container Preview Icons */
.current-container-preview {
  background: var(--mood-accent-color, #4a4a6a);
  position: relative;
}

.masked-container-preview::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 50%;
  border: 1px solid var(--mood-secondary-color, #a0a0c0);
}

.framed-container-preview::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: var(--mood-primary-color, #e1e1ff);
  border: 1px solid var(--mood-secondary-color, #a0a0c0);
  border-radius: 2px;
}

.raw-container-preview::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 1px;
}

/* Effect Preview Icons */
.current-effect-preview {
  background: var(--mood-accent-color, #4a4a6a);
  position: relative;
}

.none-effect-preview::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 50%;
}

.filters-effect-preview::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(45deg, var(--mood-primary-color, #e1e1ff), var(--mood-secondary-color, #a0a0c0));
  border-radius: 2px;
  opacity: 0.8;
}

.borders-effect-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: transparent;
  border: 2px solid var(--mood-primary-color, #e1e1ff);
  border-radius: 2px;
}

.overlays-effect-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 30%, var(--mood-primary-color, #e1e1ff) 70%);
  border-radius: 4px;
  opacity: 0.6;
}

/* Weight Preview Icons */
.current-weight-preview {
  background: var(--mood-accent-color, #4a4a6a);
  position: relative;
}

.top-heavy-weight-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 8px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 2px 2px 0 0;
}

.top-heavy-weight-preview::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 6px;
  right: 6px;
  height: 4px;
  background: var(--mood-secondary-color, #a0a0c0);
  border-radius: 0 0 1px 1px;
}

.balanced-weight-preview::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 1px;
}

.balanced-weight-preview::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 1px;
}

.bottom-heavy-weight-preview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  right: 6px;
  height: 4px;
  background: var(--mood-secondary-color, #a0a0c0);
  border-radius: 1px 1px 0 0;
}

.bottom-heavy-weight-preview::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  height: 8px;
  background: var(--mood-primary-color, #e1e1ff);
  border-radius: 0 0 2px 2px;
}

.current-selection-text {
  font-size: 0.9rem;
  color: var(--aura-bg-color, #1a1a2e);
  font-weight: 500;
}

/* Expand/Collapse Icon */
.tier-expand-icon {
  font-size: 0.8rem;
  color: var(--aura-bg-color, #1a1a2e);
  transition: transform 0.3s ease;
}

.collapsible-tier.expanded .tier-expand-icon {
  transform: rotate(180deg);
}

/* Tier Content (Collapsible) */
.tier-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--aura-bg-color, #1a1a2e);
}

.collapsible-tier.expanded .tier-content {
  max-height: 800px; /* Increased for complex 3-level hierarchies */
  padding: 1rem;
  overflow-y: auto; /* Allow scrolling if content exceeds max-height */
}

/* Palette Levels */
.palette-level {
  margin-bottom: 1.5rem;
}

/* ===== TIER 2: CONTENT ALIGNMENT (3-LEVEL HIERARCHY) ===== */

/* Alignment Section Container */
.alignment-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Alignment Levels */
.alignment-level {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aura-text-color, #e0e0e0);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.variant-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--aura-accent-color, #00d4ff);
  margin: 0 0 0.5rem 0;
  opacity: 0.8;
}

/* Alignment Type Grid */
.alignment-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Weight Options */
.weight-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.weight-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.weight-option:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--aura-accent-color, #00d4ff);
  transform: translateY(-2px);
}

.weight-option.selected {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--aura-accent-color, #00d4ff);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.weight-label {
  font-size: 0.75rem;
  color: var(--aura-text-color, #e0e0e0);
  margin-top: 0.5rem;
  text-align: center;
}

/* Style Options */
.style-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.style-option:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--aura-accent-color, #00d4ff);
  transform: translateY(-2px);
}

.style-option.selected {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--aura-accent-color, #00d4ff);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.style-label {
  font-size: 0.75rem;
  color: var(--aura-text-color, #e0e0e0);
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== ALIGNMENT PREVIEW ICONS ===== */

/* Current Selection Preview */
.current-alignment-preview {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  margin-right: 0.5rem;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.5);
}

.center-alignment-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.left-alignment-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.right-alignment-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

/* Alignment Type Icons */
.alignment-icon {
  width: 32px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  margin-bottom: 0.5rem;
}

.left-align-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.center-align-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.right-align-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

/* ===== WEIGHT DISTRIBUTION PREVIEWS ===== */

.weight-preview {
  width: 32px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  margin-bottom: 0.5rem;
}

/* Top Heavy Previews */
.left-top-heavy-preview::after,
.center-top-heavy-preview::after,
.right-top-heavy-preview::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 16px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.left-top-heavy-preview::after { left: 2px; }
.center-top-heavy-preview::after { left: 50%; transform: translateX(-50%); }
.right-top-heavy-preview::after { right: 2px; }

/* Balanced Previews */
.left-balanced-preview::after,
.center-balanced-preview::after,
.right-balanced-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.left-balanced-preview::after { left: 2px; }
.center-balanced-preview::after { left: 50%; transform: translate(-50%, -50%); }
.right-balanced-preview::after { right: 2px; }

/* Bottom Heavy Previews */
.left-bottom-heavy-preview::after,
.center-bottom-heavy-preview::after,
.right-bottom-heavy-preview::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
}

.left-bottom-heavy-preview::after { left: 2px; }
.center-bottom-heavy-preview::after { left: 50%; transform: translateX(-50%); }
.right-bottom-heavy-preview::after { right: 2px; }

/* ===== STYLE VARIANT PREVIEWS ===== */

.style-preview {
  width: 32px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  margin-bottom: 0.5rem;
}

/* Minimal Style */
.minimal-style-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 2px;
  background: var(--aura-accent-color, #00d4ff);
}

/* Padded Style */
.padded-style-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 8px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 2px;
  border: 2px solid rgba(0, 212, 255, 0.3);
}

/* Compact Style */
.compact-style-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 12px;
  background: var(--aura-accent-color, #00d4ff);
  border-radius: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .alignment-type-grid,
  .weight-options,
  .style-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .alignment-level {
    padding: 0.75rem;
  }
  
  .weight-option,
  .style-option {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .alignment-type-grid,
  .weight-options,
  .style-options {
    grid-template-columns: 1fr;
  }
}
