/*
Theme Name: Vaultr.AI Theme
Theme URI: https://vaultr.ai
Author: Vaultr.AI
Author URI: https://vaultr.ai
Description: A custom WordPress theme for AI tools directory and blog. Features dark mode design with Tailwind CSS, AI tools custom post type with filtering, and blog functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaultr-theme
Tags: dark-mode, custom-post-types, blog, directory, ai-tools, tailwind
Vaultr.AI Theme - AI Tools Directory & Blog
Uses Tailwind CSS via CDN for styling.
----
*/

/* ==========================================================================
   WordPress-Specific Overrides & Custom Components
   These styles complement Tailwind CSS
   ========================================================================== */

/* WordPress Admin Bar Spacing */
body.admin-bar {
  padding-top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: 46px;
  }
}

/* WordPress Block Editor Alignment */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom Gradient for Brand */
.bg-gradient-brand {
  background: linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%);
}

.text-gradient-brand {
  background: linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient-brand {
  border: 2px solid transparent;
  background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%) border-box;
}

/* Tool Card Specific Styles */
.tool-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(239, 77, 132, 0.15);
}

/* Category Filter Pills */
.category-filter {
  transition: all 0.2s ease;
}

.category-filter.active {
  background: linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%);
  color: white;
}

/* Pagination Styles */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: rgba(239, 77, 132, 0.2);
}

.pagination .current {
  background: linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%);
  color: white;
}

/* Search Box */
.search-box input[type="search"] {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: white;
}

.search-box input[type="search"]:focus {
  border-color: #EF4D84;
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 77, 132, 0.2);
}

/* WordPress Gallery */
.wp-block-gallery {
  gap: 1rem;
}

/* WordPress Captions */
.wp-caption-text,
figcaption {
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress Comments */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  background-color: #1a1a1a;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background-color: rgba(239, 77, 132, 0.3);
  color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top-color: #EF4D84;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Article Content Styles
   ========================================================================== */

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d1d5db;
}

/* Headings */
.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #333;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

/* Links */
.article-content a {
  color: #EF4D84;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Bold & Strong */
.article-content strong,
.article-content b {
  color: #ffffff;
  font-weight: 600;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  line-height: 1.7;
  padding-left: 0.5rem;
}

.article-content li::marker {
  color: #EF4D84;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Blockquotes */
.article-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #EF4D84;
  background-color: rgba(56, 56, 56, 0.5);
  border-radius: 0 0.75rem 0.75rem 0;
  color: #e5e7eb;
  font-style: normal;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Code */
.article-content code {
  background-color: #383838;
  color: #EF4D84;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Consolas', monospace;
}

.article-content pre {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.875rem;
}

/* Images */
.article-content img {
  border-radius: 0.75rem;
  margin: 1.75rem 0;
  max-width: 100%;
  height: auto;
}

.article-content figure {
  margin: 1.75rem 0;
}

.article-content figcaption {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
}

.article-content th {
  background-color: #383838;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #444;
}

.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  color: #d1d5db;
}

.article-content tr:nth-child(even) td {
  background-color: rgba(56, 56, 56, 0.3);
}

/* Horizontal Rule */
.article-content hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2.5rem 0;
}

/* WordPress Blocks Specific */
.article-content .wp-block-quote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #EF4D84;
  background-color: rgba(56, 56, 56, 0.5);
  border-radius: 0 0.75rem 0.75rem 0;
}

.article-content .wp-block-pullquote {
  border-top: 4px solid #EF4D84;
  border-bottom: 4px solid #EF4D84;
  padding: 2rem 0;
  text-align: center;
}

.article-content .wp-block-pullquote blockquote {
  border: none;
  background: none;
  padding: 0;
}

.article-content .wp-block-pullquote p {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Callout/Notice Box */
.article-content .callout,
.article-content .notice {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin: 1.75rem 0;
  border-left: 4px solid;
}

.article-content .callout-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.article-content .callout-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}

.article-content .callout-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

/* First paragraph larger */
.article-content>p:first-of-type {
  font-size: 1.25rem;
  color: #e5e7eb;
  line-height: 1.75;
}

/* Video embeds */
.article-content iframe,
.article-content .wp-block-embed {
  max-width: 100%;
  margin: 1.75rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.article-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.article-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ==========================================================================
   Hero Section Animations
   ========================================================================== */

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #6D68AF 0%, rgba(109, 104, 175, 0.3) 50%, transparent 70%);
  top: -250px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #EF4D84 0%, rgba(239, 77, 132, 0.3) 50%, transparent 70%);
  top: 40%;
  right: -150px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.hero-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FCAF17 0%, rgba(252, 175, 23, 0.3) 50%, transparent 70%);
  bottom: -150px;
  left: 25%;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

/* Hero wave animation */
.hero-wave {
  width: 100%;
  height: 80px;
  display: block;
}

.hero-wave-path {
  animation: wave 15s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wave {

  0%,
  100% {
    d: path("M0,60 C360,120 720,0 1080,60 C1260,90 1380,90 1440,60 L1440,120 L0,120 Z");
  }

  50% {
    d: path("M0,80 C360,20 720,100 1080,40 C1260,20 1380,60 1440,80 L1440,120 L0,120 Z");
  }
}

/* Gradient text shimmer effect */
.text-gradient-brand {
  background: linear-gradient(90deg,
      #6D68AF 0%,
      #EF4D84 25%,
      #FCAF17 50%,
      #EF4D84 75%,
      #6D68AF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

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

  100% {
    background-position: 200% center;
  }
}

/* Animated gradient button */
.btn-gradient-animated {
  background: linear-gradient(90deg,
      #6D68AF 0%,
      #EF4D84 25%,
      #FCAF17 50%,
      #EF4D84 75%,
      #6D68AF 100%);
  background-size: 200% auto;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Header logo sizing */
.header-logo img {
  height: 48px;
  width: auto;
}

@media (min-width: 1024px) {
  .header-logo img {
    height: 56px;
  }
}

/* AI Pioneers Carousel */
#ai-pioneers-carousel {
  cursor: pointer;
}

#ai-pioneers-carousel .carousel-slide img {
  transition: transform 0.5s ease;
}

#ai-pioneers-carousel:hover .carousel-slide img {
  transform: scale(1.05);
}

#ai-pioneers-carousel .carousel-prev,
#ai-pioneers-carousel .carousel-next {
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
}

#ai-pioneers-carousel:hover .carousel-prev,
#ai-pioneers-carousel:hover .carousel-next {
  opacity: 1;
}

#ai-pioneers-carousel .carousel-dot {
  transition: all 0.3s ease;
}

#ai-pioneers-carousel .carousel-dot:hover {
  transform: scale(1.3);
}

/* Newsletter Modal */
.newsletter-modal {
  animation: modalFadeIn 0.3s ease;
}

.newsletter-modal-content {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .hero-orb,
  .hero-wave-path,
  .text-gradient-brand,
  .btn-gradient-animated {
    animation: none;
  }

  .hero-orb {
    opacity: 0.2;
  }

  .btn-gradient-animated {
    background: linear-gradient(220deg, #6D68AF 0%, #EF4D84 50%, #FCAF17 100%);
  }
}