/**
 * Text to Scripture - Stylesheet
 */

:root {
  --primary-color: #5b71b1;
  --secondary-color: #4badc4;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #5b71b1, #4badc4);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/bg_image.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: -1;
}

/* Header Styles */
header {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.app-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.logo-container img {
  max-height: 80px;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: none;
  background-color: rgba(255, 255, 255, 0.95);
}

.card-header {
  padding: 1rem;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.bg-success {
  background: var(--gradient-primary) !important;
}

.btn-success,
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.btn-success:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #4a5d9a, #3a9cb3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 113, 196, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Form and Input */
.input-column textarea {
  resize: vertical;
  min-height: 180px;
  border: 1px solid #ddd;
  transition: border-color 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
}

.input-column textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(91, 113, 177, 0.25);
}

/* File Upload */
.file-upload-container {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.file-upload-area {
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload-area.highlight {
  background-color: rgba(91, 113, 177, 0.1);
  border: 2px dashed var(--primary-color);
}

/* Verse Card */
.verse-card {
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
}

.verse-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.verse-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Verse Number Badge */
.verse-number {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

/* Chapter Grouping */
.chapter-heading {
  padding-left: 0.5rem;
  border-left: 3px solid var(--primary-color);
  font-weight: 600;
}

.chapter-group {
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.chapter-group:last-child {
  border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container-fluid {
    padding: 1rem;
  }

  .verse-card {
    margin-bottom: 1rem;
  }

  .verse-text {
    font-size: 1rem;
  }

  .chapter-group .row .col-md-6 {
    padding: 0 0.5rem;
  }

  /* Hide print button on mobile devices */
  #print-verses-button {
    display: none;
  }

  /* Fix header layout for mobile */
  .card-header.d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  /* Make buttons stretch across full width */
  .card-header.d-flex > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* Adjust button spacing */
  .card-header .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    flex: 1;
    margin-right: 5px !important;
  }

  .card-header .btn:last-child {
    margin-right: 0 !important;
  }

  /* For the share.php buttons that use d-flex justify-content-center */
  header .d-flex.justify-content-center {
    flex-direction: column;
    width: 100%;
  }

  header .d-flex.justify-content-center .btn {
    margin-bottom: 5px;
    width: 100%;
  }
}

/* Animation for loading */
.spinner-border {
  color: var(--primary-color);
}

/* Share link */
#share-link-container {
  background-color: rgba(91, 113, 177, 0.1);
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

/* Translation Selector */
#translation-select {
  border-color: var(--primary-color);
  box-shadow: none;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
}

#translation-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(91, 113, 177, 0.25);
}

#translation-select optgroup {
  font-weight: 600;
  color: var(--primary-color);
}

#translation-select option {
  font-weight: normal;
  color: var(--text-color);
}

.badge.bg-secondary {
  background: var(--gradient-primary) !important;
  font-weight: 400;
  font-size: 0.8rem;
}

/* Sign up form styling (similar to screenshot) */
.email-input-container {
  display: flex;
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  outline: none;
}

.signup-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  background: linear-gradient(135deg, #4a5d9a, #3a9cb3);
}

/* Main heading styles */
.main-heading {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sub-heading {
  font-size: 1.5rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}
