/**
 * Nick's Software - Components CSS
 * Contains: Buttons, dropdown icon colors
 */

/* ===== Buttons ===== */
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--accent-bright, #60a5fa);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Dropdown Icon Colors ===== */
.dropdown-icon.flagship {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.dropdown-icon.manufacturing {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.dropdown-icon.business {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.dropdown-icon.iot {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.dropdown-icon.healthcare {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

/* ===== Screenshots Gallery ===== */
.screenshots {
  background: var(--bg-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.screenshot-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  text-align: center;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  padding: 16px;
  font-size: 16px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent-light);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Screenshots Responsive */
@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-card img {
    height: 140px;
  }
  .lightbox-nav {
    padding: 12px 16px;
    font-size: 20px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-card img {
    height: 200px;
  }
}
