/* DSS Pradnya Foundation - Main Styles */

:root {
  --dss-primary: #e67e22;
  --dss-primary-dark: #d35400;
  --dss-secondary: #2c3e50;
  --dss-dharma: #e67e22;
  --dss-sanskruti: #27ae60;
  --dss-granth: #2980b9;
  --dss-bg: #f8f5f0;
  --dss-card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dss-bg);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dss-header {
  background: linear-gradient(135deg, var(--dss-secondary) 0%, #1a252f 100%);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dss-header .logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dss-header .logo-section img {
  height: 60px;
  width: auto;
  border-radius: 8px;
  border: 2px solid var(--dss-primary);
  object-fit: contain;
}

.dss-header .site-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--dss-primary);
}

.dss-header .tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.lang-toggle-btn {
  background: var(--dss-primary);
  color: #fff;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--dss-primary-dark);
  transform: translateY(-1px);
}

/* Navigation */
.dss-nav {
  background: #fff;
  border-bottom: 2px solid #f0ebe3;
  padding: 0;
}

.dss-nav .container {
  display: flex;
  gap: 0;
}

.dss-nav a {
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.dss-nav a:hover {
  color: var(--dss-primary);
  background: #fef9f3;
}

.dss-nav a.active {
  color: var(--dss-primary);
  border-bottom-color: var(--dss-primary);
}

/* FAQ Page */
.faq-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.faq-filters {
  text-align: center;
}

.faq-filter-btn {
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
  background: #fff;
  transition: all 0.2s;
}

.faq-filter-btn:hover {
  border-color: var(--dss-primary);
  color: var(--dss-primary);
}

.faq-filter-btn.active {
  background: var(--dss-primary);
  border-color: var(--dss-primary);
  color: #fff;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #ddd;
  overflow: hidden;
}

.faq-header {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-header:hover {
  background: #fafafa;
}

.faq-question-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.faq-question-text {
  font-weight: 600;
  color: var(--dss-secondary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-chevron {
  color: #aaa;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.expanded .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.2rem;
}

.faq-item.expanded .faq-body {
  max-height: none;
  overflow: visible;
  padding: 0 1.2rem 1.2rem;
}

.faq-answer {
  background: #f0f9f4;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0.5rem 0 0;
}

.faq-source {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.faq-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: #999;
  flex-wrap: wrap;
}

.faq-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Feedback Buttons */
.faq-feedback-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f0f0;
}

.faq-feedback {
  display: flex;
  gap: 0.5rem;
}

.btn-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  background: #fff;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-feedback:hover {
  border-color: #aaa;
  color: #555;
}

.btn-like.active {
  background: #e8f5e9;
  border-color: #27ae60;
  color: #27ae60;
}

.btn-dislike.active {
  background: #fde8e8;
  border-color: #e74c3c;
  color: #e74c3c;
}

.feedback-count {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Track Toggle */
.track-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.track-toggle-btn {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  background: #fff;
  transition: all 0.2s;
  flex: 1;
}

.track-toggle-btn:hover {
  border-color: var(--dss-primary);
  color: var(--dss-primary);
}

.track-toggle-btn.active {
  background: var(--dss-primary);
  border-color: var(--dss-primary);
  color: #fff;
}

/* Form Section */
.form-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form-card {
  background: var(--dss-card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--dss-primary);
}

.form-card .form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dss-secondary);
  margin-bottom: 0.5rem;
}

.form-card .form-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-label {
  font-weight: 600;
  color: var(--dss-secondary);
  margin-bottom: 0.3rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dss-primary);
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.btn-dss {
  background: var(--dss-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  width: 100%;
}

.btn-dss:hover {
  background: var(--dss-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Gotra Field */
.gotra-optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}

.gotra-info-link {
  font-size: 0.8rem;
  color: var(--dss-primary);
  text-decoration: none;
  margin-left: 0.5rem;
  font-weight: 400;
}

.gotra-info-link:hover {
  text-decoration: underline;
  color: var(--dss-primary-dark);
}

/* Anonymous Section */
.anonymous-section {
  background: #f8f5f0;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.anonymous-section .form-check-label {
  font-weight: 600;
  color: var(--dss-secondary);
}

.anonymous-section small {
  display: block;
  margin-top: 0.3rem;
  margin-left: 1.5rem;
}

/* Question Blocks */
.question-block {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s;
}

.question-block:hover {
  border-color: var(--dss-primary);
}

.question-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.question-block-number {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dss-primary);
}

.btn-remove-question {
  color: #e74c3c;
  border: 1px solid #e74c3c;
  border-radius: 20px;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  background: #fff;
  transition: all 0.2s;
}

.btn-remove-question:hover {
  background: #e74c3c;
  color: #fff;
}

.btn-add-question {
  color: var(--dss-primary);
  border: 2px dashed var(--dss-primary);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.2s;
}

.btn-add-question:hover {
  background: var(--dss-primary);
  color: #fff;
}

/* Form Error Alert */
#formError {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: none;
  background: #fde8e8;
  color: #c0392b;
}

#formError i {
  margin-right: 0.4rem;
}

.btn-dss:disabled {
  background: #bdc3c7;
  transform: none;
  box-shadow: none;
}

/* Success Section */
.success-card {
  background: var(--dss-card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--dss-sanskruti);
}

.success-card .success-icon {
  font-size: 4rem;
  color: var(--dss-sanskruti);
  margin-bottom: 1rem;
}

.success-card .ref-id {
  background: #f0f9f4;
  border: 2px dashed var(--dss-sanskruti);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dss-secondary);
  display: inline-block;
  margin: 1rem 0;
  letter-spacing: 1px;
}

/* Footer */
.dss-footer {
  background: var(--dss-secondary);
  color: #aaa;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.85rem;
}

.dss-footer p {
  margin: 0.2rem 0;
}

/* Responsive */
@media (max-width: 576px) {
  .dss-header .logo-section img {
    height: 45px;
    width: auto;
  }

  .dss-header .site-name {
    font-size: 1.1rem;
  }

  .dss-header .tagline {
    font-size: 0.75rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .form-card .form-title {
    font-size: 1.3rem;
  }

  .dss-nav a {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .faq-question-text {
    font-size: 0.85rem;
  }

  .faq-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
}
