/* css/compare.css */

/* Container spacing */
.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
   position: relative;
}

/* Toolbar buttons, selects, labels */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.controls button,
.controls select,
.controls label {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #2ecc71;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}
.controls select {
  background: white;
  color: #333;
  border: 1px solid #ccc;
}
.controls button:hover {
  background: #27ae60;
}


/* Editors side by side */
.editors {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.editor-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

/* Style for CodeMirror placeholders */
.CodeMirror .CodeMirror-placeholder {
  color: #888;
  font-style: italic;
}

textarea {
  width: 100%;
  height: 300px;
}
.line-count {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #555;
}
.file-name {
  font-style: italic;
  margin-top: 5px;
}

/* MergeView area */
#merge {
 display: none; 
  border: 1px solid #ccc;
  min-height: 200px;
  background: white;
}
#diffStats {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* Word‑level diff below the merge */
#wordDiff {
  display: none;
  margin-top: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  display: none;
  border: 1px solid #ccc;
  padding: 10px;
}
ins {
  background: #d4fcbc;
}
del {
  background: #ffc8cb;
  text-decoration: line-through;
}

/* Footer positioning */
footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding: 8px 0;
  margin-top: 20px;
}

.page-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 400;
  color: #666;
  margin: 2rem auto 0.5rem; /* reduced bottom margin from 1.5rem to 0.5rem */
  color: var(--text-color, #333);
  line-height: 1.2;
}
.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
  margin-top: 0;         /* remove extra gap from top */
  margin-bottom: 2rem;
}

body.dark .page-title {
  color: #ccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.dark .page-subtitle {
  color: #ccc;
}

.page-header {
  margin-bottom: 2rem;
}
/* Toast Message Styling */
.toast-message {
  position: fixed;
  top: 60px; /* Adjust based on your navbar height */
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4d4d;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* When toast is visible */
.toast-message.show {
  opacity: 1;
  pointer-events: auto;
  animation: toastSlideDown 0.3s ease-out;
}

/* Optional: slide-in animation */
@keyframes toastSlideDown {
  from {
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}


/* EXIT COMPARE BUTTON CUSTOMIZATION */
#closeDiffBtn {
  background: #e53935;       /* pleasant red */
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.1s ease;
}

/* Hover effect */
#closeDiffBtn:hover {
  background-color: #c62828;
  transform: scale(1.02);
}

/* Active/focus effect */
#closeDiffBtn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}


/* QUICK GUIDE  */
.quick-guide {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* COMPARE BUTTON CUSTOMIZATION */
#compareBtn {
  background: #0055cc;
  color: #fff;
  border: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.1s ease;
}

/* Optional: on hover */
#compareBtn:hover {
  background-color: #003f99;
  transform: scale(1.02);
}

/* Optional: on focus/active */
#compareBtn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#compareBtn {
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 85, 204, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 85, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 85, 204, 0);
  }
}



/* Give your toggle‑checkbox a little breathing room in controls */
.controls input[type="checkbox"] {
  margin-right: 6px;
}


.cm-s-dracula {
  background-color: #282a36 !important;
  color: #f8f8f2 !important;
}
.cm-s-monokai {
  background-color: #272822 !important;
  color: #f8f8f2 !important;
}
.cm-s-material {
  background-color: #263238 !important;
  color: #eceff1 !important;
}

textarea {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.4;
}

 /* In compare.css */
    #wordDiff {
    border: 1px solid #ccc;
    padding: 10px;
    }
    
h2 {
      text-align: center;
      font-size: 1.5rem;
      font-weight: 200;
      color: #343a40; /* Professional dark color */
      margin-bottom: 5px;
      font-family: 'Nunito Sans', sans-serif;
      margin: 2.5rem 0 1rem;
}

.perf-time {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #2ecc71;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.dropbtn:hover {
  background: #27ae60;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1002;
  padding: 8px;
}


.intro-blurb {
  font-size: 1.05rem;
  margin: 0.5rem 0 1.5rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}


/* ———————————— More dropdown items ———————————— */
.dropdown-content button,
.dropdown-content label,
.dropdown-content select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin: 4px 0;
  background: #2ecc71;      /* match your other controls */
  color: white;
  border: none;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
}

/* hover state */
.dropdown-content button:hover,
.dropdown-content label:hover,
.dropdown-content select:hover {
  background: #27ae60;
}

/* if you need to style the “More ▾” button itself when it’s inside .dropdown-content */
.dropdown-content .dropbtn {
  background: #2ecc71;
  color: white;
}

/* show menu on hover (you already have this) */
.dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (max-width: 600px) {
  .page-title {
    font-size: 1.8rem;
  }
}
body.dark .page-title {
  color: #f1f1f1;
}

/* stack editors on narrow screens */
@media (max-width: 800px) {
  .editors { flex-direction: column; }
}
/* inline vs side‑by‑side toggle when `#viewToggle` is checked */
.CodeMirror-merge.CodeMirror-merge-inline .CodeMirror-split {
  display: none;
}
.page-title {
    font-size: 1.8rem;
  }
.CodeMirror-merge .CodeMirror-split {
  width:  49%;
  float:  left;
}
.CodeMirror-merge-inline .CodeMirror-merge-diff {
  width: auto !important;
}

/* ADDED FOR HOMEPAGE */
.homepage-seo-content {
  padding: 2em 1em;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  margin-top: 2em;
}
.homepage-seo-content h2, .homepage-seo-content h3 {
  color: #003366;
  margin-bottom: 0.5em;
}
.homepage-seo-content p {
  line-height: 1.6;
  margin-bottom: 1em;
}
.homepage-seo-content ul {
  list-style-type: disc;
  margin-left: 2em;
  margin-bottom: 1em;
}

.internal-links {
  margin: 2rem 0;
  font-size: 1rem;
}
.internal-links h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.internal-links p {
  margin: 0.5rem 0;
}
.internal-links a {
  color: #007acc;
  text-decoration: underline;
}

.section-heading {
  font-size: 1.2rem;
}

.section-margin {
  margin: 2rem 0;
}
