/* CSS Custom Properties (Variables) */
:root {
  --icon-color-light: #3b82f6;
  --icon-color-dark: #1d4ed8;
  --badge-color: #3b82f6;
  --badge-color-dark: #1d4ed8;
  --achievement-bg: #fbbf24;
  --achievement-bg-dark: #f59e0b;
  --achievement-border: #f59e0b;
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.08);
  --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.13);
}

/* Critical rendering path optimizations */
* {
  box-sizing: border-box;
}

/* Optimized transitions - only apply to interactive elements */
button, a, input, textarea, .hover\:shadow-md:hover, .topic-card, .stats-card, .achievement-card, .activity-item, .content-card, .entry-card, .entry-card-modern, .answer-card {
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* Will-change for performance */
.topic-card:hover,
.entry-card:hover,
.stats-card:hover {
  will-change: transform;
}

/* Optimized scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus styles with better accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Button hover effects with GPU acceleration */
button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Card hover effects */
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Loading animation with GPU acceleration */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
  will-change: transform;
}

/* Notification styles */
.notification {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hidden.md\:flex {
    display: none !important;
  }
}

/* Typography improvements with better font rendering */
body {
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-sm {
  font-size: 0.95rem;
}
.text-xs {
  font-size: 0.85rem;
}

/* Link hover effects */
a:hover {
  text-decoration: none;
}

/* Form improvements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Custom badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
}

.badge-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

/* --- BADGE STYLES (Toplu) --- */
.badge-role {
  color: #fff;
  font-size: 1em;
  border-radius: 50%;
  background: #64748b;
  width: 1.3em;
  min-width: 1.3em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-role i {
  font-size: 1em;
  line-height: 1;
}
.badge-verified {
  color: #10b981;
  font-size: 1.1em;
  background: none;
  width: 1.3em;
  min-width: 1.3em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-verified i {
  font-size: 1em;
  line-height: 1;
}
.badge-level {
  background: linear-gradient(90deg, #e0e7ff 60%, #f3f4f6 100%);
  color: #2563eb;
  font-weight: 700;
  font-size: 0.97em;
  border-radius: 0.7em;
  padding: 0 0.35em;
  min-width: 1.7em;
  width: auto;
  overflow: visible;
  white-space: nowrap;
  box-shadow: 0 1px 4px 0 rgba(59,130,246,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .badge-role, .badge-verified, .badge-level {
    font-size: 0.93em;
    height: 1.1em;
    min-width: 1.1em;
    padding: 0 0.13em;
    margin: 0 0.02em;
  }
  .badge-level {
    padding: 0 0.18em;
    font-size: 0.91em;
    min-width: 1.3em;
  }
}
/* --- BADGE STYLES SONU --- */

/* --- FOLLOW BUTTON STYLES (Toplu) --- */
.follow-btn {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.follow-btn.following {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.follow-btn.following:hover {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}
/* --- FOLLOW BUTTON STYLES SONU --- */

/* Topic card improvements */
.topic-card:hover {
  transform: translateY(-2px);
}

/* Sidebar sticky positioning */
.sidebar {
  position: sticky;
  top: 5rem;
  height: fit-content;
  align-self: flex-start;
}

/* Mobile menu improvements */
@media (max-width: 1024px) {
  .sidebar {
    position: static;
  }
}

/* Profile page specific styles */
.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Ccircle cx="30" cy="30" r="2"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.profile-avatar {
  position: relative;
  transition: all 0.3s ease;
}

.profile-avatar img {
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #3b82f6;
}

.stats-card .icon-bg {
  background: linear-gradient(135deg, var(--icon-color-light) 0%, var(--icon-color-dark) 100%);
  border-radius: 1rem;
}

.stats-card:hover .icon-bg {
  transform: scale(1.1);
}

.achievement-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
}

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

.activity-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.activity-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transform: translateX(4px);
  border-color: #3b82f6;
}

.tab-button {
  position: relative;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 600;
}

.tab-button.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-button:hover:not(.active) {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.content-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #3b82f6;
}

.modal-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  position: relative;
  z-index: 51;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-container .sticky {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  z-index: 52;
}

.modal-container ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-container ul li {
  transition: all 0.2s ease;
}

.modal-container ul li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .modal-container {
    max-height: 85vh;
    margin: 1rem;
    padding: 0;
    width: calc(100% - 2rem);
    max-width: none;
  }
  
  .modal-container h2 {
    font-size: 1.5rem;
  }
  
  .modal-container .sticky {
    padding: 1rem 1.5rem 0.75rem 1.5rem;
  }
  
  .modal-container .p-8 {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-container {
    max-height: 90vh;
    margin: 0.5rem;
    padding: 0;
    width: calc(100% - 1rem);
  }
  
  .modal-container h2 {
    font-size: 1.25rem;
  }
  
  .modal-container .sticky {
    padding: 0.75rem 1rem 0.5rem 1rem;
  }
  
  .modal-container .p-8 {
    padding: 1rem;
  }
  
  .modal-container ul li {
    padding: 0.75rem;
  }
  
  .modal-container ul li img {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.input-field {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: #ffffff;
}

.input-field.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-field.success {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* --- SUBMIT BUTTON STYLES (Toplu) --- */
.submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}
.submit-btn:active {
  transform: translateY(0);
}
/* --- SUBMIT BUTTON STYLES SONU --- */

.role-badge {
  background: linear-gradient(135deg, var(--badge-color) 0%, var(--badge-color-dark) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
}

.role-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.verified-badge {
  background: linear-gradient(135deg, var(--badge-color) 0%, var(--badge-color-dark) 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  animation: pulse-verified 2s infinite;
}

.verified-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@keyframes pulse-verified {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  }
}

.xp-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.xp-progress {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}

.xp-progress-fill {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
  transition: width 0.5s ease;
}

.follow-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.follow-btn.following {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.follow-btn.following:hover {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.gradient-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

.gradient-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #93c5fd;
}

.achievement-item {
  background: linear-gradient(135deg, var(--achievement-bg) 0%, var(--achievement-bg-dark) 100%);
  border: 1px solid var(--achievement-border);
  border-radius: 1rem;
}

.achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-state {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 1.5rem;
}

.empty-state:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Tab styles */
.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button.active {
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

/* Activity item hover effects */
.activity-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Achievement badges */
.achievement-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Statistics card animations */
.stats-card {
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.stats-card:hover::before {
  left: 100%;
}

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

/* Profile avatar effects */
.profile-avatar img {
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: 50%;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
}

.profile-avatar:hover::after {
  opacity: 1;
}

/* Content tab improvements */
.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive profile improvements */
@media (max-width: 768px) {
  .profile-header {
    padding: 1.5rem;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .tab-button {
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
  }
}

/* --- Entry Card Modern Temiz --- */
.entry-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.entry-card:hover {
  box-shadow: 0 4px 16px 0 rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.entry-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.entry-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-author {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-author:hover {
  color: #3b82f6;
}

.entry-username {
  color: #64748b;
  font-size: 0.875rem;
}

.entry-date {
  color: #94a3b8;
  font-size: 0.875rem;
}

.entry-content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-line;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.entry-actions i {
  margin-right: 0.25rem;
  font-size: 0.875em;
}

/* Entry Card Modern */
.entry-card-modern {
  background: #fff;
  border-radius: 1.3rem;
  box-shadow: 0 4px 24px 0 rgba(59,130,246,0.07);
  border: 1.5px solid #e2e8f0;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.entry-card-modern:hover {
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.13);
  border-color: #3b82f6;
  background: #f8fafc;
}
.entry-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
  margin-top: 2px;
}
.entry-main-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.entry-meta-modern {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 1rem;
}
.entry-author-modern {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-author-modern:hover {
  color: #3b82f6;
}
.entry-username-modern {
  color: #64748b;
  font-size: 0.93rem;
}
.entry-date-modern {
  color: #94a3b8;
  font-size: 0.93rem;
}
.entry-content-modern {
  color: #334155;
  font-size: 1.07rem;
  line-height: 1.7;
  word-break: break-word;
  white-space: normal;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  margin-bottom: 0.1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.entry-content-modern p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.entry-content-modern p:last-child {
  margin-bottom: 0;
}
.entry-actions-modern {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}
.entry-actions-modern .vote-btn,
.entry-actions-modern .reply-btn,
.entry-actions-modern .report-btn {
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.93rem !important;
  border-radius: 0.5rem !important;
}
@media (max-width: 768px) {
  .entry-actions-modern .vote-btn,
  .entry-actions-modern .reply-btn,
  .entry-actions-modern .report-btn {
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0.15rem 0.3rem !important;
    font-size: 0.85rem !important;
    border-radius: 0.4rem !important;
  }
}
.vote-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vote-btn:hover {
  background: #e2e8f0;
  color: #334155;
  border-color: #3b82f6;
}
.vote-btn.active {
  color: #3b82f6;
  background: #eff6ff;
  border-color: #3b82f6;
}
.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reply-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.reply-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-1px);
}

.report-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.report-btn:hover {
  background: #fecaca;
  color: #991b1b;
}
/* --- ENTRY ACTION BUTTON STYLES SONU --- */

.entry-avatar-modern,
.entry-avatar-modern img,
.entry-avatar-modern-img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
  flex-shrink: 0;
  margin: 0;
  transition: none;
}

.entry-avatar-modern-img:hover {
  box-shadow: 0 4px 16px 0 rgba(59,130,246,0.18);
  transform: scale(1.07);
}
@media (max-width: 768px) {
  .entry-avatar-modern-img {
    width: 32px !important;
    height: 32px !important;
  }
}

.entry-main-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.entry-meta-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-author-modern {
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.entry-author-modern:hover {
  color: #3b82f6;
}

.entry-username-modern {
  color: #64748b;
  font-size: 0.875rem;
}

.entry-date-modern {
  color: #94a3b8;
  font-size: 0.875rem;
}

.entry-content-modern {
  color: #334155;
  line-height: 1;
  font-size: 1rem;
  word-break: break-word;
  white-space: pre-line;
}
/* Nested content elements limited to baslik page for better readability */
.page-baslik .entry-content-modern,
.page-baslik .entry-content {
  color: #334155;
  font-size: 1.07rem;
  line-height: 0.25;
  letter-spacing: 0.01em;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.page-baslik .entry-content-modern p,
.page-baslik .entry-content p {
  line-height: 1.2;
  margin: 0 0 0.15em;
}
.page-baslik .entry-content-modern a,
.page-baslik .entry-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-baslik .entry-content-modern a:hover,
.page-baslik .entry-content a:hover {
  color: #1d4ed8;
}
.page-baslik .entry-content-modern ul,
.page-baslik .entry-content-modern ol,
.page-baslik .entry-content ul,
.page-baslik .entry-content ol {
  margin: 0.75em 0 0.75em 1.25em;
  padding-left: 1.25em;
}
.page-baslik .entry-content-modern blockquote,
.page-baslik .entry-content blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 0.75rem;
  color: #475569;
  margin: 0.75em 0;
  background: #f8fafc;
  border-radius: 0.25rem;
}

.entry-actions-modern {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

/* Vote Button Styles */
.vote-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vote-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.vote-btn.active {
  color: #3b82f6;
  background: #eff6ff;
  border-color: #3b82f6;
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Reply Button */
.reply-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reply-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-1px);
}

/* Entry Form Modern */
.entry-form-modern {
  background: linear-gradient(135deg, #fff 60%, #f8fafc 100%);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 4px 16px 0 rgba(59, 130, 246, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.entry-form-modern h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-form-modern textarea {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
  background: #fff;
  color: #334155;
  min-height: 120px;
}

.entry-form-modern textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.entry-form-modern button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(16, 185, 129, 0.2);
}

.entry-form-modern button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(16, 185, 129, 0.3);
}

.entry-form-modern .form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

/* Answer Card Styles (soru.php için) */
.answer-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.answer-card:hover {
  box-shadow: 0 4px 16px 0 rgba(59, 130, 246, 0.08);
  border-color: #3b82f6;
}

.accepted-answer-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #22c55e;
  border-radius: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px 0 rgba(34, 197, 94, 0.1);
}

.accepted-answer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #15803d;
  font-weight: 600;
  font-size: 1.125rem;
}

.accept-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.accept-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
}

.answer-form-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.answer-form-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-1px);
}

/* Top Entry Card */
.top-entry-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  border-radius: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px 0 rgba(59, 130, 246, 0.1);
}

.top-entry-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-entry-card .entry-content-modern {
  white-space: normal !important;
  line-height: 1.6 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

.top-entry-card .entry-content-modern p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.top-entry-card .entry-content-modern p:last-child {
  margin-bottom: 0;
}

/* Reply Form Container */
.reply-form-container {
  margin-top: 0.75rem;
}

.reply-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 0.75rem;
}

.reply-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
  background: #fff;
  color: #334155;
}

.reply-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.send-reply-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-reply-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.cancel-reply-btn {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

/* Entry Children (Nested Replies) */
.entry-children-modern {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e2e8f0;
}

.entry-children-modern > .entry-card-modern {
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.02);
  margin-bottom: 0.5rem;
  background: #fcfcff;
  border: 1px solid #f1f5fa;
}

/* Child entry styling */
.entry-child-modern {
  background: #f8fafc !important;
  border-left: 2px solid #3b82f6 !important;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
}

.entry-child-modern .entry-content-modern {
  font-size: 0.9rem;
  color: #374151;
}

.entry-child-modern .entry-meta-modern {
  opacity: 0.7;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .entry-children-modern > .entry-card-modern {
    padding: 0.4rem;
    border-radius: 0.4rem;
  }
  
  .entry-child-modern {
    margin-left: 0.3rem;
    padding-left: 0.3rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .entry-card,
  .entry-card-modern,
  .answer-card {
    padding: 0.8rem;
    border-radius: 1rem;
  }
  
  .entry-avatar,
  .entry-avatar-modern img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .entry-meta,
  .entry-meta-modern {
    gap: 0.5rem;
  }
  
  .entry-author,
  .entry-author-modern {
    font-size: 0.875rem;
  }
  
  .entry-username,
  .entry-username-modern,
  .entry-date,
  .entry-date-modern {
    font-size: 0.75rem;
  }
  
  .entry-content,
  .entry-content-modern {
    font-size: 0.875rem;
  }
  
  .entry-actions,
  .entry-actions-modern {
    gap: 0.4rem;
    padding-top: 0.4rem;
  }
  
  .vote-btn,
  .reply-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .entry-form-modern {
    padding: 1.5rem;
  }
  
  .entry-form-modern h3 {
    font-size: 1.125rem;
  }
  
  .entry-form-modern textarea {
    min-height: 100px;
    padding: 0.75rem;
  }
  
  .entry-form-modern button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .entry-children-modern {
    padding-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .entry-card,
  .entry-card-modern,
  .answer-card {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
  }
  
  .entry-avatar,
  .entry-avatar-modern img {
    width: 2rem;
    height: 2rem;
  }
  
  .entry-meta,
  .entry-meta-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .entry-actions,
  .entry-actions-modern {
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  
  .vote-btn,
  .reply-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .entry-form-modern {
    padding: 1rem;
  }
  
  .entry-form-modern textarea {
    min-height: 80px;
    padding: 0.5rem;
  }
  
  .entry-form-modern button {
    width: 100%;
    justify-content: center;
  }
}

/* BKZ Referansları */
.bkz-section {
  position: relative;
}

.bkz-search-container {
  position: relative;
}

.bkz-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-height: 15rem;
  overflow-y: auto;
}

.bkz-result-item {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bkz-result-item:hover {
  background-color: #f9fafb;
}

.bkz-result-item:last-child {
  border-bottom: none;
}

.selected-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.remove-topic {
  color: #ef4444;
  transition: color 0.15s ease;
}

.remove-topic:hover {
  color: #dc2626;
}

/* BKZ Referansları - MODERN */
.bkz-references {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px 0 rgba(30,64,175,0.04);
  font-size: 0.98rem;
  min-width: 0;
}
.bkz-references .flex.items-center {
  margin-bottom: 0.35rem;
  align-items: center;
  gap: 0.45em;
}
.bkz-references .flex.items-center i {
  color: #3b82f6;
  font-size: 1em;
}
.bkz-references .flex.items-center span {
  color: #64748b;
  font-size: 0.97em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.bkz-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 0.7em;
  margin-top: 0.1em;
}
.bkz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  background: #e0e7ef;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.98em;
  border-radius: 1.2em;
  padding: 0.32em 1.05em 0.32em 0.85em;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border 0.15s;
  margin-bottom: 0.1em;
  box-shadow: 0 1px 3px 0 rgba(30,64,175,0.03);
  cursor: pointer;
  white-space: nowrap;
}
.bkz-chip i {
  font-size: 0.93em;
  margin-right: 0.18em;
  color: #3b82f6;
}
.bkz-chip:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1.5px solid #3b82f6;
  box-shadow: 0 2px 8px 0 rgba(30,64,175,0.07);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .bkz-references {
    padding: 0.45rem 0.5rem 0.6rem 0.5rem;
    font-size: 0.96rem;
    border-radius: 0.5rem;
  }
  .bkz-chip {
    font-size: 0.96em;
    padding: 0.22em 0.7em 0.22em 0.6em;
  }
}

@media (max-width: 768px) {
  .bkz-search-results {
    max-height: 12rem;
  }
  .bkz-result-item {
    padding: 0.5rem;
  }
  .selected-topic {
    padding: 0.375rem;
  }
  .bkz-references {
    padding: 0.35rem 0.5rem 0.35rem 0.5rem;
    font-size: 0.95rem;
  }
  .bkz-reference-item {
    font-size: 0.95em;
  }
}

/* --- Entry Card Modern Temiz SONU --- */

.topic-header {
  border-radius: 1rem;
  background: linear-gradient(90deg, #f8fafc 60%, #e0e7ef 100%);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
}
.topic-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.topic-desc {
  color: #64748b;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.topic-badge {
  background: #e0e7ef;
  color: #334155;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-weight: 500;
}
.topic-meta {
  text-align: right;
  color: #64748b;
  font-size: 0.95rem;
}

/* --- Uzun metin taşmalarını önle --- */
.entry-content-modern,
.entry-content,
.entry-main-modern,
.entry-main,
.card-content,
.text-content,
.comment-content,
.answer-content {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-line;
}
/* --- Uzun metin taşmalarını önle SONU --- */

.content-card p,
.content-card .text-gray-900,
.content-card .text-gray-700 {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-line;
}

/* Takip kutusu ve butonları için minimalist stil */
#followersBtn, #followingBtn {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: color 0.18s;
}
#followersBtn .text-xl, #followingBtn .text-xl {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.18s;
}
#followersBtn:hover .text-xl, #followingBtn:hover .text-xl {
  color: #60a5fa;
}
#followersBtn .text-xs, #followingBtn .text-xs {
  color: #bae6fd;
  font-size: 0.75rem;
  margin-top: 2px;
  transition: color 0.18s;
}
#followersBtn:hover .text-xs, #followingBtn:hover .text-xs {
  color: #fff;
}
#followBtn {
  background: #2563eb;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  box-shadow: none;
  transition: background 0.18s, color 0.18s;
}
#followBtn:hover {
  background: #1d4ed8;
  color: #fff;
}
#followBtn[data-following="1"] {
  background: #fff;
  color: #2563eb;
  border: 1.5px solid #2563eb44;
}
#followBtn[data-following="1"]:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}
@media (max-width: 640px) {
  #followBtn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
}

