/* Modern Styles - Light Theme Only */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #1f2937;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Modern Button Styles */
.custom-btn {
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  outline: none;
  border: none;
  overflow: hidden;
  transform: translateY(0);
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.custom-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.custom-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.custom-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.custom-btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.container section.flex {
  flex-direction: column;
}
.CodeMirror.cm-s-default {
  max-width: 100%;
  margin-top: 40px;
}
/* Button Variants with Gradients */
.btn-convert {
  background: linear-gradient(135deg, #08cd14 0%, #06d77a 100%);
  position: relative;
  z-index: 1;
}

.btn-convert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #06d77a 0%, #08cd14 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.btn-convert:hover::before {
  opacity: 1;
}

.btn-minify {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.btn-minify::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.btn-minify:hover::before {
  opacity: 1;
}

.btn-deep-minify {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.btn-deep-minify::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.btn-deep-minify:hover::before {
  opacity: 1;
}

/* Code Editor Containers */
.code-input,
.code-output {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.code-input:hover,
.code-output:hover {
  border-color: #d1d5db;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Statistics Badge */
.stats-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e5e7eb;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stats-badge:hover {
  background: #d1d5db;
  transform: scale(1.05);
}

.compression-badge {
  position: absolute;
  top: 12px;
  right: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  animation: slideInRight 0.5s ease;
  z-index: 10;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Action Buttons (Copy, Clear, Download) */
.copy-code-btn,
.download-code-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  z-index: 10;
}

.download-code-btn {
  right: 120px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.copy-code-btn:hover,
.download-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.copy-code-btn:active,
.download-code-btn:active {
  transform: translateY(0);
}

.copy-code-btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.code-btn {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.clear-code-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  z-index: 10;
}

.clear-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.clear-code-btn:active {
  transform: translateY(0);
}
main {
  min-height: calc(100vh - 225px);
  animation: fadeIn 0.5s ease;
}

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

/* Header Improvements */
header {
  animation: slideDown 0.5s ease;
}

header nav {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header .bg-gradient-to-r {
  background: linear-gradient(270deg, #293CA6, #3854A6, #4a63b8);
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  background-color: #e5e7eb;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/*-------------- notification ---------------------- */

#notification {
  position: fixed;
  top: 20px;
  right: -300px; /* Başlangıçta sağda olacak, sonra gelecek */
  width: 300px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.5s ease-in-out;
}
#notification.error {
  background-color: #f44336;
}
#notification.success {
  background-color: #4caf50;
}

.notification-content {
  color: #fff;
}
#notification.info  {
  background-color: #2196f3;

}

.progress-bar {
  height: 10px;
  background-color: #fff;
  margin-top: 10px;
  width: 100%;
  border-radius:3px;
  animation: progress 4s ease forwards;
}

@keyframes progress {
  0% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

.hidden {
  display: none;
}
/*-------------- notification ---------------------- */



/* CodeMirror Theme Customization */
.CodeMirror {
  background: #ffffff !important;
  color: #1f2937 !important;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.CodeMirror-gutters {
  background: #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
}

.CodeMirror-linenumber {
  color: #6b7280 !important;
}

.CodeMirror-cursor {
  border-left: 2px solid #293CA6 !important;
}

.CodeMirror-selected {
  background: #e5e7eb !important;
}

[data-theme="dark"] .CodeMirror {
  background: #1e293b !important;
}

[data-theme="dark"] .CodeMirror-gutters {
  background: #0f172a !important;
  border-right-color: #334155 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .code-btn {
    padding: 20px 8px;
    gap: 12px;
  }
  
  .custom-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .clear-code-btn,
  .copy-code-btn,
  .download-code-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .download-code-btn {
    right: 90px;
  }
  
  .stats-badge,
  .compression-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

@media (min-width: 1024px) { 
  .CodeMirror.cm-s-default {
    max-width: 500px;
  }
  .container section.flex {
    flex-direction: row;
  }
}

@media (min-width: 1280px) {
  .CodeMirror.cm-s-default {
    max-width: 560px;
  }
}

@media (min-width: 1536px) {
  .CodeMirror.cm-s-default {
    max-width: 700px;
  }
}

/* Pulse Animation for Action Buttons */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Tooltip Styles */
.tooltip {
  /* position: relative; */
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #e5e7eb;
  color: #1f2937;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  white-space: nowrap;
  font-size: 13px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--bg-tertiary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Sample Code Templates */
.sample-templates {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.template-btn {
  padding: 8px 16px;
  background: #e5e7eb;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.template-btn:hover {
  background: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 100;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #293CA6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Feature Cards */
.feature-card {
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  color: #1f2937;
}

.feature-card p {
  color: #4b5563;
}

.feature-card-green {
  border-color: #10b981;
}

.feature-card-green:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-color: #059669;
}

.feature-card-blue {
  border-color: #3b82f6;
}

.feature-card-blue:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-color: #2563eb;
}

.feature-card-purple {
  border-color: #a855f7;
}

.feature-card-purple:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
  border-color: #9333ea;
}

/* Feature Tags */
.feature-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: #3b82f6;
}

[data-theme="dark"] .feature-tag-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.feature-tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: #10b981;
}

[data-theme="dark"] .feature-tag-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.feature-tag-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border-color: #a855f7;
}

[data-theme="dark"] .feature-tag-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.feature-tag-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: #f59e0b;
}

[data-theme="dark"] .feature-tag-yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.feature-tag-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: #ef4444;
}

[data-theme="dark"] .feature-tag-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.feature-tag-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: #6366f1;
}

