/* =========================================
   CLIENT ACCESS & ADMIN PORTAL STYLES - SECURE VERSION
   ========================================= */

/* Client Access Grid Styles */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.shoot-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.shoot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.card-image {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shoot-card:hover .card-image img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(232, 201, 127, 0.9));
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.shoot-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transform: translateY(10px);
  transition: transform 0.4s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shoot-card:hover .card-overlay span {
  transform: translateY(0);
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  margin: 0 0 0.5rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #2a2826;
}

.card-content p {
  margin: 0;
  color: #8b7f77;
  font-size: 0.95rem;
}

/* Secure PIN Modal Styles */
.pin-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(42, 40, 38, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-modal.active {
  opacity: 1;
  visibility: visible;
}

.pin-modal.shake {
  animation: secureShake 0.6s ease-in-out;
}

@keyframes secureShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.pin-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.pin-modal.active .pin-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(42, 40, 38, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: #8b7f77;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: rgba(42, 40, 38, 0.2);
  color: #2a2826;
}

.pin-modal h3 {
  margin: 0 0 1rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #2a2826;
}

.pin-modal p {
  margin-bottom: 1.5rem;
  color: #8b7f77;
  line-height: 1.5;
}

.pin-modal input {
  width: 100%;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  border: 2px solid rgba(42, 40, 38, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.pin-modal input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background: white;
}

.pin-modal button[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #d4af37, #e8c97f);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.pin-modal button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.pin-modal button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 20px;
}

.empty-state {
  text-align: center;
  font-size: 1.1rem;
  color: #8b7f77;
  font-style: italic;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin: 2rem 0;
}

/* Security Notice */
.security-notice {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.security-notice svg {
  width: 20px;
  height: 20px;
  color: #28a745;
  flex-shrink: 0;
}

.security-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #155724;
  line-height: 1.4;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .client-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  .pin-modal-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .pin-modal input {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 480px) {
  .shoot-card {
    margin: 0 0.5rem;
  }
  
  .pin-modal-content {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }
}
