/* ===== NEURAL PROJECTS TABLE STYLING ===== */
/* Integrated with existing GDG Quantum theme system */

/* ===== TABLE CONTAINER ===== */
.projects-table-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 10;
  padding: 2rem 0;
}

/* ===== TABLE HEADER ===== */
.projects-table-header {
  margin-bottom: 3rem;
  text-align: center;
}

.projects-table-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-hero-highlight);
  letter-spacing: -0.02em;
  transition: var(--theme-transition);
}

.projects-table-subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  transition: var(--theme-transition);
}

/* ===== SEARCH AND FILTERS ===== */
.projects-search-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.projects-search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.projects-search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--theme-transition);
  outline: none;
  font-family: inherit;
  backdrop-filter: blur(10px);
}

.projects-search-input:focus {
  border-color: var(--neural-primary);
  background: var(--hover-bg);
  box-shadow: 0 0 20px var(--glow-color);
}

.projects-search-input::placeholder {
  color: var(--text-muted);
}

/* ===== FILTER SECTION ===== */
.projects-filter-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.projects-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.projects-filter-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.projects-filter-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
  min-width: 60px;
  transition: var(--theme-transition);
}

/* ===== FILTER BUTTONS ===== */
.projects-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: 20px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--theme-transition);
  font-family: inherit;
  outline: none;
  position: relative;
  backdrop-filter: blur(10px);
}

.projects-filter-btn:hover {
  background: var(--hover-bg);
  border-color: var(--border-hover);
  color: var(--text-secondary);
  transform: translateY(-1px);
}

.projects-filter-btn.active {
  background: var(--neural-accent);
  border-color: var(--neural-secondary);
  color: var(--text-highlight);
  box-shadow: 0 0 15px var(--glow-color);
}

.projects-filter-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--neural-glow), 
    transparent, 
    var(--neural-glow));
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
}

/* ===== TECHNOLOGY FILTER BUTTONS ===== */
.tech-filter {
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--theme-transition);
  border: 1px solid;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

/* Frontend Technologies - Blue */
.tech-filter.frontend {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}

.tech-filter.frontend:hover,
.tech-filter.frontend.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93C5FD;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Backend Technologies - Green */
.tech-filter.backend {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

.tech-filter.backend:hover,
.tech-filter.backend.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
  color: #6EE7B7;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

/* AI/ML Technologies - Purple */
.tech-filter.ai {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #A78BFA;
}

.tech-filter.ai:hover,
.tech-filter.ai.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.6);
  color: #C4B5FD;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* DevOps/Infrastructure - Orange */
.tech-filter.devops {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #FB923C;
}

.tech-filter.devops:hover,
.tech-filter.devops.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.6);
  color: #FDBA74;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

/* Database Technologies - Cyan */
.tech-filter.database {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22D3EE;
}

.tech-filter.database:hover,
.tech-filter.database.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
  color: #67E8F9;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Payment/Services - Pink */
.tech-filter.services {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
  color: #F472B6;
}

.tech-filter.services:hover,
.tech-filter.services.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.6);
  color: #F9A8D4;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

/* ===== CLEAR FILTERS BUTTON ===== */
.projects-clear-filters {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border-secondary);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--theme-transition);
  font-family: inherit;
  outline: none;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.projects-clear-filters.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.projects-clear-filters:hover {
  background: rgba(255, 60, 60, 0.1);
  border-color: rgba(255, 60, 60, 0.3);
  color: #FF6B6B;
}

/* ===== FILTER STATUS INDICATOR ===== */
.projects-filter-status {
  position: absolute;
  top: -2rem;
  left: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--theme-transition);
}

.projects-filter-status.active {
  opacity: 1;
  transform: translateY(-5px);
}

/* ===== PROJECTS TABLE ===== */
.projects-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(20px);
  transition: var(--theme-transition);
}

.projects-table thead {
  background: var(--bg-secondary);
}

.projects-table th {
  padding: 1.5rem 1.25rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-secondary);
  cursor: pointer;
  transition: var(--theme-transition);
  position: relative;
}

.projects-table th:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
}

.projects-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neural-primary), var(--neural-secondary));
  transition: width 0.4s ease;
}

.projects-table th:hover::after {
  width: 100%;
}

/* ===== PROJECT ROWS ===== */
.project-row {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border-bottom: 1px solid var(--border-secondary);
  position: relative;
}

.project-row:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-color);
  border-left: 3px solid var(--neural-primary);
  margin-left: -3px;
}

