/* ========================================
   OTHER PAGE STYLES
   ======================================== */

/* Other Page */
.other-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.other-content-section {
  padding: 4rem 2rem;
}

.other-content-container {
  max-width: 48rem;
  margin: 0 auto;
}

.other-page-title {
  font-size: 3rem;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 1rem;
  font-family: "Lobster Two", cursive;
}

.other-page-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.other-section-title {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-family: "Lobster Two", cursive;
}

.other-section-content {
  background-color: var(--bg-secondary);
  padding: 2rem;
  margin-bottom: 2rem;
}

.other-section-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.other-section-content p:last-child {
  margin-bottom: 0;
}

.other-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Remove constraints for templates section */
.templates-full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: var(--bg-secondary);
  padding: 3rem 2rem;
}

.templates-full-width .other-section-title {
  text-align: center;
}

.templates-full-width p {
  text-align: center;
  margin-bottom: 2rem;
}

/* Download All Button */
.download-all-container {
  margin-top: 2rem;
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pink-light);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 32px;
  height: 32px;
  padding: 0;
  flex-shrink: 0;
  pointer-events: none;
}

.download-btn.download-all {
  border-radius: 8px;
  padding: 0.8rem 2rem;
  width: auto;
  height: auto;
  font-size: 1rem;
  pointer-events: auto;
}

.download-btn:hover {
  background-color: var(--pink-medium);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Template Gallery Styles */
.template-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.template-item {
  border-radius: 12px;
  padding: 1.5rem;
  flex: 0 0 auto;
  width: 280px;
}

.template-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100%) */
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--bg-secondary);
  position: relative;
}

.template-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.template-info {
  text-align: center;
}

.template-title-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.template-title-row:hover {
  opacity: 0.8;
  text-decoration: none;
}

.template-info h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 600;
  text-align: left;
}

/* Dark mode styles for download button */
[data-theme="dark"] .download-btn {
  background-color: var(--pink-medium);
  color: var(--bg-secondary);
}

[data-theme="dark"] .download-btn:hover {
  background-color: var(--pink-medium-dark);
  color: var(--text-primary);
  text-decoration: none;
}

/* Dark mode styles for templates section */
[data-theme="dark"] .templates-full-width {
  background-color: transparent;
}

/* Example Images Gallery Styles */
.example-images-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.example-section-title {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: "Lobster Two", cursive;
  text-align: center;
}

.example-section-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.example-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.example-item {
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.example-image:hover {
  transform: scale(1.02);
}

.example-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 600;
  font-family: "Lobster Two", cursive;
}

/* Example Modal Styles */
.example-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

.close-modal:hover {
  opacity: 0.7;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 1001;
}

.modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 30px;
}

.modal-nav.next {
  right: 30px;
}

.modal-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

/* Dark mode adjustments */

[data-theme="dark"] .example-image:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .templates-full-width {
    padding: 2rem 1rem;
  }

  .template-gallery {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .template-item {
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
  }

  .example-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
