/* Global Ayarlar & Renk Değişkenleri */
:root {
  --primary-color: #5f0a87;
  --secondary-color: #a4508b;
  --accent-color: #ffc107;
  --text-color: #333;
  --background-color: #f8f9fa;
  --transition-speed: 0.4s;
  --transition-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: "Roboto", sans-serif; background: var(--background-color); color: var(--text-color); }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { font-weight: 700; margin-bottom: 15px; }
p { line-height: 1.6; margin-bottom: 10px; }
button { cursor: pointer; border: none; outline: none; }
.section-padding { padding: 60px 0; }
/* Fade-in Efekti */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) var(--transition-easing),
              transform var(--transition-speed) var(--transition-easing);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* HERO Bölümü */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(-45deg, #a4508b, #5f0a87, #ee7752, #23a6d5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow: hidden;
  padding: 20px;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-content { text-align: center; z-index: 3; }
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.2);
}
/* Daktilo Efekti */
#typewriter::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: var(--accent-color);
  font-weight: bold;
  margin-left: 3px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeUp 1.3s var(--transition-easing) forwards;
  opacity: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Dosya Yükleme Alanı */
.drop-zone {
  border: 2px dashed #fff;
  padding: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 20px;
  transition: background 0.3s;
  cursor: pointer;
}
.drop-zone.dragover { background: rgba(255,255,255,0.2); }
.file-label {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}
#uploadBtn {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  transition: background var(--transition-speed);
  margin-bottom: 20px;
}
#uploadBtn:hover { background: #ffca2c; }
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.preview-container img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.progress-bar {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5f0a87, #a4508b);
  width: 0%;
  border-radius: 10px 0 0 10px;
  transition: width 0.4s ease;
}
.progress-text {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}
/* CTA Bölümü */
.cta {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  top: -200px;
  left: -200px;
  animation: pulse 5s infinite ease-in-out;
  border-radius: 50%;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.cta h2 { font-size: 1.8rem; margin-bottom: 20px; }
.cta p {
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 700px;
  margin: 0 auto;
}
.cta-button {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 4px;
  transition: background var(--transition-speed) var(--transition-easing),
              transform var(--transition-speed) var(--transition-easing),
              box-shadow 0.3s ease;
}
.cta-button:hover {
  background: #ffca2c;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}
/* Nasıl Çalışır, Özellikler, FAQ Bölümleri */
section.how-it-works, section.features, section.faq {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
/* Nasıl Çalışır Kartları */
.how-it-works .card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 1 calc(25% - 30px);
  max-width: calc(25% - 30px);
  text-align: center;
}
.how-it-works .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.how-it-works .card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.how-it-works .card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.how-it-works .card p {
  font-size: 1rem;
  color: #666;
}
/* Özellikler Kartları */
.features .feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 1 calc(25% - 30px);
  max-width: calc(25% - 30px);
  text-align: center;
}
.features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.features .feature-card .icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}
.features .feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.features .feature-card p {
  font-size: 1rem;
  color: #666;
}
/* SSS Bölümü */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-card {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}
.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e9ecef;
}
.faq-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
}
.faq-header .icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.faq-card.open .faq-header .icon {
  transform: rotate(180deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-card.open .faq-body {
  padding: 20px;
  max-height: 300px;
}
.faq-body p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}
/* Sonuç Kutusu (Paylaşım Alanı) */
.error-message {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}
.result-box {
  display: none;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Resim ve Link Paylaşım Alanları */
.result-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.result-image {
  flex: 1;
  max-width: 50%;
  padding: 10px;
}
.result-links {
  flex: 1;
  max-width: 50%;
  padding: 10px;
}
.result-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.result-item {
  margin-bottom: 15px;
}
.result-item label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.result-item input,
.result-item textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.1rem;
  overflow-x: auto;
  word-break: break-all;
}
.copy-btn {
  margin-top: 5px;
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-speed);
  font-size: 1.1rem;
}
.copy-btn:hover {
  background: #ffca2c;
}
/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  /* Kartların düzeni: tek kolon */
  .cards-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .how-it-works .card,
  .features .feature-card {
    flex: 1 1 90%;
    max-width: 90%;
  }
  /* Sonuç kutusu: dikey yerleşim */
  .result-layout {
    flex-direction: column;
    align-items: center;
  }
  .result-image,
  .result-links {
    max-width: 100%;
    min-width: 0;
  }
}