.projects-table td {
  padding: 1.5rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-secondary);
  transition: var(--theme-transition);
}

/* ===== PREVIEW CELL ===== */
.preview-cell {
  width: 140px;
}

.project-preview {
  width: 120px;
  height: 80px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.project-preview:hover {
  transform: scale(1.05);
  border-color: var(--border-hover);
  box-shadow: 0 8px 25px var(--glow-color);
}

.preview-content {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.project-preview:hover .preview-content {
  opacity: 1;
  transform: scale(1.1);
  color: var(--text-primary);
}

.video-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--neural-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--bg-primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-preview:hover .video-overlay {
  opacity: 1;
  transform: scale(1.1);
}

.video-overlay::after {
  content: '▶';
}

/* ===== PROJECT INFO ===== */
.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  transition: var(--theme-transition);
}

.project-info p {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--text-secondary);
  transition: var(--theme-transition);
}

/* ===== TECH STACK ===== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 200px;
}

.tech-item {
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Frontend Tech Items - Blue */
.tech-item.frontend {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93C5FD;
}

.tech-item.frontend:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Backend Tech Items - Green */
.tech-item.backend {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #6EE7B7;
}

.tech-item.backend:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* AI/ML Tech Items - Purple */
.tech-item.ai {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #C4B5FD;
}

.tech-item.ai:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* DevOps Tech Items - Orange */
.tech-item.devops {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #FDBA74;
}

.tech-item.devops:hover {
  background: rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* Database Tech Items - Cyan */
.tech-item.database {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #67E8F9;
}

.tech-item.database:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* Services Tech Items - Pink */
.tech-item.services {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #F9A8D4;
}

.tech-item.services:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
  transition: var(--theme-transition);
}

.status-production {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22C55E;
}

.status-development {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3B82F6;
}

.status-alpha {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #F97316;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== TIMELINE INFO ===== */
.timeline-info {
  font-size: 0.9rem;
}

.timeline-duration {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  transition: var(--theme-transition);
}

.timeline-date {
  opacity: 0.6;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: var(--theme-transition);
}

/* ===== COMPLEXITY DISPLAY ===== */
.complexity-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.complexity-visual {
  display: flex;
  gap: 2px;
}

.complexity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-secondary);
  transition: all 0.3s ease;
}

.complexity-dot.active {
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.complexity-score {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--theme-transition);
}

/* ===== PROJECT LINKS ===== */
.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(10px);
}

.project-link:hover {
  background: var(--hover-bg);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow-color);
}

/* ===== NEURAL GLOW EFFECT ===== */
.neural-glow {
  position: relative;
}

.neural-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--neural-glow), 
    transparent, 
    var(--neural-glow));
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.project-row:hover .neural-glow::after {
  opacity: 1;
}

/* ===== LOADING ANIMATIONS ===== */
.project-row {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.project-row:nth-child(1) { animation-delay: 0.1s; }
.project-row:nth-child(2) { animation-delay: 0.2s; }
.project-row:nth-child(3) { animation-delay: 0.3s; }
.project-row:nth-child(4) { animation-delay: 0.4s; }
.project-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== DARK THEME ENHANCEMENTS ===== */
[data-theme="dark"] .projects-table-title {
  color: #FFFFFF !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.2);
  animation: company-glow-pulse 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .projects-table-subtitle {
  color: #E5E5E5 !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .tech-stack {
    max-width: 150px;
  }
  
  .project-links {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .projects-search-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .projects-filter-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .projects-table-container {
    padding: 1rem 0;
  }
  
  .projects-table-title {
    font-size: 2rem;
  }
  
  .projects-table th,
  .projects-table td {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .preview-cell {
    width: 100px;
  }
  
  .project-preview {
    width: 80px;
    height: 60px;
  }
  
  .tech-stack {
    max-width: 120px;
  }
  
  .tech-item {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .projects-search-input-wrapper {
    max-width: none;
  }
  
  .projects-filter-controls {
    gap: 0.3rem;
  }
  
  .projects-filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .tech-filter {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.projects-table,
.project-row,
.project-preview,
.tech-item {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .project-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .status-dot {
    animation: none;
    opacity: 0.8;
  }
  
  .projects-filter-btn,
  .tech-filter,
  .project-link,
  .project-preview {
    transition: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .projects-table {
    border-width: 2px;
  }
  
  .projects-filter-btn.active,
  .tech-filter.active {
    border-width: 2px;
  }
  
  .status-badge {
    border-width: 2px;
  }
}