/* XP/Level rozeti ve barı */
.w-14.h-14.rounded-full.bg-gradient-to-br {
  min-width: 56px;
  min-height: 56px;
  box-shadow: 0 4px 16px 0 rgba(59,130,246,0.13);
  border-width: 4px;
  border-color: rgba(255,255,255,0.8);
}
.text-2xl.font-extrabold.text-white.drop-shadow {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(59,130,246,0.18);
}
.w-32.h-3.bg-white-20.rounded-full.overflow-hidden {
  width: 128px;
  height: 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 9999px;
  overflow: hidden;
}
.h-3.rounded-full.bg-gradient-to-r {
  height: 12px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.group:hover .group-hover\:block, .group:focus .group-focus\:block { display: block !important; }

/* index.php'den taşınan stiller */
.index-gradient {
    background: linear-gradient(90deg, #e0e7ff 0%, #f0fdfa 100%);
}
.card-gradient {
    background: linear-gradient(135deg, #fff 60%, #f3f4f6 100%);
}
.card-shadow {
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.07);
    transition: box-shadow 0.2s, border 0.2s;
}
.card-shadow:hover {
    box-shadow: 0 8px 32px 0 rgba(59,130,246,0.13);
    border-color: #3b82f6;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    transition: all 0.2s;
    cursor: pointer;
}
.filter-chip.active, .filter-chip:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
}
.topic-row {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
    border: 1.5px solid #e5e7eb;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: box-shadow 0.2s, border 0.2s;
}
.topic-row:hover {
    box-shadow: 0 8px 32px 0 rgba(59,130,246,0.13);
    border-color: #3b82f6;
}
.topic-rank {
    width: 2.2rem;
    height: 2.2rem;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topic-title-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s;
    text-decoration: none;
}
.topic-title-link:hover {
    color: #2563eb;
}
.entry-count-badge {
    background: #f3f4f6;
    color: #64748b;
    border-radius: 0.7rem;
    font-size: 0.95rem;
    padding: 0.2rem 0.8rem;
    margin-left: 0.7rem;
    font-weight: 500;
}
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gradient-btn {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 0.9rem;
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
}
.gradient-btn:hover {
    background: linear-gradient(90deg, #6366f1 0%, #3b82f6 100%);
}

/* baslik.php'den taşınan stiller */
.topic-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.topic-card {
    background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
    box-shadow: 0 4px 24px 0 rgba(60,72,100,0.08);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.topic-title-modern {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(60,72,100,0.04);
}
.topic-desc-modern {
    font-size: 1.18rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.topic-meta-modern {
    background: #f1f5f9;
    border-radius: 1rem;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    color: #64748b;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px 0 rgba(60,72,100,0.04);
}
@media (max-width: 640px) {
    .topic-card { padding: 1.2rem 0.7rem; }
    .topic-title-modern { font-size: 1.3rem; }
    .topic-desc-modern { font-size: 1rem; }
    .topic-meta-modern { padding: 0.7rem 1rem; font-size: 0.95rem; }
}
.topic-badge-modern {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.2);
}
.topic-meta-modern a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}
.topic-meta-modern a:hover {
    text-decoration: underline;
}
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination-modern a {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px 0 rgba(59,130,246,0.3);
}
.pagination-modern a:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(59,130,246,0.4);
}
.pagination-modern span {
    background: #f8fafc;
    color: #64748b;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}
.info-card-modern {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 2px solid #3b82f6;
    border-radius: 1.2rem;
    padding: 1.5rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}
.info-card-modern a {
    color: #1e40af;
    font-weight: 700;
    text-decoration: none;
}
.info-card-modern a:hover {
    text-decoration: underline;
}
.empty-card-modern {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 1.2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
}
.empty-card-modern i {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* --- baslik-ac.php sayfasından taşınan özel stiller --- */
.main-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.input-field {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    background: #ffffff;
}
.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}
.input-field.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.input-field.success {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #c7d2fe;
}
.tag-chip:hover {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
    transform: translateY(-1px);
}
.tag-chip .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.tag-chip .remove:hover {
    opacity: 1;
}
.character-counter {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
}
.character-counter.warning {
    color: #f59e0b;
}
.character-counter.danger {
    color: #ef4444;
}
.character-counter.success {
    color: #10b981;
}
.guideline-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.guideline-card:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}
.submit-btn:active {
    transform: translateY(0);
}
.floating-label {
    position: absolute;
    top: 1.25rem;
    left: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    color: #6b7280;
    font-weight: 500;
}
.floating-label.active {
    top: 0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #3b82f6;
    background: white;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
}
.input-wrapper {
    position: relative;
}
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    color: #065f46;
}
.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #991b1b;
}
.sidebar-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

