/* ========================================
   COMPONENTS
   Extracted from style.css in Session 168-C
   Source lines: 328-1708
======================================== */
/* ============================================
   UNIFIED FILTER BAR COMPONENT
   Consolidated from .homepage-filter-bar and .generator-filter-bar
   Used on: Homepage, Generator Pages, etc.
   ============================================ */

/* Base filter bar - shared properties (transparent for all pages) */
.content-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    margin: 0 auto;
    max-width: 1600px;
    width: 100%;
    border-bottom: 1px solid var(--border-lighter);
    background: transparent;
}

/* Tabs container */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Individual tab */
.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-900);
    background-color: transparent;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.filter-tab:hover {
    color: var(--gray-900);
    background-color: var(--tab-hover-bg);
    text-decoration: none;
}

/* Active tab - Dark pill style (Pexels-style) */
.filter-tab.active {
    color: var(--white);
    background-color: var(--tab-active-bg);
    font-weight: 600;
}

.filter-tab.active:hover {
    background-color: var(--tab-active-bg);
    color: var(--white);
}

/* Focus state for accessibility (WCAG 2.1 Level AA) */
.filter-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--tab-active-bg);
}

/* Actions container (dropdowns, buttons) */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px 20px;
    }

    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: var(--font-size-small);
    }

    .filter-actions {
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .content-filter-bar {
        padding: 12px 16px;
    }

    .filter-tabs {
        gap: 4px;
    }

    .filter-tab {
        padding: 8px 12px;
        font-size: var(--font-size-xs);
    }
}

.card {
  border: none;
  background-color: transparent;
}

.image-container {
  position: relative;
}

/* Enhanced faded style for unapproved comments */
.faded {
  opacity: 0.6;
  background-color: #f8f9fa;
  border-left: 3px solid #ffc107;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  color: #6c757d;
  font-style: italic;
}

/* Enhanced approval message styling */
.approval {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-top: 10px;
  font-weight: 500;
  display: inline-block;
}

/* ===== HERO SECTION STYLES ===== */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.author-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem 0.25rem 0;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.date-text {
  opacity: 0.9;
}


/* ===== SIDEBAR STYLES ===== */
.sidebar-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.prompt-metadata .fa-calendar-alt {
  margin: 0 2px 0 4px;
}

/* ===== TAGS STYLES ===== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-800);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tag-badge:hover {
  background: var(--gray-300);
  color: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== COMMENTS STYLES ===== */
/* This the label above the comment field on the detail list page */
#commentForm .form-label {
  display: none;
}

.comment-card {
  background: #fff;
  border: 2px solid var(--main-border-color);
  border-radius: 8px;
}

.comment-form {
  margin-top: 1rem;
}

.posting-as {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== Copy Button Styles ===== */
.copy-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  color: var(--gray-700);
  border-color: var(--gray-400);
  font-weight: 500;
}

.copy-btn:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--gray-900);
  border-color: var(--gray-600);
}

.copy-btn i {
  font-size: 0.75rem;
}

.btn-success:focus {
  background-color: #198754;
}

/* ===== MASONRY LAYOUT - FLEXBOX COLUMN APPROACH ===== */
.masonry-container {
  max-width: 1600px;
  margin: 0 auto;  /* Center align content */
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;  /* Ensure padding doesn't cause overflow */
}