[data-theme="dark"] .feature-tag-indigo {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.feature-tag-pink {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  border-color: #ec4899;
}

[data-theme="dark"] .feature-tag-pink {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}

.feature-tag-gray {
  background: #e5e7eb;
  color: #1f2937;
  border-color: #e5e7eb;
}

/* SEO Section */
.seo-section {
  background: #ffffff;
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid #e5e7eb;
  transition: background-color 0.3s ease;
}

/* Blog Section */
.blog-section {
  background: #f5f7fa;
  padding: 48px 0;
  transition: background-color 0.3s ease;
}

.blog-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #d1d5db;
}

.blog-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.blog-tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

[data-theme="dark"] .blog-tag-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.blog-tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

[data-theme="dark"] .blog-tag-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.blog-tag-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

[data-theme="dark"] .blog-tag-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.blog-tag-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}

[data-theme="dark"] .blog-tag-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

/* Blog Article Styles - Dark Mode Support */
article.prose {
  color: #1f2937;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #1f2937 !important;
}

.prose p {
  color: #4b5563;
}

.prose strong {
  color: #1f2937;
}

.prose a {
  color: #2563eb;
}

[data-theme="dark"] .prose a {
  color: #60a5fa;
}

/* Breadcrumb Dark Mode */
.breadcrumb-text {
  color: #6b7280;
}

.breadcrumb-current {
  color: #1f2937;
}

/* Article Meta Info */
.article-meta {
  color: #4b5563;
}

/* Article Lead Text */
.article-lead {
  color: #4b5563;
}

/* Info Boxes */
.info-box {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .info-box {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.success-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .success-box {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .warning-box {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Theme Selector Styles - Shadcn/UI Inspired */
.theme-selector {
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  position: relative;
}

.theme-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  appearance: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  min-width: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 16px;
  padding-right: 28px;
}

.theme-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.theme-select:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.theme-select:active {
  background: rgba(255, 255, 255, 0.12);
}

.theme-select option {
  background: #1e293b;
  color: white;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

.theme-select option:hover {
  background: #334155;
}

.theme-select option:checked {
  background: #293CA6;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .theme-selector {
    margin-left: 10px;
  }
  
  .theme-select {
    font-size: 12px;
    padding: 5px 24px 5px 8px;
    min-width: 100px;
    background-size: 14px;
    background-position: right 5px center;
  }
}