/* CaYaDev - Modern Dark Theme */

:root {
  --primary-color: #dc2626; /* Kırmızı tema rengi */
  --primary-dark: #b91c1c; /* Koyu kırmızı */
  --primary-light: #ef4444; /* Açık kırmızı */
  --background-dark: #111827; /* Koyu arka plan */
  --background-medium: #1f2937; /* Orta koyu */
  --background-light: #374151; /* Açık koyu */
  --card-bg: #1f2937; /* Kart arka planı */
  --bg-color: #1f2937; /* Genel arka plan */
  --text-primary: #f9fafb; /* Beyaz metin */
  --text-secondary: #d1d5db; /* Gri metin */
  --text-muted: #9ca3af; /* Soluk metin */
  --border-color: #4b5563; /* Kenarlık rengi */
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Highlight effect for forum posts */
.highlight {
  animation: highlight-pulse 2s ease-in-out;
  border: 2px solid var(--primary-color) !important;
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  overflow-y: auto;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--background-medium), var(--background-dark));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: flex-end;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
  transition: var(--transition);
}

.nav-logo img:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(220, 38, 38, 0.1);
}

.user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.user-dropdown:hover {
  background-color: var(--background-light);
}

.user-dropdown i {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--background-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  display: none;
  z-index: 1001;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--background-light);
}

.dropdown-menu a i {
  width: 16px;
  color: var(--primary-color);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Main Content */
.main-container {
  min-height: calc(100vh - 80px);
}

.section {
  display: none;
  padding: 2rem 0;
  min-height: calc(100vh - 80px);
}

.section.active {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content img {
  height: 60px;
  width: auto;
  max-width: 300px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  background: linear-gradient(135deg, var(--background-medium), var(--background-light));
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects Grid */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: linear-gradient(135deg, var(--background-medium), var(--background-light));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.project-cover-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background-light), var(--background-medium));
}

.project-cover-wrapper.no-image .project-cover-placeholder {
  display: flex;
}

.project-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.project-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--background-light), var(--background-medium));
  color: var(--text-muted);
  font-size: 2rem;
  border: 2px dashed var(--border-color);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Project Detail */
.project-detail-header {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-detail-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Project Detail Content Layout - Full Width */
.project-description-section,
.project-versions-section,
.project-stats-section {
  margin-bottom: 2rem;
}

.project-description-section .section-header,
.project-versions-section .section-header,
.project-stats-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Version Cards - Full Width */
.versions-list-full-width .version-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.versions-list-full-width .version-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Project URLs */
.url-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color) !important;
}

.url-link:hover .url-icon {
  transform: scale(1.1);
}

.url-link:hover .url-label {
  color: var(--primary-color) !important;
}

/* Markdown Editor Styles */
.markdown-editor {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-dark);
}

.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--background-medium);
  border-bottom: 1px solid var(--border-color);
}

