:root {
  --primary-color: #000000;
  --secondary-color: #444444;
  --background-color: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --hover-color: #f5f5f5;
  --accent-color: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1000px;
  padding: 2rem;
  margin: 0 auto;
  position: relative;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

h1 a {
  text-decoration: none;
  color: inherit;
}

h1 span:first-child {
  font-weight: 700;
  opacity: 1;
}

h1 span:last-child {
  font-weight: 400;
  opacity: 0.7;
}

.tagline {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.qr-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }

  .content-column {
    order: 2;
  }

  .qr-column {
    order: 1;
    margin-bottom: 2rem;
  }
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  color: var(--secondary-color);
}

input[type="text"],
select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.options-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.option-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-group label {
  font-weight: 500;
  color: #333;
}

.option-group input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.option-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.option-group input[type="range"] {
  width: 100%;
  margin: 0.5rem 0;
}

.option-group input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

button {
  padding: 0.9rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: #222;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.secondary-btn {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.secondary-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px var(--shadow-color);
}

.secondary-btn:disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #e0e0e0;
  box-shadow: none;
  cursor: not-allowed;
}

.output-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

#qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 350px;
  width: 100%;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

#qr-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

#qr-output {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: opacity 0.3s;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Yükleme animasyonu için stil */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 3px solid var(--accent-color);
  animation: spin 0.8s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#qr-output img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.qr-style-squares img {
  filter: none;
}

.qr-style-dots img {
  filter: url("#dots");
}

.qr-style-circles img {
  filter: url("#circles");
}

.qr-style-rounded img {
  filter: url("#rounded");
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#qr-output.active {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 1;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links a:not(:last-child)::after {
    display: none;
  }
}

.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 100;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s;
  color: var(--primary-color);
}

.lang-btn:hover {
  background-color: var(--hover-color);
}

.lang-btn.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

@media (max-width: 600px) {
  .language-selector {
    top: 15px;
    right: 15px;
  }

  .lang-btn {
    padding: 4px 6px;
    font-size: 11px;
  }
}

/* Added styles for new sections */
.info-section h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-content p {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.usage-examples h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.example-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.example-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.example-item ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.example-item ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.example-item ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.learn-more {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.learn-more:hover {
  text-decoration: underline;
}

/* Main navigation */
.main-nav {
  margin-top: 1.5rem;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-color);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

@media (max-width: 600px) {
  .main-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .benefits-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* Merkezi ana sayfa tasarımı için eklenen stiller */
.centered-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
}

.about-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-header .subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-story {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.about-story h3,
.about-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-story p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-contact {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.about-contact p {
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background-color: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px var(--shadow-color);
}

.contact-item i {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.contact-item p {
  margin-bottom: 0;
  font-weight: 500;
}

/* Avantajlar Bölümü Stilleri */
.advantages-section {
  margin-top: 2rem;
}

.advantages-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.advantage-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.advantage-item span {
  font-weight: 600;
}

@media (max-width: 600px) {
  .advantage-list {
    grid-template-columns: 1fr;
  }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .centered-main {
    padding: 0 1rem;
  }

  .about-header h2 {
    font-size: 1.8rem;
  }

  .about-story,
  .about-contact {
    padding: 1.5rem;
  }
}

/* QR Code Styles */
.qr-style-squares {
  border-radius: 0;
}

.qr-style-dots {
  border-radius: 50%;
}

.qr-style-circles {
  border-radius: 50%;
}

.qr-style-rounded {
  border-radius: 10px;
}

/* İstatistik ile ilgili stilleri kaldır */
.stats-trigger,
.stats-modal,
.stats-modal-content,
.stats-close-btn {
  display: none;
}

.copyright-text-tr,
.copyright-text-en {
  display: none;
}

[lang="tr"] .copyright-text-tr {
  display: inline !important;
}

[lang="tr"] .copyright-text-en {
  display: none !important;
}

[lang="en"] .copyright-text-tr {
  display: none !important;
}

[lang="en"] .copyright-text-en {
  display: inline !important;
}

/* Dil değişimi için CSS stilleri */
.lang-tr,
.lang-en {
  display: none;
}

[lang="tr"] .lang-tr {
  display: block;
}

[lang="tr"] .lang-en {
  display: none;
}

[lang="en"] .lang-tr {
  display: none;
}

[lang="en"] .lang-en {
  display: block;
}

/* Liste öğelerinin dil durumları */
[lang="tr"] ul.lang-tr,
[lang="en"] ul.lang-en {
  display: block;
}

[lang="tr"] ul.lang-en,
[lang="en"] ul.lang-tr {
  display: none;
}