/* --- soru-sor.php sayfasından taşınan özel stiller --- */
.category-option {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.category-option:hover {
    background: #f3f4f6;
}
.category-option.selected {
    background: #3b82f6;
    color: white;
}

@media (max-width: 640px) {
  .entry-avatar-modern,
  .entry-avatar-modern img,
  .entry-avatar-modern-img {
    width: 32px !important;
    height: 32px !important;
  }
}

/* --- FORCE TAILWIND GRID LAYOUT ON LARGE SCREENS --- */
@media (min-width: 1024px) {
  .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
  .lg\:col-span-1 {
    grid-column: span 1 / span 1 !important;
  }
}
/* --- END FIX --- */

/* --- Layout Fixes for Sidebar (Modern, Temiz) --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: visible !important;
}
.grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-width: 0;
  overflow: visible !important;
}
.sidebar {
  position: sticky;
  top: 5rem;
  height: fit-content;
  align-self: flex-start;
}
@media (max-width: 1024px) {
  .container, .grid {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }
  .sidebar {
    position: static !important;
    top: auto !important;
  }
}
@media (min-width: 1024px) {
  .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
  .lg\:col-span-1 {
    grid-column: span 1 / span 1 !important;
  }
  .sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  body, html {
    font-size: 16px;
    background: #f7f8fa;
    overscroll-behavior-y: none;
  }
  .container {
    padding: 0 0.5rem;
    max-width: 100vw;
  }
  .card-gradient, .card-shadow, .bg-white {
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    padding: 1.1rem 1rem !important;
    margin-bottom: 1.2rem;
  }
  .rounded-2xl, .rounded-lg {
    border-radius: 1.2rem !important;
  }
  .search-modern {
    font-size: 1rem;
    padding: 0.9rem 1rem 0.9rem 2.5rem !important;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.04);
  }
  .gradient-btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 0.9rem;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  }
  .filter-chip {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 0.8rem;
    min-width: 44px;
    min-height: 44px;
    margin-bottom: 0.5rem;
    white-space: nowrap;
  }
  .flex.flex-wrap.gap-2.card-gradient {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  .topic-row, .bg-white.rounded-lg {
    width: 100%;
    min-width: 0;
    margin: 0 auto 1.1rem auto;
    box-sizing: border-box;
  }
  .topic-title-link, .text-xl.font-semibold {
    font-size: 1.1rem !important;
    font-weight: 700;
    line-height: 1.3;
  }
  .entry-count-badge, .text-xs {
    font-size: 0.95rem !important;
    padding: 0.2rem 0.7rem;
    border-radius: 0.7rem;
    background: #f1f3f7;
    color: #6b7280;
    margin-left: 0.5rem;
  }
  .space-y-10 > * + * {
    margin-top: 1.2rem !important;
  }
  .space-y-4 > * + * {
    margin-top: 0.7rem !important;
  }
  .pt-4 {
    padding-top: 0.7rem !important;
  }
  .mb-8 {
    margin-bottom: 1.2rem !important;
  }
  .text-4xl {
    font-size: 1.5rem !important;
  }
  .text-lg {
    font-size: 1.05rem !important;
  }
  .text-2xl {
    font-size: 1.2rem !important;
  }
  .text-gray-600, .text-gray-500 {
    color: #7b7b7b !important;
  }
  .min-h-screen {
    min-height: 100vh !important;
  }
  .gap-10 {
    gap: 0.7rem !important;
  }
  .p-10 {
    padding: 1.2rem !important;
  }
  .p-6 {
    padding: 1rem !important;
  }
  .sidebar, .lg\:col-span-1 {
    display: none !important;
  }
  .lg\:col-span-3 {
    grid-column: 1 / -1 !important;
  }
  .mobile-search-form {
    padding: 0.02rem 0.1rem;
    border-radius: 0.7rem;
    min-height: 32px;
    max-height: 38px;
  }
  .mobile-search-input {
    font-size: 0.92rem;
    padding: 0.18rem 0.05rem 0.18rem 0.5rem;
    border-radius: 0.7rem;
    min-height: 28px;
    max-height: 34px;
  }
  .mobile-search-btn {
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.6rem;
  }
  .mobile-logo {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-block;
    background-image: url('/assets/images/icon.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0.7rem;
    background-color: #fff;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.08);
    margin-right: 0.5rem;
    vertical-align: middle;
    padding: 0;
  }
}

button, .filter-chip, .gradient-btn, a[role="button"] {
  min-width: 48px;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
}
button:focus, .filter-chip:focus, .gradient-btn:focus, a[role="button"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #93c5fd;
}

.modern-search-bar {
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border-radius: 0.9rem;
  box-shadow: none;
  padding: 0 0.4rem 0 0.2rem;
  position: relative;
  min-height: 30px;
  border: 1.2px solid #e5e7eb;
  transition: border-color 0.18s;
}
.modern-search-bar:focus-within {
  border-color: #60a5fa;
  box-shadow: none;
}
.modern-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.93rem;
  padding: 0.35rem 0.1rem 0.35rem 1.1rem;
  border-radius: 0.9rem;
  color: #222;
}
.search-icon-left {
  position: absolute;
  left: 0.3rem;
  color: #b0b7c3;
  font-size: 0.93rem;
  pointer-events: none;
}
.search-icon-right {
  background: none;
  border: none;
  color: #b0b7c3;
  font-size: 0.93rem;
  margin-left: 0.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.search-icon-right:hover, .search-icon-right:focus {
  background: #e0e7ff;
  color: #2563eb;
}
@media (max-width: 640px) {
  .modern-search-bar {
    min-height: 26px;
    padding: 0 0.2rem 0 0.1rem;
    border-radius: 0.7rem;
  }
  .modern-search-input {
    font-size: 0.89rem;
    padding: 0.22rem 0.05rem 0.22rem 0.7rem;
    border-radius: 0.7rem;
  }
  .search-icon-left {
    left: 0.15rem;
    font-size: 0.89rem;
  }
  .search-icon-right {
    width: 0.9rem;
    height: 0.9rem;
    font-size: 0.89rem;
  }
  /* Modern mobil arama kutusu */
  .mobile-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 1.2rem;
    border: 1.5px solid #2563eb;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.08);
    padding: 0.08rem 0.5rem 0.08rem 0.7rem;
    margin: 0.2rem 0.1rem 0.2rem 0.1rem;
    min-height: 38px;
    max-height: 44px;
  }
  .mobile-search-input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 0.4rem 0.2rem;
    font-size: 1.05rem;
    outline: none;
    color: #1e293b;
    border-radius: 1rem;
    min-height: 32px;
    max-height: 40px;
    box-shadow: none;
  }
  .mobile-search-input::placeholder {
    color: #64748b;
    opacity: 1;
    font-size: 1.01rem;
  }
  .mobile-search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    min-height: 2.1rem;
    max-width: 2.1rem;
    max-height: 2.1rem;
    padding: 0;
    font-size: 1.1rem;
    margin-left: 0.18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
    transition: background 0.18s;
  }
  .mobile-search-btn:active, .mobile-search-btn:focus {
    background: #1d4ed8;
  }
}

