/* Yazmak Nedir Page Styles */

.yazmak-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  min-height: calc(100vh - 300px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.yazmak-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* A4 Document Styling */
.a4-document {
  width: 210mm; /* A4 width */
  min-height: 297mm; /* A4 height */
  background: white;
  padding: 40mm 25mm; /* A4 margins */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;

  /* Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Language Toggle for Yazmak Page */
.a4-document .language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.a4-document .language-toggle .lang-btn {
  padding: 8px 20px;
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Avenir", sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.a4-document .language-toggle .lang-btn:hover {
  background: #fe805d;
  color: white;
  border-color: #fe805d;
  transform: translateY(-2px);
}

.a4-document .language-toggle .lang-btn.active {
  background: #fe805d;
  color: white;
  border-color: #fe805d;
  box-shadow: 0 4px 15px rgba(254, 128, 93, 0.3);
}

.document-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.document-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fe805d;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 20px;
  letter-spacing: 1px;
}

/* Language Content */
.lang-content {
  display: none;
  flex: 1;
}

.lang-content.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease;
}

.document-text {
  flex: 1;
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.9;
  text-align: justify;
}

.document-text p {
  margin-bottom: 20px;
  text-indent: 30px;
}

.document-text p:first-child {
  text-indent: 0;
}

.document-footer {
  margin-top: 60px;
  text-align: right;
  border-top: 2px solid #fe805d;
  padding-top: 20px;
}

.document-author {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #fe805d;
  margin-bottom: 5px;
}

.document-date {
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #666;
}

/* Responsive Design */

/* Tablets and below */
@media (max-width: 991px) {
  .yazmak-section {
    padding: 60px 20px;
  }

  .a4-document {
    width: 90%;
    min-height: auto;
    padding: 50px 40px;
  }

  .a4-document .language-toggle {
    top: 15px;
    right: 15px;
  }

  .document-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .document-text {
    font-size: 1rem;
  }

  .document-footer {
    margin-top: 40px;
  }
}

/* Large Phones */
@media (max-width: 767px) {
  .yazmak-section {
    padding: 40px 15px;
  }

  .a4-document {
    width: 95%;
    padding: 40px 30px;
  }

  .a4-document .language-toggle {
    position: relative;
    top: 0;
    right: 0;
    justify-content: center;
    margin-bottom: 20px;
  }

  .a4-document .language-toggle .lang-btn {
    padding: 7px 18px;
    font-size: 12px;
  }

  .document-title {
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 0;
  }

  .document-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .document-text p {
    margin-bottom: 15px;
    text-indent: 20px;
  }

  .document-author {
    font-size: 1.2rem;
  }

  .document-date {
    font-size: 0.9rem;
  }
}

/* Small Phones */
@media (max-width: 575px) {
  .yazmak-section {
    padding: 30px 10px;
  }

  .a4-document {
    width: 100%;
    padding: 30px 20px;
    border-radius: 4px;
  }

  .a4-document .language-toggle {
    gap: 6px;
    margin-bottom: 15px;
  }

  .a4-document .language-toggle .lang-btn {
    padding: 6px 15px;
    font-size: 11px;
  }

  .document-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .document-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .document-text p {
    text-indent: 15px;
  }

  .document-footer {
    margin-top: 30px;
    padding-top: 15px;
  }

  .document-author {
    font-size: 1.1rem;
  }

  .document-date {
    font-size: 0.85rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
