/* FetDate Site Styles */
:root {
  --primary: #667eea;  /* Purple */
  --secondary: #764ba2;  /* Purple */
  --accent: #f093fb;
  --dark: #333;
  --light: #f8f9fa;
  --gray: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  
  /* Light theme (default) */
  --bg-color: #f0f2f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-color: #dee2e6;
  --header-bg: linear-gradient(135deg, var(--primary), var(--secondary));
}

[data-theme="dark"] {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --border-color: #444444;
  --header-bg: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

[data-theme="dark"] .header,
[data-theme="dark"] .header a,
[data-theme="dark"] .header-content {
  color: white !important;
}

/* Smooth theme transition */
.theme-transition,
.theme-transition * {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
  background: var(--header-bg);
  color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header a {
  color: white !important;
}

.header-content {
  color: white !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 25px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease, color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(253, 41, 123, 0.3);
  border: none;
  outline: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(253, 41, 123, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #218838);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c82333);
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s ease, color 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 41, 123, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

input[type="file"].form-control {
  padding: 10px 15px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input {
  margin-right: 8px;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin-right: 20px;
  object-fit: cover;
}

.profile-info h1 {
  margin: 0 0 10px 0;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.profile-info p {
  margin: 5px 0;
  color: var(--gray);
  transition: color 0.3s ease;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 5px 5px 5px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.badge-fetish {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.badge-interest {
  background: linear-gradient(135deg, var(--accent), #3db8ab);
  color: white;
}

.section-title {
  color: var(--dark);
  margin: 25px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* User List */
.user-card {
  display: flex;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, background-color 0.3s ease, color 0.3s ease;
}

.user-card:hover {
  transform: translateX(5px);
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
  object-fit: cover;
}

.user-info {
  flex-grow: 1;
}

.user-info h3 {
  margin: 0 0 10px 0;
  color: var(--dark);
}

.user-info p {
  margin: 5px 0;
  color: var(--gray);
}

.user-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Swipe Page */
.swipe-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 0;
}

.card-stack {
  position: relative;
  height: 500px;
  margin-bottom: 30px;
  user-select: none;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, background-color 0.3s ease, color 0.3s ease;
  top: 0;
  left: 0;
  cursor: grab;
}

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

.swipe-card.top {
  z-index: 3;
}

.swipe-card.middle {
  z-index: 2;
  transform: scale(0.95) translateY(10px);
}

.swipe-card.bottom {
  z-index: 1;
  transform: scale(0.9) translateY(20px);
}

.card-image {
  height: 65%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.card-content {
  padding: 20px;
  position: relative;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  margin: 0 0 10px 0;
  color: var(--dark);
}

.card-content p {
  color: var(--gray);
  margin-bottom: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Swipe buttons on cards */
.swipe-card .action-btn {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.action-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-size: 2rem;
  color: white;
  background: var(--card-bg);
  border: none;
  outline: none;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.reject-btn {
  background: white;
  color: var(--danger);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.like-btn {
  background: linear-gradient(135deg, var(--success), #218838);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.superlike-btn {
  background: linear-gradient(135deg, var(--accent), #3db8ab);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
  font-size: 1.5rem;
}

/* Card buttons */
.swipe-card .reject-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--danger);
}

.swipe-card .like-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--success);
}

.swipe-card .superlike-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 1.2rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray);
  transition: color 0.3s ease;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #ddd;
  transition: color 0.3s ease;
}

.empty-state h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-switcher .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 15px;
  font-size: 0.9rem;
}

.language-switcher .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Theme switcher button */
.theme-switcher .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.theme-switcher .btn:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(15deg);
}

/* Theme icon rotation */
.theme-icon {
  transition: transform 0.3s ease;
}

.theme-switcher .btn:hover .theme-icon {
  transform: rotate(30deg);
}

/* Match notification */
.match-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.match-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    border: 3px solid var(--primary);
}

.match-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.match-content h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 2rem;
}

.match-content p {
    margin: 0 0 25px 0;
    color: var(--gray);
    font-size: 1.1rem;
}

.match-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.match-actions .btn {
    min-width: 120px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .user-card {
    flex-direction: column;
  }
  
  .user-actions {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 15px;
  }
  
  .checkbox-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .card-stack {
    height: 400px;
  }
  
  .match-content {
    width: 90%;
    padding: 20px;
  }
  
  .match-actions {
    flex-direction: column;
  }
}