nav .nav-link {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.7rem;
  transition: background 0.18s, color 0.18s;
  margin-right: 0.1rem;
}
nav .nav-link.active, nav .nav-link:hover, nav .nav-link:focus {
  background: #e0e7ff;
  color: #2563eb;
}
@media (max-width: 768px) {
  nav .nav-link {
    font-size: 1rem;
    padding: 0.45rem 0.7rem;
    margin-right: 0.05rem;
  }
  .nav-blur .flex-col > nav {
    margin-top: 0.2rem;
  }
}

.menu-bar-modern {
  background: #f7f8fa;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.2rem;
  display: inline-block;
  min-width: 220px;
}
.menu-bar-modern nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.menu-bar-modern .nav-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.8rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-right: 0.1rem;
  background: transparent;
  box-shadow: none;
}
.menu-bar-modern .nav-link.active, .menu-bar-modern .nav-link:hover, .menu-bar-modern .nav-link:focus {
  background: linear-gradient(90deg, #e0e7ff 60%, #f1f5ff 100%);
  color: #2563eb;
  box-shadow: 0 2px 8px 0 rgba(96,165,250,0.08);
}
@media (max-width: 768px) {
  .menu-bar-modern {
    padding: 0.2rem 0.3rem;
    border-radius: 0.7rem;
    min-width: 140px;
  }
  .menu-bar-modern .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.7rem;
  }
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.25rem;
  color: #64748b;
  background: #f3f4f6;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
}
.header-icon-btn:hover, .header-icon-btn:focus {
  background: #e0e7ff;
  color: #2563eb;
}
.category-bar {
  width: 100%;
  overflow-x: auto;
  background: #f7f8fa;
  border-radius: 0.9rem;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.04);
  padding: 0.2rem 0.2rem 0.2rem 0.5rem;
  margin-top: -0.2rem;
}
.category-scroll {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 600px;
}
.category-link {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.7rem;
  padding: 0.5rem 1.1rem;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  margin-right: 0.1rem;
  white-space: nowrap;
}
.category-link:hover, .category-link:focus, .category-link.active {
  background: #e0e7ff;
  color: #2563eb;
}
@media (max-width: 1024px) {
  .category-scroll {
    min-width: 400px;
  }
  .category-link {
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
  }
}
@media (max-width: 640px) {
  .header-icon-btn {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.05rem;
  }
  .category-bar {
    border-radius: 0.7rem;
    padding: 0.1rem 0.1rem 0.1rem 0.3rem;
  }
  .category-link {
    font-size: 0.93rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.6rem;
  }
}

