:root {
  --accent-color: #8a2be2; /* Vibrant purple as our accent color */
  --header-height: 70px;
  --footer-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  backdrop-filter: blur(5px);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-link:hover {
  color: var(--accent-color);
}

.header-buttons {
  display: flex;
  gap: 15px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Split layout styles */
.split-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.left-column {
  flex: 1; /* This will be 1/3 of the width */
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  border-right: 1px solid rgba(138, 43, 226, 0.2); /* Subtle accent color border */
}

.right-column {
  flex: 2; /* This will be 2/3 of the width */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
  position: relative;
}

/* Add subtle animated gradient overlay */
.right-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.right-top {
  flex: 2; /* 2/3 of the height */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
  z-index: 2;
}

.right-bottom {
  flex: 1; /* 1/3 of the height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(20, 20, 20, 0.7));
  border-top: 1px solid rgba(138, 43, 226, 0.15);
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out;
  height: 100%;
}

.logo-image {
  max-width: 95%;
  max-height: 50vh; /* Increased from 40vh to 50vh */
  object-fit: contain;
}

.name-image {
  max-width: 90%;
  max-height: 30vh;
  object-fit: contain;
}

.cta-container {
  margin-top: 20px;
  text-align: center;
  animation: fadeIn 2.5s ease-in-out;
  max-width: 600px;
}

.cta-container a {
  text-decoration: none;
}

.content-wrapper {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.main-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: fadeIn 1.5s ease-in-out;
  display: none; /* Hide this as we'll use the image instead */
}

.tagline {
  font-size: 1.3rem;
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
  animation: fadeIn 2s ease-in-out;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.tagline strong {
  color: var(--accent-color);
  font-weight: normal;
}

.cta-btn {
  padding: 15px 40px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 2.5s ease-in-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
  text-decoration: none;
  display: inline-block;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.cta-btn:hover {
  background-color: #7424c9;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 7px 20px rgba(138, 43, 226, 0.5);
  text-decoration: none;
}

.cta-btn:hover::before {
  left: 100%;
}

.btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.about-section {
  margin-bottom: 40px;
  text-align: left;
  border-top: 1px solid #333;
  padding-top: 30px;
  animation: fadeIn 3s ease-in-out;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color); /* Changed from blue to accent color */
}

.about-text {
  color: #aaa;
  line-height: 1.6;
}

footer {
  padding: 20px;
  border-top: 1px solid #333;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--footer-height);
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  backdrop-filter: blur(5px);
}

.social-links {
  margin: 15px 0;
}

.social-icon {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-color); /* Changed from blue to accent color */
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #121212;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.modal-title span {
  color: var(--accent-color);
}

.modal-subtitle {
  color: #aaa;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  color: #ddd;
  font-size: 0.9rem;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 5px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color); /* Changed from blue to accent color */
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color); /* Changed from blue to accent color */
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #7424c9; /* Darker shade of the accent color */
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

.form-footer a {
  color: var(--accent-color); /* Changed from blue to accent color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #7424c9; /* Darker shade of the accent color */
  text-decoration: underline;
}

.oauth-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oauth-btn {
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.google-btn {
  background-color: #fff;
  color: #333;
  display: none; /* Hide Google login button */
}

.google-btn:hover {
  background-color: #f1f1f1;
}

.github-btn {
  background-color: #333;
  color: #fff;
}

.github-btn:hover {
  background-color: #444;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInStaggered {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    flex: none;
    width: 100%;
  }

  .left-column {
    min-height: 150px;
    padding: 20px;
  }

  .right-column {
    min-height: auto;
  }

  .right-top,
  .right-bottom {
    padding: 20px;
  }

  .logo-image {
    max-height: 35vh; /* Increased from 30vh to 35vh for mobile */
  }

  .name-image {
    max-height: 15vh;
  }

  .tagline {
    font-size: 1.1rem;
  }

  main {
    margin-bottom: calc(var(--footer-height) + 10px);
  }
}

/* Confirmation Modal Styles */
#confirmationModal .modal-content {
  background-color: #121212;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
}

#confirmationTitle {
  margin-top: 10px;
  margin-bottom: 15px;
  color: #fff;
  font-size: 24px;
}

