/* ============================================ */
/* PROFILE MENU - PROFIL MENÜSÜ */
/* ============================================ */

.nav-profile-menu {
  position: relative;
}

.nav-profile-btn {
  background: rgba(139, 69, 19, 0.2);
  border: 1px solid rgba(139, 69, 19, 0.4);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
}

.nav-profile-btn:hover {
  background: rgba(139, 69, 19, 0.4);
  border-color: rgba(139, 69, 19, 0.6);
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  margin-top: 10px;
  z-index: 1000;
  overflow: hidden;
}

body.dark-theme .profile-dropdown {
  background: #0f3460;
  border-color: #444;
}

.profile-dropdown.show {
  display: block;
}

.profile-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
}

body.dark-theme .profile-link {
  color: #e0e0e0;
  border-bottom-color: #444;
}

.profile-link:hover {
  background: #f5f5f5;
  padding-left: 20px;
}

body.dark-theme .profile-link:hover {
  background: #1a3a3a;
}

.profile-logout {
  width: 100%;
  padding: 12px 15px;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  transition: all 0.3s ease;
}

body.dark-theme .profile-logout {
  color: #ff6b6b;
}

.profile-logout:hover {
  background: #f8d7da;
  padding-left: 20px;
}

body.dark-theme .profile-logout:hover {
  background: rgba(255, 107, 107, 0.2);
}

/* ============================================ */
/* PROFILE PAGE - PROFIL SAYFASI */
/* ============================================ */

.profile-container {
  max-width: 720px;
  margin: 30px auto 50px;
  padding: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(80,40,10,0.18), 0 0 0 1px rgba(139,69,19,0.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.profile-header {
  background: linear-gradient(135deg, #7a2e00 0%, #8B4513 35%, #A0522D 65%, #228B22 100%);
  color: white;
  padding: 44px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(0,0,0,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.profile-avatar {
  font-size: 70px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.profile-header h1 {
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 1.8em;
  font-weight: 700;
}

.profile-email,
.profile-joined {
  opacity: 0.95;
  margin: 5px 0;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.profile-content {
  padding: 36px 40px 32px;
  background: #ffffff;
}

.profile-section {
  margin-bottom: 40px;
}

.profile-section h2 {
  color: #3d1f00;
  border-bottom: 2px solid #228B22;
  padding-bottom: 15px;
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: 700;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(139,69,19,0.08);
  transition: background 0.15s ease;
}
.info-row:hover { background: rgba(139,69,19,0.03); border-radius: 8px; padding-left: 6px; padding-right: 6px; }

.info-label {
  font-weight: 600;
  color: #3d1f00;
  min-width: 150px;
}

.info-value {
  color: #5a3010;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.profile-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid rgba(139,69,19,0.10);
  flex-wrap: wrap;
}

body.dark-theme .profile-actions {
  border-top-color: #444;
}

/* Admin butonu */
.btn-admin {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #ffd700 !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15,52,96,0.4);
  transition: all 0.3s ease;
}
.btn-admin:hover {
  background: linear-gradient(135deg, #0f3460 0%, #1a4a80 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15,52,96,0.5);
  color: #ffd700 !important;
  text-decoration: none;
}

/* Ana Sayfa butonu — her arka planda görünür */
.btn-home {
  background: linear-gradient(135deg, #2F4F4F 0%, #3d6060 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(47,79,79,0.35);
  transition: all 0.3s ease;
}

/* ── Destek Talebi Butonu ── */
.btn-support {
  background: linear-gradient(135deg, #1a4a6b 0%, #1e6091 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(26,74,107,0.35);
  transition: all 0.3s ease;
  position: relative;
}
.btn-support:hover {
  background: linear-gradient(135deg, #1e6091 0%, #2478b0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(26,74,107,0.5);
  color: #ffffff !important;
  text-decoration: none;
}
/* Yanıt gelince buton titreşir */
.btn-support-pulse {
  animation: support-pulse 2s ease-in-out infinite;
}
@keyframes support-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(26,74,107,0.35); }
  50%       { box-shadow: 0 4px 28px rgba(26,74,107,0.75), 0 0 0 6px rgba(26,74,107,0.15); }
}
/* Kırmızı bildirim noktası */
.btn-support-dot {
  position: absolute;
  top: -5px; right: -5px;
  width: 12px; height: 12px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: dot-blink 1.5s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Destek Talebi Listesi ── */
.support-section { margin-top: 24px; }
.support-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.support-section-head h2 { margin: 0; }
.support-badge {
  background: #e74c3c; color: #fff;
  font-size: 0.78em; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.btn-support-toggle {
  margin-left: auto;
  background: rgba(139,69,19,0.08);
  border: 1.5px solid rgba(139,69,19,0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85em;
  font-weight: 700;
  color: #8B4513;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-support-toggle:hover { background: rgba(139,69,19,0.15); }

/* Ticket kartları */
.support-ticket {
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-left: 4px solid #ccc;
  background: #fafafa;
  transition: all 0.2s ease;
}
.ticket-pending { border-left-color: #f39c12; background: #fffbf0; }
.ticket-read    { border-left-color: #3498db; background: #f0f7ff; }
.ticket-replied { border-left-color: #27ae60; background: #f0fff5; }

.support-ticket-head { margin-bottom: 12px; }
.support-ticket-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.support-ticket-date { font-size: 0.82em; color: #888; }
.support-status {
  font-size: 0.78em; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.support-status.pending { background: #fef3cd; color: #856404; }
.support-status.read    { background: #cce5ff; color: #004085; }
.support-status.replied { background: #d4edda; color: #155724; }

.support-msg        { margin-bottom: 12px; }
.support-msg-label  { font-size: 0.82em; font-weight: 700; color: #888; margin-bottom: 4px; }
.support-msg-text   { color: #333; line-height: 1.65; font-size: 0.95em; margin: 0; }

.support-reply {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid #27ae60;
  margin-top: 12px;
}
.support-reply-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82em;
  font-weight: 700;
  color: #155724;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}
.support-reply-text {
  color: #1a3c1a;
  font-size: 0.95em;
  line-height: 1.65;
  margin: 0;
}

.btn-ticket-delete {
  background: none;
  border: 1.5px solid rgba(220,53,69,0.35);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.83em;
  font-weight: 700;
  color: #c0392b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ticket-delete:hover {
  background: #fde8e8;
  border-color: #c0392b;
}
.btn-home:hover {
  background: linear-gradient(135deg, #3d6060 0%, #4a7070 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47,79,79,0.4);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 600px) {
  .profile-container {
    margin: 20px auto;
  }

  .profile-header {
    padding: 30px 15px;
  }

  .profile-content {
    padding: 20px;
  }

  .profile-section {
    margin-bottom: 30px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-label {
    margin-bottom: 8px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