.more-menu {
    cursor: pointer;
    position: relative;
    min-width: 2.5rem;
    text-align: center;
}
.more-menu-dropdown {
    position: absolute;
    top: 2.2rem;
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.13);
    border: 1.5px solid #e5e7eb;
    z-index: 40;
    padding: 0.3rem 0.2rem;
    display: none;
}
.more-menu-dropdown .dropdown-link {
    display: block;
    padding: 0.5rem 1.1rem;
    color: #374151;
    border-radius: 0.7rem;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    margin-bottom: 0.1rem;
    text-align: left;
    text-decoration: none;
}
.more-menu-dropdown .dropdown-link:hover, .more-menu-dropdown .dropdown-link:focus {
    background: #e0e7ff;
    color: #2563eb;
}
@media (max-width: 640px) {
    .more-menu-dropdown {
        top: 2.1rem;
        min-width: 110px;
    }
    .more-menu {
        min-width: 2rem;
    }
}

/* Header Auth Buttons (Giriş/Kayıt) */
.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    font-size: 1.01rem;
    font-weight: 600;
    border: none;
    border-radius: 1.2rem;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.08);
    margin-left: 0.3rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
    letter-spacing: 0.01em;
    outline: none;
    position: relative;
}
.header-auth-btn:hover, .header-auth-btn:focus {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.13);
    transform: translateY(-1px) scale(1.03);
}
@media (max-width: 640px) {
    .header-auth-btn {
        padding: 0.5rem 1rem;
        font-size: 1.05rem;
        border-radius: 1.1rem;
        margin-left: 0.15rem;
        min-width: 90px;
        min-height: 40px;
        margin-bottom: 0.15rem;
        margin-right: 0.15rem;
        box-sizing: border-box;
    }
    .flex.items-center.gap-3 .header-auth-btn {
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 640px) {
  .container, main, .index-gradient {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-left: 0.2rem !important;
    padding-right: 0.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }
  .card-gradient, .card-shadow, .bg-white, .rounded-2xl, .p-10, .p-6 {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }
  .grid, .space-y-10, .space-y-4 {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .mobile-header {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .mobile-header .mobile-header-icon,
  .mobile-header .mobile-header-avatar,
  .mobile-header .mobile-header-avatar-dropdown-wrapper {
    margin-right: 0.15rem;
    min-width: 2.1rem;
  }
  #loginModal > div,
  #registerModal > div {
    max-width: 92vw !important;
    min-width: 0 !important;
    padding: 1rem 0.8rem !important;
    border-radius: 1rem !important;
    box-sizing: border-box !important;
    margin: 2vh auto !important;
  }
  #registerModal > div {
    max-height: 85vh !important;
    overflow-y: auto !important;
    margin-top: 2vh !important;
    margin-bottom: 2vh !important;
  }
  #loginModal input,
  #registerModal input,
  #registerModal textarea {
    font-size: 1rem !important;
    padding: 0.7rem 0.7rem !important;
    border-radius: 0.8rem !important;
  }
  #loginModal .space-y-4 > * + *,
  #registerModal .space-y-4 > * + * {
    margin-top: 0.8rem !important;
  }
  #loginModal .mb-6,
  #registerModal .mb-6 {
    margin-bottom: 1rem !important;
  }
  #loginModal .mt-6,
  #registerModal .mt-6 {
    margin-top: 1rem !important;
  }
  #loginModal button,
  #registerModal button {
    font-size: 1.05rem !important;
    padding: 0.7rem 0.7rem !important;
    border-radius: 0.8rem !important;
  }
  #loginModal h2,
  #registerModal h2 {
    font-size: 1.3rem !important;
  }
  .mobile-profile-dropdown[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2000 !important;
  }
  /* iOS/Android WebKit: overflow-x:hidden hem html hem body'de olunca sayfa dikey kaymaz.
     Yatay taşmayı html'de kırp; body document yüksekliğini normal şekilde büyütsün. */
  html {
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 640px) {
  .mobile-profile-dropdown[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 40 !important;
  }
}