/* Masonry grid flexbox layout */
.masonry-grid {
  display: flex;
  gap: 15px;
  width: 100%;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.masonry-item {
  display: block;
  width: 100%;
  background: none;
  border-radius: 8px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.masonry-item.new-item {
  animation: slideInFade 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@keyframes slideInFade {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.prompt-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  width: 100%;
  height: fit-content;
}

/* .prompt-card:hover removed per Phase J.1 Round 5 - flat design, no hover effects */

/* Image wrapper */
.image-wrapper {
  position: relative;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Clickable link overlay */
.card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  text-decoration: none;
}

/* Overlay styles - Bottom gradient only */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 90%,
      rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* .prompt-card:hover .card-overlay removed per Phase J.1 Round 5 - flat design */

/* Overlay content */
.overlay-top {
  display: flex;
  justify-content: flex-start;
  opacity: 0;
}

.overlay-bottom {
  display: flex;
  align-items: center;
  opacity: .9;
  position: absolute;
  height: 40px;
  width: 100%;
  bottom: 5px;
  padding: 0 10px 0 20px;
  z-index: 99;
}

.user-info {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 4px 8px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
}

.platform-info {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.platform-info i {
  margin-right: 4px;
}

/* View Count Badge - Top Left Corner (Phase G Part B) */
.view-count-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.view-count-badge i {
  font-size: 0.75rem;
}

.heart-counter {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  width: 80px;
  margin-left: auto;
  margin-right: 20px;
}

.heart-counter i {
  margin-right: 4px;
}

/* Save to Collection button on cards */
.save-to-collection-btn {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: white;
}

.save-to-collection-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* DEF-198 — owner-only remove-from-collection (collection detail page).
   Bespoke by design (investigation verdict Q4): NOT shared with bulk-gen's
   .is-discarded (that dim is .prompt-image-slot-scoped and unshareable).
   New class names only — deliberately zero interaction with either
   .prompt-card definition (DEF-196 duplicate stays untouched). */
.collection-remove-btn {
  appearance: none;
  position: absolute; /* DEF-199B — top-right, my-gen placement */
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6; /* above .card-link (5); same layer as the pending label */
  transition: background-color 0.2s ease;
}

.collection-remove-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.collection-remove-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.collection-remove-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Fade the MEDIA only — the card-overlay (and this button, which lives
   inside it) stays full-opacity so the undo control remains clearly
   visible and clickable. Card keeps its exact footprint: no reflow. */
.prompt-card .image-wrapper img,
.prompt-card .image-wrapper video {
  transition: opacity 0.25s ease;
}

.prompt-card.pending-removal .image-wrapper img,
.prompt-card.pending-removal .image-wrapper video {
  opacity: 0.35;
}

.prompt-card .pending-removal-label {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6; /* above .card-link (5) and the draft overlay (1) */
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  width: 80%;
  max-width: calc(100% - 24px); /* DEF-199B — longer copy wraps on narrow cards */
  text-align: center;
  pointer-events: none; /* label never intercepts the card link or button */
}

.pending-removal-label-hint {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.prompt-card.pending-removal .pending-removal-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* DEF-199B — while pending the WHOLE card is the undo target */
.prompt-card.pending-removal,
.prompt-card.pending-removal .card-link {
  cursor: pointer;
}

/* DEF-199B — top gradient on remove-control cards only: gives the top-right control guaranteed contrast on light images. */
.prompt-card.has-remove-control .card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.5) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .collection-remove-btn,
  .prompt-card .image-wrapper img,
  .prompt-card .image-wrapper video {
    transition: none;
  }
}

/* Collections Modal Styles */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .collections-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    /* Disable video autoplay on mobile to save data */

    .video-thumbnail {
        opacity: 1 !important;
    }

    .video-play-icon {
        opacity: 1 !important;
    }

    /* Add click-to-play on mobile */
    .video-card {
        cursor: pointer;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .video-thumbnail {
        opacity: 1 !important;
    }
}

/* ===== LOAD MORE BUTTON STYLING ===== */
.load-more-container {
  margin: 60px auto;
  max-width: 300px;
}

#load-more-btn {
  background: var(--gray-800);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--gray-900);
}

#loading-spinner {
  color: #666;
  font-size: 1.1rem;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  position: sticky;
  top: 20px;
  z-index: 10;
}

.button-group {
  background: none;
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0;
  justify-content: right;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
}

.action-btn:hover {
  background: var(--gray-200);
  text-decoration: none;
  transform: translateY(-1px);
  color: var(--gray-900);
}

.action-btn i {
  font-size: var(--font-size-icon);
}

/* Like button specific styles */
.btn-like {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0 16px;
  min-width: auto;
  font-weight: 700;
}

.btn-like:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-like.liked {
  background: var(--gray-800);
  color: white;
}

.btn-like.liked:hover {
  background: var(--gray-900);
}

.like-count {
  margin-left: 4px;
  font-weight: 600;
}

/* ===== MODERN FORM STYLING ===== */
/* Form Container */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #f1f3f4;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.form-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Field Groups */
.field-group {
  margin-bottom: 24px;
}

/* Labels */
.field-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  border: 2px solid var(--main-border-color);
}

