/**
 * ========================================================================
 * Creative Themes Module - Styling
 * ========================================================================
 * 
 * Visual design for the unified theme selection system
 * Organized by categories with thumbnail previews
 */

/* Module Container */
#creative-themes-module {
  background: var(--card-bg, #ffffff);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #e0e0e0);
}

/* Module Header */
#creative-themes-module .module-header {
  margin-bottom: 24px;
}

#creative-themes-module .module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color, #2c3e50);
  margin: 0 0 8px 0;
}

#creative-themes-module .module-icon {
  font-size: 1.5rem;
}

#creative-themes-module .module-description {
  color: var(--text-secondary, #6c757d);
  font-size: 0.9rem;
  margin: 0;
}

/* Theme Categories */
.theme-categories {
  display: grid;
  gap: 32px;
  margin-bottom: 24px;
}

.theme-category {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light, #f0f0f0);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color, #3498db);
}

.category-icon {
  font-size: 1.2rem;
}

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color, #2c3e50);
}

/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Theme Cards */
.theme-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid var(--border-light, #f0f0f0);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color, #3498db);
}

.theme-card.selected {
  border-color: var(--primary-color, #3498db);
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
}

.theme-card.popular::before {
  content: '✨';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.2rem;
  z-index: 2;
}

/* Theme Thumbnail */
.theme-thumbnail {
  position: relative;
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.theme-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.theme-card:hover .theme-thumbnail img {
  transform: scale(1.05);
}

.theme-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-card:hover .theme-overlay {
  opacity: 1;
}

.theme-icon {
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Theme Label */
.theme-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #2c3e50);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.popular-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Selected Theme Info */
.selected-theme-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  margin-top: 24px;
}

.theme-preview {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-preview-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.theme-details h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.theme-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .theme-card {
    padding: 12px;
  }
  
  .theme-thumbnail {
    height: 60px;
  }
  
  .theme-preview {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .theme-preview-image {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .theme-label {
    font-size: 0.8rem;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  #creative-themes-module {
    background: var(--card-bg-dark, #2c3e50);
    border-color: var(--border-dark, #34495e);
  }
  
  .theme-category {
    background: var(--bg-secondary-dark, #34495e);
    border-color: var(--border-dark, #4a5568);
  }
  
  .theme-card {
    background: var(--card-bg-dark, #2c3e50);
    border-color: var(--border-dark, #4a5568);
    color: var(--text-primary-dark, #ffffff);
  }
  
  .theme-card.selected {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }
} 