@media (max-width: 640px) {
  #registerModal > div {
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin-top: 1vh !important;
    margin-bottom: 1vh !important;
    max-width: 96vw !important;
    padding: 0.8rem 0.6rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f1f5f9 !important;
  }
  #registerModal > div::-webkit-scrollbar {
    width: 6px !important;
  }
  #registerModal > div::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
  }
  #registerModal > div::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
  }
  #registerModal > div::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
  }
  #loginModal > div {
    max-width: 96vw !important;
    padding: 0.8rem 0.6rem !important;
    margin: 1vh auto !important;
  }
}

@media (max-width: 480px) {
  #loginModal > div,
  #registerModal > div {
    max-width: 98vw !important;
    padding: 0.6rem 0.5rem !important;
    border-radius: 0.8rem !important;
    margin: 0.5vh auto !important;
  }
  #registerModal > div {
    max-height: 75vh !important;
  }
  #loginModal input,
  #registerModal input,
  #registerModal textarea {
    font-size: 0.95rem !important;
    padding: 0.6rem 0.5rem !important;
    border-radius: 0.6rem !important;
  }
  #loginModal .space-y-4 > * + *,
  #registerModal .space-y-4 > * + * {
    margin-top: 0.6rem !important;
  }
  #loginModal .mb-6,
  #registerModal .mb-6 {
    margin-bottom: 0.8rem !important;
  }
  #loginModal .mt-6,
  #registerModal .mt-6 {
    margin-top: 0.8rem !important;
  }
  #loginModal .text-xs,
  #registerModal .text-xs {
    font-size: 0.75rem !important;
    margin-top: 0.3rem !important;
  }
  #loginModal button,
  #registerModal button {
    font-size: 1rem !important;
    padding: 0.6rem 0.5rem !important;
    border-radius: 0.6rem !important;
  }
  #loginModal h2,
  #registerModal h2 {
    font-size: 1.2rem !important;
  }
  #loginModal label,
  #registerModal label {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
  }
  #loginModal .text-sm,
  #registerModal .text-sm {
    font-size: 0.85rem !important;
  }
}

