/**
 * FAQ Page Styles
 * © 2025 Ophraxx
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5865f2;
  --primary-light: #7289da;
  --bg-darker: #0f0f0f;
  --bg-dark: #1a1a1a;
  --bg-card: #222222;
  --text-white: #ffffff;
  --text-light: #f0f0f0;
  --text-gray: #b0b0b0;
  --accent: #ff6b9d;
  --success: #51cf66;
  --warning: #faa61a;
  --error: #ff6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(88, 101, 242, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(88, 101, 242, 0.1);
  color: var(--text-white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 80px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 3.5em;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.3em;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Search Container */
.search-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 1.2em;
  z-index: 2;
}

#searchInput {
  width: 100%;
  padding: 18px 20px 18px 50px;
  background: var(--bg-card);
  border: 2px solid rgba(88, 101, 242, 0.2);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 1.1em;
  font-family: inherit;
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
  transform: translateY(-2px);
}

#searchInput::placeholder {
  color: var(--text-gray);
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 25px;
  color: var(--text-gray);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.category-btn:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* FAQ Container */
.faq-container {
  display: grid;
  gap: 25px;
}

/* FAQ Item */
.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-item.active {
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: var(--shadow-hover);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(88, 101, 242, 0.05);
}

.faq-question-text {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-white);
  flex: 1;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.faq-toggle i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  background: var(--primary);
}

.faq-item.active .faq-toggle i {
  color: var(--text-white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(88, 101, 242, 0.02);
}

.faq-answer-content {
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

.faq-answer ul {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer li {
  color: var(--text-gray);
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-answer strong {
  color: var(--text-white);
  font-weight: 600;
}

.faq-answer code {
  background: rgba(88, 101, 242, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary-light);
  font-size: 0.9em;
}

/* Category Labels */
.category-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 15px;
  font-size: 0.8em;
  color: var(--primary-light);
  margin-bottom: 15px;
  font-weight: 500;
}

/* Highlight Boxes */
.highlight-box {
  background: rgba(88, 101, 242, 0.1);
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
}

.highlight-box strong {
  color: var(--text-white);
}

.warning-box {
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid var(--error);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
}

.warning-box strong {
  color: var(--error);
}

.success-box {
  background: rgba(81, 207, 102, 0.1);
  border-left: 4px solid var(--success);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
}

.success-box strong {
  color: var(--success);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.no-results i {
  font-size: 4em;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-white);
}

.no-results p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(88, 101, 242, 0.1);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer p {
  color: var(--text-gray);
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 30px;
  }

  .container {
    padding: 120px 20px 60px;
  }

  .header h1 {
    font-size: 2.5em;
  }

  .subtitle {
    font-size: 1.1em;
  }

  .category-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .category-btn {
    flex-shrink: 0;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question-text {
    font-size: 1.1em;
  }

  .faq-answer-content {
    padding: 0 20px 20px;
  }

  .search-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 2em;
  }

  .faq-question-text {
    font-size: 1em;
  }

  .faq-toggle {
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 0.9em;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeIn 0.5s ease forwards;
}

.faq-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.faq-item:nth-child(even) {
  animation-delay: 0.2s;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.scroll-top i {
  color: var(--text-white);
  font-size: 1.2em;
}