/* Swipe Card Styles */
.swipe-area {
  position: relative;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.swipe-card-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 500px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--card-bg, #fff);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  user-select: none;
  touch-action: none;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card.dragging {
  transition: none;
  z-index: 100;
}

.swipe-card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.user-avatar {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 15px 15px 0 0; /* Закругленные углы сверху */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.user-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.user-info h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.user-info p {
  margin: 5px 0;
  line-height: 1.4;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-interest {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-fetish {
  background: #f3e5f5;
  color: #7b1fa2;
}

.action-hint {
  position: absolute;
  top: 20px;
  background: rgba(255,255,255,0.95);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  display: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-weight: bold;
  backdrop-filter: blur(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.like-hint {
  right: 20px;
  color: #28a745;
  border: 2px solid #28a745;
}

.dislike-hint {
  left: 20px;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.action-hint.show {
  display: block;
  opacity: 1;
}

.swipe-actions {
  position: fixed;
  bottom: 30px;
  width: 100%;
  max-width: 500px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.actions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  flex-wrap: wrap;
}

.btn-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-large:active {
  transform: translateY(-1px);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  display: none;
}

.modal-content {
  background: var(--card-bg, #fff);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color, #000);
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  display: none;
}

.match-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10000;
  text-align: center;
  display: none;
}

/* Для темной темы */
@media (prefers-color-scheme: dark), (data-theme: dark) {
  .match-notification {
    background: #2d2d2d;
    color: #ffffff;
  }
  
  .match-notification h3 {
    color: #5cb85c;
  }
}

.match-notification .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.match-notification .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.match-notification .btn-outline, .match-notification .btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #667eea;
  color: white;
}

.match-notification .btn-outline:hover, .match-notification .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  border-color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Для темной темы */
@media (prefers-color-scheme: dark), (data-theme: dark) {
  .match-notification {
    background: #2d2d2d;
    color: #ffffff;
  }
  
  .match-notification h3 {
    color: #5cb85c;
  }
}

/* Card animations */
.swipe-right {
  transform: translateX(150vw) rotate(20deg) !important;
  opacity: 0;
}

.swipe-left {
  transform: translateX(-150vw) rotate(-20deg) !important;
  opacity: 0;
}

.swipe-up {
  transform: translateY(-150vh) rotate(0deg) !important;
  opacity: 0;
}

/* Card entrance animations */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-entering {
  animation: cardEntrance 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Modern message modal styles */
.modal-content {
  background: var(--card-bg, #fff);
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: none;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close:hover {
  background-color: #f8f9fa;
  color: #333;
}

.message-limit-info {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9em;
}

textarea#messageInput {
  width: 100%;
  height: 120px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: #f8f9fa;
  color: #495057;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

textarea#messageInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: #fff;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

.modal-actions .btn {
  flex: 1;
  margin: 0 5px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.modal-actions .btn-outline {
  background: transparent;
  border: 2px solid #6c757d;
  color: #6c757d;
}

.modal-actions .btn-outline:hover {
  background: #6c757d;
  color: white;
}

.modal-actions .btn-success {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #667eea;
  color: white;
}

.modal-actions .btn-success:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  border-color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}