/**
 * AntiParser Theme - Custom Styles
 * Supplements Tailwind CSS CDN with custom utilities and component styles.
 *
 * @package AntiParser
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Custom Scrollbar (Webkit)
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #00FF41;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00CC33;
}

/* ==========================================================================
   Text Selection
   ========================================================================== */

::selection {
  background: rgba(0, 255, 65, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(0, 255, 65, 0.3);
  color: white;
}

/* ==========================================================================
   Gradient Text Utility
   ========================================================================== */

.gradient-text {
  background: linear-gradient(to right, #ffffff, #00FF41);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Neon Glow Effects
   ========================================================================== */

.neon-glow {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.neon-glow-hover:hover {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.neon-border {
  border-color: rgba(0, 255, 65, 0.3);
}

.neon-border-hover:hover {
  border-color: #00FF41;
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.4); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Scroll Animation Classes
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   Card Hover Effects
   ========================================================================== */

.card-hover {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
  border-color: #00FF41;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #00FF41;
  color: #000000;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: #00CC33;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #00FF41;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #00FF41;
  background-color: rgba(0, 255, 65, 0.1);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #0a0a0a;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* ==========================================================================
   Contact Form 7 Overrides
   ========================================================================== */

.wpcf7 .form-group {
  margin-bottom: 1rem;
}

.wpcf7 .form-group:last-child {
  margin-bottom: 0;
}

.wpcf7 label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #00FF41;
}

.wpcf7 textarea {
  height: 8rem;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: #00FF41;
  color: #000000;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #00CC33;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Hide CF7 loader spinner */
.wpcf7-spinner {
  display: none !important;
}

/* Response message — base */
.wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 1rem 1.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0.75rem !important;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #00FF41 !important;
  color: #00FF41;
  background-color: rgba(0, 255, 65, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

/* Validation errors */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ff4444 !important;
  color: #ff6b6b;
  background-color: rgba(255, 68, 68, 0.08);
}

/* Server / send failure */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #ff9800 !important;
  color: #ffb74d;
  background-color: rgba(255, 152, 0, 0.08);
}

/* Spam */
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #ff4444 !important;
  color: #ff6b6b;
  background-color: rgba(255, 68, 68, 0.08);
}

/* Field-level validation tip */
.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

/* Invalid field border */
.wpcf7 .wpcf7-not-valid {
  border-color: #ff4444 !important;
}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item[open] .faq-answer {
  max-height: 500px;
}

.faq-item .faq-icon {
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Mobile CTA Button
   ========================================================================== */

.mobile-cta-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  animation: neon-pulse 2s infinite;
}

@media (min-width: 768px) {
  .mobile-cta-btn {
    display: none;
  }
}

/* ==========================================================================
   Scroll-to-Top Button
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Image Hover Zoom
   ========================================================================== */

.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.5s ease;
}

.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Body Scroll Lock (Modals / Menus)
   ========================================================================== */

body.modal-open,
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(0, 255, 65, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
  display: none;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  color: #00FF00;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(0, 255, 0, 0.1);
  border-color: #00FF00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  color: #00FF00;
}

/* ==========================================================================
   CF7 Acceptance Checkboxes
   ========================================================================== */

.wpcf7 .acceptance-group {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.wpcf7 .acceptance-group:hover {
  border-color: rgba(0, 255, 65, 0.2);
}

.wpcf7 .acceptance-group .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .acceptance-group .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  cursor: pointer;
}

.wpcf7 .acceptance-group .wpcf7-list-item label a {
  color: #00FF41;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.wpcf7 .acceptance-group .wpcf7-list-item label a:hover {
  color: #33FF6B;
  border-bottom-color: #00FF41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.wpcf7 .acceptance-group input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  margin-top: 0;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.wpcf7 .acceptance-group input[type="checkbox"]:hover {
  border-color: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.15);
}

.wpcf7 .acceptance-group input[type="checkbox"]:checked {
  background-color: #00FF41;
  border-color: #00FF41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.wpcf7 .acceptance-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