/* FIXED: Input Fields - Basic Styling with corrected syntax */
.edit-form .form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--main-border-color);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-family: inherit;
  background: var(--gray-100);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-form .form-control:focus {
  outline: none;
  border-color: var(--main-blue);
  box-shadow: var(--focus-ring);
  background: #ffffff;
}

/* Form input classes from forms.py */
.modern-input,
.modern-textarea,
.modern-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-lg);
  font-size: 16px;
  transition: all 0.2s ease;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-select:focus {
  border-color: var(--main-blue);
  box-shadow: var(--focus-ring);
}

/* Help Text */
.field-help {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}

/* Button Styling */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-primary {
  background: var(--main-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--main-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

/* DEF-202-E: pin :active + :disabled so Bootstrap's blue (_buttons.scss) can't
   bleed through. Neutral gray family, matching the button's base/hover. Landed
   here (the cascade-winning file per Step 0.4), not _design-tokens.css. (S205 AA-2) */
.btn-primary:active {
  background-color: var(--gray-900);
  border-color: var(--gray-900);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--gray-300);
  border-color: var(--gray-300);
  color: var(--gray-600);
  opacity: 1;  /* override Bootstrap's .disabled opacity so the gray reads as intended */
}

.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

/* Red button - mostly used when the user wants to delete a prompt or comment */
.btn-danger {
  border-radius: 100px;
  padding: 14px 28px;
}

/* Small buttons - mainly for the comment form */
.btn-small {
  font-size: var(--font-size-small);
  padding: 10px 10px;
  min-width: 96px;
  background-color: var(--gray-100);
  color: var(--main-blue-hover);
}

.btn-small:hover {
  background-color: var(--main-blue);
}

/* ========================================
   UNIFIED OUTLINE BUTTON - Shared styling for
   Follow, Copy, and Affiliate buttons
   ======================================== */
.btn-outline-standard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: var(--text-dark, #212529);
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline-standard:hover {
  background-color: var(--gray-100, #f5f5f5);
  border-color: var(--gray-400, #a3a3a3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-dark, #212529);
}

.btn-outline-standard:focus {
  outline: 2px solid var(--gray-500, #737373);
  outline-offset: 2px;
}

.btn-outline-standard:active {
  background-color: var(--gray-100, #f5f5f5);
  transform: translateY(1px);
}

.btn-outline-standard i {
  font-size: 0.75rem;
}

/* Popular Tags Styling */
.popular-tags {
  margin-top: 12px;
}

.popular-tags-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: block;
}

.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  background: var(--gray-100);
  color: var(--main-blue);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.tag-option:hover {
  background: var(--main-blue);
  color: white;
  transform: translateY(-1px);
}

/* Modern Button Classes */
.modern-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.modern-btn-primary {
  background: var(--main-blue);
  color: white;
}

.modern-btn-primary:hover {
  background: var(--main-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.modern-btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.modern-btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

/* Footer styling */
.modern-form-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.modern-form-footer-text {
  color: #6b7280;
  font-size: 0.95rem;
}

/* ===== FILE UPLOAD STYLING ===== */
/* Current Image Display */
.current-image {
  margin-bottom: 16px;
}

.current-image-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.current-image-preview {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.current-image-preview:hover {
  border-color: var(--main-blue);
  transform: scale(1.02);
}

/* File Upload Area */
.file-upload-area {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius-lg);
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #6b7280;
  font-weight: 500;
  min-height: 80px;
}

.file-upload-label:hover {
  border-color: var(--main-blue);
  background: var(--gray-100);
  color: var(--main-blue);
}

.file-upload-label i {
  font-size: var(--font-size-lg);
  margin-right: 12px;
  color: var(--gray-400);
}

.file-upload-label:hover i {
  color: var(--main-blue);
}

/* ===== SELECT DROPDOWN WITH ARROW ===== */
.edit-form .modern-select-dropdown,
select.modern-select-dropdown {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 30px;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.edit-form .modern-select-dropdown:focus,
select.modern-select-dropdown:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Fallback for specific select element */
select#id_ai_generator {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ===== TAG FILTER HEADER STYLES ===== */
.tag-filter-header {
  background: var(--gray-100);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.tag-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.tag-name {
  color: var(--main-blue);
  font-weight: 700;
}

.tag-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  margin: 20px 0;
}

.tag-filter-header .btn {
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
  color: var(--main-blue-hover);
  border-color: var(--main-blue-hover);
  font-weight: 600;
}

.tag-filter-header .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background-color: var(--main-blue);
  color: white;
  border-color: var(--main-blue);
}

/* ===== HERO SECTION WITH ORGANIC BLUR EFFECT ===== */
.hero-section {
  padding: 20px 0 0px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  height: auto;
  padding-top: 50px;
  min-height: 787px;
}

/* Primary organic blur shape */
.hero-section::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 16%;
  z-index: -10;
  width: 38%;
  height: 60%;
  filter: blur(80px);
  background: conic-gradient(
      from 45deg at 97% 50%,
      rgba(99, 102, 241, 0.3) 0deg,
      rgba(168, 85, 247, 0.25) 120deg,
      rgba(244, 114, 182, 0.2) 240deg,
      rgba(59, 130, 246, 0.3) 360deg);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: rotate(15deg);
  animation: float 20s ease-in-out infinite;
}

/* Floating animation for organic movement */
@keyframes float {
  0%, 100% {
      transform: rotate(15deg) translateY(0px) scale(1);
  }
  25% {
      transform: rotate(18deg) translateY(-10px) scale(1.02);
  }
  50% {
      transform: rotate(12deg) translateY(-5px) scale(0.98);
  }
  75% {
      transform: rotate(20deg) translateY(-15px) scale(1.01);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 2rem;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-brand {
  background: linear-gradient(135deg, var(--main-blue-hover) 0%, var(--main-blue) 40%, var(--main-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: var(--black);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: var(--gray-800);
  color: white;
  text-decoration: none;
}

.hero-btn-secondary {
  background: white;
  color: var(--gray-800);
  border: 2px solid var(--gray-800);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: var(--gray-800);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--gray-800);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== HERO IMAGE GALLERY STYLES ===== */
.hero-gallery-container {
  overflow: hidden;
  position: relative;
}

.hero-image-grid {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  height: 100%;
  width: 100%;
  align-items: flex-start;
}

.image-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: none;
}

/* Column layouts */
.column-1 {
  padding-top: 2rem;
  order: 3;
}

.column-2 {
  padding-top: 10em;
  order: 2;
}

.column-2 .image-item:last-child,
.column-1 .image-item:last-child {
  margin-bottom: 0;
}

.column-2 .image-item:first-child {
  margin-top: 0;
}

.column-3 {
  padding-top: 22rem;
  order: 1;
}

.column-1, .column-2, .column-3 {
  width: 30%;
}

/* Image item styling */
.image-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(55, 65, 81, 0.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  aspect-ratio: 2 / 3;
  max-height: 245px;
  margin: .4em 0;
}

.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image overlay for subtle border effect */
.image-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.1);
}

footer {
  background: #202020;
  box-shadow: none;
  width: 100%;
  color: var(--white, #ffffff);
}

footer a,
footer a:visited,
footer a:hover,
footer a:focus {
  color: var(--white, #ffffff);
}

/* ===== MODALS ===== */
.modal-footer {
  justify-content: center;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large screens adjustments */
@media (max-width: 1200px) {
  .hero-section {
      padding: 60px 0;
      min-height: 617px;
  }

  .hero-description {
      max-width: none;
  }

  .hero-section::before {
      top: 8%;
  }

  .hero-btn-secondary {
      display: none;
  }

  .hero-gallery-container {
      margin-left: 1rem;
  }

  .column-2 {
      padding-top: 0em
  }

  .column-3 {
      padding-top: 7rem
  }

  .hero-content {
      padding-right: 0;
  }

  .column-1 {
      display: none;
  }

  .column-2, .column-3 {
      width: 40%;
  }
}

/* Medium screens (991px and below) */
@media (max-width: 991px) {
  .hero-section {
      margin-top: 60px;
      overflow: unset;
      min-height: auto;
      padding: 0;
  }

  .hero-main-title {
      font-size: 2.5rem;
  }

  .hero-content {
      padding-right: 0;
      text-align: center;
      margin-bottom: 3rem;
  }

  .hero-actions {
      justify-content: center;
  }

  .hero-gallery-container-shell {
      display: none;
  }
}

@media (max-width: 768px) {
  .form-actions {
      flex-direction: column;
  }
}

@media (max-width: 500px) {
  .hero-section {
      min-height: 450px;
  }
}
