/* app/assets/stylesheets/design_groups.css */
/* Design Groups - All styling consolidated */

/* ==========================================================================
   PAGE LAYOUT STYLES (for designs index)
   ========================================================================== */
  
  .search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
  }
  
  .search-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
  }
  
  .search-form.hidden {
    display: none;
  }
  
  .search-input-group {
    flex: 1;
    position: relative;
  }
  
  .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
  }
  
  .search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 2;
  }
  
  .search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
  }
  
  .filter-group {
    display: flex;
    flex-direction: column;
  }
  
  .filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
  }
  
  .filter-select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
  }
  
  .filter-select:focus {
    outline: none;
    border-color: #007bff;
  }
  
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
  }
  
  .active-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.875rem;
  }
  
  .remove-filter {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
  }
  
  .remove-filter:hover {
    color: #d32f2f;
  }
  
  .search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  .search-results-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #212529;
  }
  
  .search-results-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
  }
  
  .clear-search {
    color: #6c757d;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
  }
  
  .clear-search:hover {
    color: #007bff;
  }
  
  /* Image preview styles */
  .preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
  }
  
  /* Status indicators */
  .preview-status {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
  }
  
  .status-indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
  }
  
  .status-success {
    background-color: #28a745;
  }
  
  .status-warning {
    background-color: #ffc107;
    color: #212529;
  }
  
  .status-error {
    background-color: #dc3545;
  }
  
  /* Placeholder styles */
  .preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
  }
  
  .placeholder-content {
    text-align: center;
    padding: 1rem;
  }
  
  .placeholder-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
  }
  
  .placeholder-text {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
  }
  
  .placeholder-subtext {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
  }
  
  /* Tags */
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .tag:hover {
    background-color: #dee2e6;
  }
  
  .tag-more {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #6c757d;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .empty-state-content {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
  }
  
  .empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.5rem;
  }
  
  .empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
  }
  
  .empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* ==========================================================================
     DESIGN GROUP HEADER
     ========================================================================== */
  
  .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
  }
  
  .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
  }
  
  .breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .breadcrumb-link:hover {
    color: #0056b3;
    text-decoration: underline;
  }
  
  .breadcrumb-current {
    color: #495057;
    font-weight: 500;
  }
  
  .group-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .group-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
  }
  
  /* ==========================================================================
     HERO DESIGN SECTION
     ========================================================================== */
  
  .hero-design-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .hero-image-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
  }
  
  .hero-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
  }
  
  .hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
  }
  
  .hero-design-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
  }
  
  .hero-design-info h3 {
    margin: 0 0 1rem 0;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .hero-design-info p {
    margin: 0 0 1.5rem 0;
    color: #495057;
    line-height: 1.6;
  }

  .form-section {
    margin-top: 50px;
  }
  
  /* ==========================================================================
     CONTENT TABS
     ========================================================================== */
  
  .content-tabs {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .tab-buttons {
    display: flex;
    gap: 1rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
  }
  
  .tab-btn:hover {
    color: #007bff;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* ==========================================================================
     DESIGN GRID
     ========================================================================== */
  
  .design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .design-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }
  
  .design-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  
  .design-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
  }
  
  .design-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }
  
  .design-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .design-card:hover .design-preview-img {
    transform: scale(1.05);
  }
  
  .design-content {
    padding: 1rem;
  }
  
  .design-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .design-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .design-title a:hover {
    color: #007bff;
  }
  
  .design-meta {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
  }
  
  .design-description {
    margin: 0 0 1rem 0;
    color: #495057;
    line-height: 1.4;
    font-size: 0.9rem;
  }
  
  .design-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .design-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  
  .design-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .design-group-actions {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .hero-indicator {
    background: #ffeaa7;
    color: #2d3436;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* ==========================================================================
     RESPONSIVE DESIGN
     ========================================================================== */
  
  @media (max-width: 768px) {
    .search-form {
      flex-direction: column;
      align-items: stretch;
    }
    
    .search-filters {
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }
    
    .search-results-header {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
    
    .design-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    
    .design-actions {
      flex-direction: column;
    }
    
    .empty-state-actions {
      flex-direction: column;
      align-items: center;
    }
    
    .group-header-content {
      flex-direction: column;
      align-items: stretch;
    }
    
    .group-actions {
      justify-content: center;
    }
    
    .hero-design-section {
      grid-template-columns: 1fr;
    }
    
    .tab-buttons {
      flex-wrap: wrap;
    }
  }
  
  @media (max-width: 480px) {
    .design-grid {
      grid-template-columns: 1fr;
    }
    
    .search-filters {
      grid-template-columns: 1fr;
    }
    
    .empty-state {
      padding: 2rem 1rem;
    }
  }
