/* === STUDIO GALLERY BOARD (Airtable Style) === */

/* The Grid Container */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

/* The Card (Project) */
.gallery-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--brand-gold, #b08a48);
}

/* Cover Image Area */
.card-cover {
  height: 140px;
  background-color: #f8f9fa;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #eee;
  position: relative;
}
.card-cover.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2rem;
}

/* Card Content */
.card-body-custom {
  padding: 12px 16px;
  flex: 1;
}

.card-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Status Badges (Pill style) */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.status-planning { background: #fff3cd; color: #856404; }
.status-research { background: #f8d7da; color: #721c24; }
.status-underway { background: #d1e7dd; color: #0f5132; }
.status-done { background: #e2e3e5; color: #383d41; }

/* Mini Task Chips */
.task-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.task-chip {
  background: #f0f2f5;
  color: #495057;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  border: 1px solid #dee2e6;
}

/* "Create New" Card */
.create-card {
  border: 2px dashed #b08a48;
  background: #fffdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  cursor: pointer;
  border-radius: 8px;
  color: #b08a48;
  font-weight: 600;
  transition: background 0.2s;
}
.create-card:hover {
  background: #fff8e6;
}

/* === THE MODAL (The Board Popup) === */
.project-modal-cover {
  height: 200px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-modal-body {
  padding: 24px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  /* ✅ FORCE DARK TEXT */
  color: #1a1a1a !important;
}

/* ✅ FORCE INPUT VISIBILITY & LAYOUT */
.task-row-enforced {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    padding: 0.5rem !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.task-text-enforced {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    display: inline-block !important;
    font-size: 1rem !important;
}

/* Force placeholder text to be visible (grey) */
.project-modal-body input::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}

/* Force rendered task text to be black */
.task-row, .task-row div, .task-row span {
    color: #000000 !important;
}
.task-check {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-gold);
}
/* Ensure the new task input field text is dark */
#newTaskInput {
  color: #212529;
}
/* === NUCLEAR VISIBILITY FIX === */
/* Forces all text inside the Project Modal to be BLACK */
.project-modal-body,
.project-modal-body label,
.project-modal-body input,
.project-modal-body select,
.project-modal-body .task-row,
.project-modal-body .task-row span,
.project-modal-body h6 {
    color: #000000 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Force the Input Field specifically */
#newTaskInput {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

/* Force the Task List items */
.task-row span {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}
/* ✅ RESPONSIVE GRID LAYOUT */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem; /* Space between cards */
    padding-bottom: 3rem;
    width: 100%;
}

/* Mobile Adjustments (Under 768px) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Force 1 column on mobile */
        gap: 1rem;
    }
}
/* === KANBAN BOARD LAYOUT === */
.kanban-board {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.kanban-column {
    flex: 1 1 0px; /* Equal width */
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    min-height: 200px;
}

.kanban-header {
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

/* Force Task Cards to Look Good */
.task-row-enforced {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem !important;
}

/* ✅ FORCE CLICKABLE BUTTONS */
/* Ensures buttons have size even if icons fail to load */
.move-task-btn, .remove-task-btn {
    min-width: 28px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important; /* Ensure they sit on top */
}

/* Hover effect to confirm interactivity */
.move-task-btn:hover { background-color: rgba(13, 110, 253, 0.1) !important; border-radius: 4px; }
.remove-task-btn:hover { background-color: rgba(220, 53, 69, 0.1) !important; border-radius: 4px; }

/* === MOBILE STACKING (The fix you requested) === */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column; /* Stack columns vertically */
    }
    
    .kanban-column {
        width: 100%;
        margin-bottom: 1rem;
    }
}