.header-logo, .logo {
  width: 7.5rem;
  height: 2.5rem;
  display: inline-block;
  background-image: url('/assets/images/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  border-radius: 0.6rem;
  background-color: #fff;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.06);
  vertical-align: middle;
}

@media (max-width: 640px) {
  .entry-card .flex.items-center.gap-2.text-sm.text-gray-500,
  .bg-white .flex.items-center.gap-2.text-sm.text-gray-500 {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.25rem !important;
  }
  .entry-card .w-8.h-8.rounded-full,
  .bg-white .w-8.h-8.rounded-full {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0.25rem;
  }
  .entry-card .flex.flex-col.items-end,
  .bg-white .flex.flex-col.items-end {
    align-items: flex-end !important;
    text-align: right !important;
  }
  .entry-card .font-semibold,
  .bg-white .font-semibold {
    font-size: 1rem !important;
  }
  .entry-card .text-xs,
  .bg-white .text-xs {
    font-size: 0.85rem !important;
  }
}

/* Avatar yeni yapı için */
.entry-avatar-modern {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-right: 1rem;
}
.entry-avatar-modern-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
  flex-shrink: 0;
  margin-top: 2px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.entry-avatar-modern-img:hover {
  box-shadow: 0 4px 16px 0 rgba(59,130,246,0.18);
  transform: scale(1.07);
}
@media (max-width: 768px) {
  .entry-avatar-modern-img {
    width: 36px;
    height: 36px;
  }
  .entry-avatar-modern {
    margin-right: 0.5rem;
  }
}

/* Bildirim Çanı Animasyonu */
@keyframes bell-shake {
  0% { transform: rotate(0); }
  10% { transform: rotate(-15deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(7deg); }
  50% { transform: rotate(-7deg); }
  60% { transform: rotate(5deg); }
  70% { transform: rotate(-5deg); }
  80% { transform: rotate(3deg); }
  90% { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}
.animate-bell-shake {
  animation: bell-shake 1.1s cubic-bezier(.36,.07,.19,.97) both;
}

/* Modern Toast */
.notification-toast {
  box-shadow: 0 8px 32px 0 rgba(30,64,175,0.18), 0 1.5px 6px 0 rgba(30,64,175,0.08);
  border: 1.5px solid #3b82f6;
  background: linear-gradient(90deg, #2563eb 60%, #6366f1 100%);
  color: #fff;
  font-size: 1.08rem;
  cursor: pointer;
  min-width: 320px;
  max-width: 95vw;
  transition: box-shadow 0.2s, transform 0.2s;
}
.notification-toast:hover {
  box-shadow: 0 12px 36px 0 rgba(30,64,175,0.22), 0 2px 8px 0 rgba(30,64,175,0.12);
  transform: scale(1.04);
}
@media (max-width: 640px) {
  .notification-toast {
    min-width: 0;
    padding: 0.7rem 0.7rem;
    font-size: 0.98rem;
    right: 2vw;
    top: 2vw;
  }
}

.entry-author-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.23em;
  flex-wrap: nowrap;
  min-height: 1.3em;
}
.badge-role, .badge-verified, .badge-level {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.3em;
  min-width: 1.3em;
  line-height: 1;
  vertical-align: middle;
  margin: 0 0.04em;
  padding: 0 0.2em;
  box-sizing: border-box;
}
.badge-role {
  color: #fff;
  font-size: 1em;
  border-radius: 50%;
  background: #64748b;
  width: 1.3em;
  min-width: 1.3em;
  padding: 0;
}
.badge-role i {
  font-size: 1em;
  line-height: 1;
}
.badge-verified {
  color: #10b981;
  font-size: 1.1em;
  background: none;
  width: 1.3em;
  min-width: 1.3em;
  padding: 0;
}
.badge-verified i {
  font-size: 1em;
  line-height: 1;
}
.badge-level {
  background: linear-gradient(90deg, #e0e7ff 60%, #f3f4f6 100%);
  color: #2563eb;
  font-weight: 700;
  font-size: 0.97em;
  border-radius: 0.7em;
  padding: 0 0.35em;
  min-width: 1.7em;
  width: auto;
  overflow: visible;
  white-space: nowrap;
  box-shadow: 0 1px 4px 0 rgba(59,130,246,0.07);
}
@media (max-width: 768px) {
  .entry-author-badges {
    gap: 0.15em;
    min-height: 1.1em;
  }
  .badge-role, .badge-verified, .badge-level {
    font-size: 0.93em;
    height: 1.1em;
    min-width: 1.1em;
    padding: 0 0.13em;
    margin: 0 0.02em;
  }
  .badge-level {
    padding: 0 0.18em;
    font-size: 0.91em;
    min-width: 1.3em;
  }
}

.entry-content-modern p {
  line-height: 1;
  margin-bottom: 0.2em;
}