#confirmationMessage {
  margin-bottom: 25px;
  color: #aaa;
  line-height: 1.5;
}

#confirmationOkBtn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#confirmationOkBtn:hover {
  opacity: 0.9;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #fff;
}

/* Auth Callback Page Styles */
.auth-container {
  text-align: center;
  max-width: 600px;
  padding: 30px;
  animation: fadeIn 1.5s ease-in-out;
}

.auth-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.auth-message {
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
}

.auth-loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(138, 43, 226, 0.2);
  border-radius: 50%;
  border-top: 4px solid var(--accent-color);
  animation: spin 1.5s linear infinite;
  margin: 30px auto;
}

.auth-error-container {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.features-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 600px;
}

.features-list li {
  background-color: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(138, 43, 226, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #ddd;
  transition: all 0.3s ease;
  animation: fadeInStaggered 2s ease-in-out backwards;
}

.features-list li:nth-child(1) {
  animation-delay: 0.3s;
}

.features-list li:nth-child(2) {
  animation-delay: 0.6s;
}

.features-list li:nth-child(3) {
  animation-delay: 0.9s;
}

.features-list li:hover {
  transform: translateY(-3px);
  background-color: rgba(30, 30, 30, 0.9);
  border-color: var(--accent-color);
  color: #fff;
}

.features-list li i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Particle canvas styling */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

/* ===== URL Analysis Application Styles ===== */

.app-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.app-description {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.url-form-container {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.url-form {
  width: 100%;
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(30, 30, 30, 0.9);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: border-color 0.3s ease;
}

.url-input-group:focus-within {
  border-color: var(--accent-color);
}

.url-input {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 5px;
  background-color: rgba(20, 20, 20, 0.8);
  color: #fff;
  transition: all 0.3s ease;
}

.url-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: rgba(20, 20, 20, 0.95);
}

.url-submit-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.url-submit-btn:hover {
  background-color: #7424c9;
  transform: translateY(-1px);
}

.url-submit-btn i {
  font-size: 0.9rem;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results-container {
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--accent-color);
  color: white;
}

.results-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.results-section {
  padding: 1rem;
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  background: rgba(20, 20, 20, 0.8);
}

.results-section:last-child {
  border-bottom: none;
}

.results-section h3 {
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
}

.results-section h3 i.fas.fa-chevron-down,
.results-section h3 i.fas.fa-chevron-up {
  margin-left: auto;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.results-section.collapsed .section-content {
  display: none;
}

.results-section.collapsed h3 i.fas.fa-chevron-up {
  transform: rotate(180deg);
}

.section-content {
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.claim-item,
.quote-item,
.source-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
}

.claim-item:last-child,
.quote-item:last-child,
.source-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

blockquote {
  margin: 0 0 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--accent-color);
  font-style: italic;
  color: #ddd;
  font-size: 0.9rem;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 0 4px 4px 0;
}

cite {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  text-align: right;
}

.error-container {
  margin: 2rem auto;
  padding: 1rem;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 5px;
  color: #d32f2f;
  text-align: center;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.error-container i {
  font-size: 1.5rem;
}

.toast {
  visibility: hidden;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 16px;
  border-radius: 4px;
  z-index: 1000;
  min-width: 250px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toast.show {
  visibility: visible;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

.toast.error {
  background-color: #d32f2f;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.hidden {
  display: none;
}

/* Claims Grid Layout */
.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.claim-card {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 8px;
  padding: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.claim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.4);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.badge.verified {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.badge.unverified {
  background-color: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.4);
}

.badge.false {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.claim-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #fff;
}

.claim-category {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.claim-sources {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
}

.claim-sources a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.claim-sources a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Source List Styling */
.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.source-item {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.source-item-header {
  margin-bottom: 0.5rem;
}

.source-item-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.source-item a {
  color: var(--accent-color);
  font-size: 0.8rem;
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  word-break: break-all;
}

.source-item-credibility {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Summary Card Styling */
.summary-card {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.summary-card h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.summary-content {
  line-height: 1.5;
  color: #ddd;
  font-size: 0.9rem;
}