.markdown-btn {
  padding: 0.5rem 0.75rem;
  background: var(--background-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.markdown-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.markdown-editor textarea {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  background: var(--background-dark);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  resize: vertical;
  min-height: 150px;
}

.markdown-help {
  font-size: 0.8rem;
  line-height: 1.4;
}

.markdown-help code {
  background: var(--background-dark);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  color: var(--primary-color);
}

.version-list {
  list-style: none;
}

.version-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-item:last-child {
  border-bottom: none;
}

.version-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.version-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Forum */
.forum-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.forum-post {
  background: var(--background-medium);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.forum-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.forum-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.forum-post-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.forum-post-content {
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Support & Donate */
.support-content,
.donate-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.support-card,
.donate-card {
  background: linear-gradient(135deg, var(--background-medium), var(--background-light));
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.support-card:hover,
.donate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.support-card i,
.donate-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.support-card h3,
.donate-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.bank-info {
  background: var(--background-dark);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.bank-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--background-medium);
  border-radius: 8px;
}

.copy-btn {
  background: var(--background-light);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.copy-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.bank-detail {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.bank-detail strong {
  min-width: 100px;
  color: var(--text-primary);
}

.bank-detail span {
  flex: 1;
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
  background: var(--background-dark);
  padding: 0.5rem;
  border-radius: 4px;
  margin: 0 0.5rem;
}

.donate-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Forum Post Detail Styles */
.forum-post-detail {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.forum-post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.forum-post-title {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.75rem 0;
  line-height: 1.3;
}

.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.author-info, .post-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-content {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  min-height: auto;
  height: auto;
  overflow-y: auto;
}

.forum-attachments {
  background: var(--background-medium);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0.5rem 0 0 0;
}

.forum-attachments h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background-dark);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.attachment-item:hover {
  background: var(--background-medium);
  border-color: var(--primary-color);
}

.forum-replies-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.forum-replies-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reply-item {
  background: var(--background-medium);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reply-author, .reply-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reply-content {
  color: var(--text-primary);
  line-height: 1.6;
}

.reply-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.reply-form-section {
  background: var(--background-medium);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.reply-form-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.version-file-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-file-info i {
  color: var(--primary-color);
}

.no-replies {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

.login-prompt {
  text-align: center;
  padding: 1.5rem;
  background: var(--background-medium);
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.btn-link:hover {
  color: var(--primary-hover);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--background-medium);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
  overflow-y: auto;
}

/* Genişletilmiş modaller */
#new-share-modal .modal-content,
#edit-share-modal .modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Proje modal'ları */
#new-project-modal .modal-content,
#edit-project-modal .modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-primary);
  font-weight: 600;
}

.close {
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-color);
}

/* Forms */
form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-dark);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  padding: 0.25rem 0;
  user-select: none;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-color: var(--background-dark);
  border: 2px solid var(--border-color);
  border-radius: 3px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

/* Profile Modal Styles */
.modal-large {
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.profile-tabs {
  display: flex;
  background-color: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
  background-color: var(--background-light);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.profile-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-image-section {
  text-align: center;
}

.profile-image-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-form-section .form-group {
  margin-bottom: 1.5rem;
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
}

@media (max-width: 768px) {
  .profile-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-image-preview {
    width: 120px;
    height: 120px;
  }
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.notification.success {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.notification.error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Back Button */
.back-btn {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-logo {
    display: flex;
    align-items: flex-end;
  }
  
  .nav-logo img {
    height: 30px;
    max-width: 120px;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background-medium);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .hero-content img {
    height: 50px;
    max-width: 250px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile responsive for version cards */
  .versions-list-full-width .version-card {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .version-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .version-actions .btn {
    width: 100%;
    max-width: 200px;
  }

  .support-content,
  .donate-content {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .bank-detail {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Forum Responsive */
  .forum-post {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .forum-post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .forum-post-title {
    font-size: 1rem;
  }

  .forum-post-detail {
    padding: 1rem;
  }

  .forum-post-title {
    font-size: 1.4rem;
  }

  .forum-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .forum-content {
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 60vh;
    overflow-y: auto;
  }

  .reply-item {
    padding: 0.75rem;
  }

  .reply-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Tablet ve daha küçük ekranlar için ek responsive kurallar */
@media (max-width: 480px) {
  .forum-post {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .forum-post-detail {
    padding: 0.75rem;
  }

  .forum-post-title {
    font-size: 1.2rem;
  }

  .forum-content {
    font-size: 0.9rem;
  }

  .reply-item {
    padding: 0.5rem;
  }

  .author-avatar {
    width: 20px !important;
    height: 20px !important;
  }

  .default-avatar {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  .forum-content {
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
  }
}

/* Forum post content responsive */
.forum-post .forum-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .forum-post .forum-content {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .forum-post .forum-content {
    max-height: 120px;
    font-size: 0.85rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Admin Panel */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-list {
  background: var(--background-medium);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-item:last-child {
  border-bottom: none;
}

.admin-item-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.admin-item-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: #16a34a;
  color: white;
}

.btn-success:hover {
  background: #15803d;
}

.btn-warning {
  background: #ca8a04;
  color: white;
}

.btn-warning:hover {
  background: #a16207;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-admin {
  background: var(--primary-color);
  color: white;
}

.status-banned {
  background: #dc2626;
  color: white;
}

.status-resolved {
  background: #16a34a;
  color: white;
}

.status-pending {
  background: #ca8a04;
  color: white;
}

/* Project Tabs */
.project-tabs {
  display: flex;
  background-color: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
  margin: 2rem 0 1rem 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-tab-content {
  display: none;
  padding: 2rem 0;
}

.project-tab-content.active {
  display: block;
}

.project-detail-header {
  margin-bottom: 2rem;
}

.back-btn {
  margin-bottom: 1rem;
}

.forum-info {
  background: var(--background-dark);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color);
}

.forum-info p {
  margin: 0;
  color: var(--text-secondary);
}

.forum-info i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Version accessibility improvements */
.version-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--background-dark);
}

.version-item:hover {
  border-color: var(--primary-color);
}

/* Forum category styles */
.forum-post {
  position: relative;
}

.forum-post-category {
  margin-bottom: 0.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--primary-color);
  color: white;
}

.forum-post-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Forum Activity Styles */
.forum-activity-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
}

.tab-btn:hover {
  background: var(--background-light);
  color: var(--text-primary);
}

.forum-activity-content {
  display: none;
}

.forum-activity-content.active {
  display: block;
}

.forum-post-item, .forum-reply-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.forum-post-item:hover, .forum-reply-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-header, .reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.post-header h4, .reply-header h4 {
  margin: 0;
  color: var(--text-primary);
}

.post-header h4 a, .reply-header h4 a {
  color: var(--primary-color);
  text-decoration: none;
}

.post-header h4 a:hover, .reply-header h4 a:hover {
  text-decoration: underline;
}

.post-date, .reply-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-content, .reply-content {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-actions, .reply-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.forum-posts-list .loading, .forum-replies-list .loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Auth Modal Improvements */
.modal-auth {
  max-width: 450px;
  width: 90%;
  margin: 2rem auto;
}

.auth-form {
  padding: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-medium);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

/* Improved Checkbox */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  position: relative;
  padding-left: 2.5rem;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 1.2rem;
  width: 1.2rem;
  background-color: var(--background-medium);
  border: 2px solid var(--border-color);
  border-radius: 3px;
  transition: var(--transition);
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-color);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  margin-left: 0.5rem;
  color: var(--text-secondary);
}

/* Form Row for Responsive Layout */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Full Width Button */
.btn-full {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.auth-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Reset Password Styles */
.reset-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.reset-password-card {
  background: var(--background-medium);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
}

.reset-password-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.reset-password-info {
  background: var(--background-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.reset-password-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.reset-password-info p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.reset-password-info .user-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.reset-password-info .user-detail:last-child {
  border-bottom: none;
}

.reset-password-info .user-label {
  font-weight: 500;
  color: var(--text-primary);
}

.reset-password-info .user-value {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  background: var(--background-medium);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.reset-password-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.reset-password-links .btn {
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .reset-password-container {
    padding: 1rem;
    min-height: 50vh;
  }
  
  .reset-password-card {
    padding: 1.5rem;
  }
  
  .reset-password-info {
    padding: 1rem;
  }
  
  .reset-password-links .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* ============================================ */
/* SHARES (PAYLAŞIMLAR) STİLLERİ */
/* ============================================ */

.shares-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: var(--background-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-filter {
  padding: 0.75rem 1rem;
  background-color: var(--background-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  min-width: 180px;
  transition: var(--transition);
  cursor: pointer;
}

.category-filter:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.category-filter option {
  background-color: var(--background-medium);
  color: var(--text-primary);
}

.shares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.share-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.share-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.share-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--background-medium);
}

.share-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.share-card:hover .share-cover img {
  transform: scale(1.05);
}

.share-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.share-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.share-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.share-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.share-actions .btn {
  flex: 1;
  min-width: fit-content;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

/* Admin shares list */
.admin-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-item-info {
  flex: 1;
}

.admin-item-info h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-item-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* Responsive design for shares */
@media (max-width: 768px) {
  .shares-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: none;
  }
  
  .filter-controls {
    justify-content: flex-start;
  }
  
  .category-filter {
    min-width: 150px;
    max-width: 200px;
  }
  
  .shares-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .share-actions {
    flex-direction: column;
  }
  
  .share-actions .btn {
    flex: none;
  }
  
  .admin-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-item-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

/* Form styles for share modals */
.modal-content form .form-group {
  margin-bottom: 1rem;
}

.modal-content form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-content form .form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-content form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Shares HTML template styles */
.share-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--background-dark);
  color: var(--text-primary);
  min-height: 100vh;
}

.share-container .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.share-container .back-link:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

/* Custom File Input Styles */
.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
}

.file-input-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.file-input-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--background-light), var(--card-bg));
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-height: 70px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.file-input-custom:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), rgba(220, 38, 38, 0.1));
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.file-input-custom.has-files {
  border-color: var(--primary-color);
  border-style: solid;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), var(--card-bg));
  color: var(--primary-color);
}

.file-input-custom.has-files:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), var(--primary-color));
  color: var(--text-primary);
}

.file-input-icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.file-input-custom:hover .file-input-icon {
  transform: scale(1.1);
}

.file-input-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.file-input-main {
  font-size: 1rem;
  font-weight: 600;
}

.file-input-sub {
  font-size: 0.875rem;
  opacity: 0.8;
}

.file-input-files {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Progress Bar Styles */
.upload-progress {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.upload-progress.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-percentage {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--background-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Upload Complete Animation */
.upload-complete {
  color: #10b981 !important;
}

.upload-complete .progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Loading State for Forms */
.form-loading .btn {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.form-loading .btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-input-custom {
    padding: 0.75rem;
    min-height: 50px;
  }
  
  .file-input-main {
    font-size: 0.875rem;
  }
  
  .file-input-sub {
    font-size: 0.75rem;
  }
  
  .progress-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* File Upload Area Styles */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--background-light);
  margin-bottom: 1rem;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(220, 38, 38, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(220, 38, 38, 0.1);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upload-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.upload-link {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
}

.upload-link:hover {
  color: var(--primary-light);
}

.upload-info {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* File List Styles */
.file-list {
  margin-top: 1rem;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--background-medium);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.clear-all-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}

.clear-all-btn:hover {
  background: var(--primary-dark);
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.file-item:hover {
  background: var(--background-light);
  transform: translateX(5px);
}

.file-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.file-info i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.remove-file-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Responsive File Upload */
@media (max-width: 768px) {
  .file-upload-area {
    padding: 1.5rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  .upload-text {
    font-size: 1rem;
  }
  
  .file-list-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .file-info {
    width: 100%;
  }
  
  .remove-file-btn {
    align-self: flex-end;
  }
}

/* Markdown Editor Styles */
.markdown-editor {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-light);
  overflow: hidden;
}

.markdown-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.markdown-toolbar button {
  background: var(--background-medium);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.markdown-toolbar button:hover {
  background: var(--background-light);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.markdown-toolbar button:active {
  background: var(--primary-color);
  color: white;
}

.markdown-editor textarea {
  border: none !important;
  border-radius: 0 !important;
  resize: vertical;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  min-height: 200px;
}

/* Share URLs Styles */
.share-urls {
  margin: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-url {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--background-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.share-url:hover {
  background: var(--background-light);
  color: var(--text-primary);
  border-color: var(--primary-color);
  text-decoration: none;
}

.share-url i {
  font-size: 12px;
}

/* Markdown Content Styles */
.markdown-content {
  line-height: 1.7;
  color: var(--text-primary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.markdown-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
  margin-top: 1.8rem;
}

.markdown-content h3 {
  font-size: 1.5rem;
  margin-top: 1.6rem;
}

.markdown-content h4 {
  font-size: 1.25rem;
  margin-top: 1.4rem;
}

.markdown-content h5 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
}

.markdown-content h6 {
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.markdown-content p {
  margin: 1rem 0;
  color: var(--text-primary);
}

.markdown-content p:first-child {
  margin-top: 0;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content strong,
.markdown-content b {
  font-weight: 700;
  color: var(--text-primary);
}

.markdown-content em,
.markdown-content i {
  font-style: italic;
  color: var(--text-secondary);
}

.markdown-content code {
  background: var(--background-dark);
  color: var(--primary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
  white-space: pre;
  word-break: break-word;
  position: relative;
  cursor: pointer;
  display: block;
  line-height: 1.4;
  margin: 0.25rem 0;
  width: 100%;
}

.markdown-content code:hover {
  background: var(--background-medium);
}

.markdown-content code::after {
  content: "📋";
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.markdown-content code:hover::after {
  opacity: 1;
}

.markdown-content pre {
  background: var(--background-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: pre;
  position: relative;
}

.markdown-content pre:hover .copy-button {
  opacity: 1;
}

.markdown-content pre .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.markdown-content pre .copy-button:hover {
  background: var(--primary-dark);
}

.markdown-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre;
}

.markdown-content blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--background-medium);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.markdown-content blockquote p {
  margin: 0;
  color: var(--text-secondary);
}

.markdown-content ul,
.markdown-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.markdown-content li {
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.markdown-content ul li {
  list-style-type: disc;
}

.markdown-content ol li {
  list-style-type: decimal;
}

.markdown-content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.markdown-content a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

.markdown-content a:visited {
  color: var(--primary-dark);
}

.markdown-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 2rem 0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--background-medium);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.markdown-content th,
.markdown-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.markdown-content th {
  background: var(--background-dark);
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-content td {
  color: var(--text-primary);
}

.markdown-content tr:nth-child(even) {
  background: var(--background-light);
}

.markdown-content tr:hover {
  background: var(--background-dark);
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

.markdown-content .highlight {
  background: rgba(220, 38, 38, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Versiyon Tipi Seçici */
.version-type-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.version-type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-medium);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.version-type-option:hover {
  border-color: var(--primary-color);
  background: var(--background-light);
}

.version-type-option.active {
  border-color: var(--primary-color);
  background: rgba(220, 38, 38, 0.1);
}

.version-type-option input[type="radio"] {
  display: none;
}

.version-type-option i {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.version-type-option.active i {
  color: var(--primary-color);
}

.version-type-option span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Gallery Grid Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-medium);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Gallery Grid */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 100%;
  }
}
