/*
Theme Name: Vortex - Multi-Industry WordPress Theme
Theme URI: https://www.vortextheme.com
Description: A powerful, multi-industry WordPress theme with 10+ pre-built templates. Perfect for weddings, eCommerce, agencies, blogs, portfolios, restaurants, real estate, fashion, and more. Gen Z vibes with maximum customization.
Version: 1.0.0
Author: Ahmad Salik
Author URI: https://www.weddingplanningchecklists.org
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vortex
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ============================================================
   VORTEX THEME - MAIN STYLESHEET
   ============================================================ */

:root {
  /* Primary Colors */
  --vortex-primary: #6366f1;
  --vortex-secondary: #ec4899;
  --vortex-accent: #f59e0b;

  /* Neutral Colors */
  --vortex-dark: #1f2937;
  --vortex-light: #f9fafb;
  --vortex-gray: #6b7280;

  /* Spacing */
  --vortex-spacing-xs: 0.5rem;
  --vortex-spacing-sm: 1rem;
  --vortex-spacing-md: 1.5rem;
  --vortex-spacing-lg: 2rem;
  --vortex-spacing-xl: 3rem;
  --vortex-spacing-2xl: 4rem;

  /* Typography */
  --vortex-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vortex-font-serif: Georgia, "Times New Roman", serif;

  /* Transitions */
  --vortex-transition: all 0.3s ease;
  --vortex-transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--vortex-font-sans);
  color: var(--vortex-dark);
  background-color: #fff;
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--vortex-spacing-lg);
}

h1 { font-size: calc(3.5rem * var(--vortex-heading-scale, 1)); }
h2 { font-size: calc(2.5rem * var(--vortex-heading-scale, 1)); }
h3 { font-size: calc(1.875rem * var(--vortex-heading-scale, 1)); }
h4 { font-size: calc(1.5rem * var(--vortex-heading-scale, 1)); }
h5 { font-size: calc(1.25rem * var(--vortex-heading-scale, 1)); }
h6 { font-size: calc(1rem * var(--vortex-heading-scale, 1)); }

p {
  margin-bottom: var(--vortex-spacing-md);
}

/* Links */
a {
  color: var(--vortex-primary);
  text-decoration: none;
  transition: var(--vortex-transition-fast);
}

a:hover {
  color: var(--vortex-secondary);
}

/* Container */
.vortex-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--vortex-spacing-md);
}

/* Header */
.vortex-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
}

@media (min-width: 900px) {
  .vortex-sticky-header .vortex-header {
    position: sticky;
    top: 0;
  }

  .vortex-sticky-header.admin-bar .vortex-header {
    top: 32px;
  }
}

.vortex-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--vortex-spacing-md) 0;
}

.vortex-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vortex-primary);
}

.vortex-logo-wrapper a {
  text-decoration: none;
}

.vortex-logo-wrapper img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Navigation */
.vortex-navigation {
  align-items: center;
  display: flex;
  gap: var(--vortex-spacing-lg);
}

.vortex-nav {
  align-items: center;
  display: flex;
  gap: var(--vortex-spacing-lg);
  list-style: none;
}

.vortex-nav li {
  position: relative;
}

.vortex-nav a {
  color: var(--vortex-dark);
  display: inline-block;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--vortex-transition-fast);
}

.vortex-nav a:hover,
.vortex-nav .current-menu-item > a,
.vortex-nav .current-menu-ancestor > a {
  color: var(--vortex-primary);
}

.vortex-nav a:focus-visible,
.vortex-menu-toggle:focus-visible,
.vortex-logo:focus-visible {
  box-shadow: 0 0 0 2px #fff;
  outline: 3px solid #1f2937;
  outline-offset: 2px;
}

.vortex-nav .menu-item-has-children > a::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: inline-block;
  height: 0.4em;
  margin-left: 0.45em;
  transform: translateY(-0.15em) rotate(45deg);
  width: 0.4em;
}

.vortex-nav .sub-menu {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14);
  display: none;
  left: 0;
  list-style: none;
  min-width: 230px;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  z-index: 1001;
}

.vortex-nav li:hover > .sub-menu,
.vortex-nav li:focus-within > .sub-menu {
  display: block;
}

.vortex-nav .sub-menu a {
  border-radius: 6px;
  display: block;
  padding: 0.55rem 0.75rem;
}

.vortex-nav .sub-menu a:hover {
  background: var(--vx-soft, #f6f7fb);
}

.vortex-menu-toggle {
  align-items: center;
  background: transparent;
  border: 2px solid var(--vortex-dark);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.vortex-menu-toggle-bars,
.vortex-menu-toggle-bars::before,
.vortex-menu-toggle-bars::after {
  background: var(--vortex-dark);
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.vortex-menu-toggle-bars {
  position: relative;
}

.vortex-menu-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.vortex-menu-toggle-bars::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 899px) {
  .vortex-js .vortex-menu-toggle {
    display: inline-flex;
  }

  .vortex-header-content {
    flex-wrap: wrap;
  }

  .vortex-navigation {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .vortex-js .vortex-navigation:not(.is-open) {
    display: none;
  }

  .vortex-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .vortex-nav a {
    padding: 0.75rem 0;
    width: 100%;
  }

  .vortex-nav .sub-menu {
    background: transparent;
    box-shadow: none;
    display: block;
    padding: 0 0 0 1rem;
    position: static;
  }

  .vortex-header-cta {
    padding-bottom: 0.5rem;
  }

  .vortex-header-cta .vortex-btn {
    text-align: center;
    width: 100%;
  }
}

/* Buttons */
.vortex-btn {
  display: inline-block;
  padding: var(--vortex-spacing-sm) var(--vortex-spacing-lg);
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--vortex-transition-fast);
  text-decoration: none;
}

.vortex-btn-primary {
  background: var(--vortex-primary);
  color: #fff;
}

.vortex-btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.vortex-btn-secondary {
  background: var(--vortex-secondary);
  color: #fff;
}

.vortex-btn-secondary:hover {
  background: #db2777;
}

/* Footer */
.vortex-footer {
  background: var(--vortex-dark);
  color: #fff;
  padding: var(--vortex-spacing-2xl) 0;
  margin-top: var(--vortex-spacing-2xl);
}

.vortex-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--vortex-spacing-2xl);
  margin-bottom: var(--vortex-spacing-2xl);
}

.vortex-footer-section h3,
.vortex-footer-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: var(--vortex-spacing-md);
}

.vortex-footer-section p {
  color: #d1d5db;
}

.vortex-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--vortex-spacing-lg);
}

.vortex-footer-bottom p {
  color: #d1d5db;
  font-size: 0.9rem;
  margin: 0;
}

.vortex-footer-section ul {
  list-style: none;
}

.vortex-footer-section li {
  margin-bottom: var(--vortex-spacing-sm);
}

.vortex-footer-section a {
  color: #d1d5db;
}

.vortex-footer-section a:hover {
  color: #fff;
}

/* ============================================================
   SINGLE POST STYLES
   ============================================================ */

.vortex-single-post {
  padding: var(--vortex-spacing-2xl) 0;
}

.vortex-post-thumbnail {
  margin-bottom: var(--vortex-spacing-2xl);
  border-radius: 0.75rem;
  overflow: hidden;
}

.vortex-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.vortex-post-header {
  margin-bottom: var(--vortex-spacing-2xl);
}

.vortex-post-title {
  font-size: 3rem;
  margin-bottom: var(--vortex-spacing-lg);
}

.vortex-post-meta {
  display: flex;
  gap: var(--vortex-spacing-lg);
  color: var(--vortex-gray);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.vortex-post-content {
  margin-bottom: var(--vortex-spacing-2xl);
  line-height: 1.8;
}

.vortex-post-footer {
  margin: var(--vortex-spacing-2xl) 0;
  padding: var(--vortex-spacing-lg) 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.vortex-post-tags {
  display: flex;
  gap: var(--vortex-spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--vortex-spacing-lg);
}

.vortex-post-tags a {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  color: var(--vortex-primary);
  font-size: 0.9rem;
}

.vortex-post-tags a:hover {
  background: var(--vortex-primary);
  color: #fff;
}

.vortex-post-share {
  display: flex;
  gap: var(--vortex-spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

.vortex-share-btn {
  padding: 0.5rem 1rem;
  background: var(--vortex-primary);
  color: #fff;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.vortex-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.vortex-author-box {
  display: flex;
  gap: var(--vortex-spacing-lg);
  padding: var(--vortex-spacing-lg);
  background: #f9fafb;
  border-radius: 0.75rem;
  margin: var(--vortex-spacing-2xl) 0;
}

.vortex-author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.vortex-related-posts {
  margin: var(--vortex-spacing-2xl) 0;
}

.vortex-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--vortex-spacing-xl);
}

/* ============================================================
   PAGE STYLES
   ============================================================ */

.vortex-page {
  padding: var(--vortex-spacing-2xl) 0;
}

.vortex-page-title {
  font-size: 3rem;
}

.vortex-page-content {
  line-height: 1.8;
}

/* ============================================================
   ARCHIVE STYLES
   ============================================================ */

.vortex-archive {
  padding: var(--vortex-spacing-2xl) 0;
}

.vortex-archive-header {
  margin-bottom: var(--vortex-spacing-2xl);
  text-align: center;
}

.vortex-archive-description {
  color: var(--vortex-gray);
  font-size: 1.1rem;
}

.vortex-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--vortex-spacing-xl);
}

/* ============================================================
   HOMEPAGE/FRONT PAGE STYLES
   ============================================================ */

.vortex-hero {
  background: linear-gradient(135deg, var(--vortex-primary) 0%, var(--vortex-secondary) 100%);
  color: #fff;
  padding: var(--vortex-spacing-2xl);
  text-align: center;
}

.vortex-hero-title {
  font-size: 4rem;
  margin-bottom: var(--vortex-spacing-lg);
  color: #fff;
}

.vortex-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--vortex-spacing-xl);
  color: rgba(255, 255, 255, 0.9);
}

.vortex-hero-buttons {
  display: flex;
  gap: var(--vortex-spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.vortex-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.vortex-features {
  padding: var(--vortex-spacing-2xl) 0;
}

.vortex-section-title {
  text-align: center;
  margin-bottom: var(--vortex-spacing-2xl);
  font-size: 2.5rem;
}

.vortex-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--vortex-spacing-xl);
}

.vortex-feature-box {
  text-align: center;
  padding: var(--vortex-spacing-xl);
  background: #f9fafb;
  border-radius: 0.75rem;
  transition: var(--vortex-transition);
}

.vortex-feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vortex-feature-icon {
  font-size: 3rem;
  margin-bottom: var(--vortex-spacing-md);
}

.vortex-industries {
  padding: var(--vortex-spacing-2xl) 0;
  background: #f9fafb;
}

.vortex-industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--vortex-spacing-lg);
}

.vortex-industry-card {
  padding: var(--vortex-spacing-lg);
  background: #fff;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--vortex-transition-fast);
}

.vortex-industry-card:hover {
  border-color: var(--vortex-primary);
  color: var(--vortex-primary);
}

.vortex-cta {
  background: var(--vortex-dark);
  color: #fff;
  padding: var(--vortex-spacing-2xl);
  text-align: center;
}

.vortex-cta h2 {
  color: #fff;
}

.vortex-latest-posts {
  padding: var(--vortex-spacing-2xl) 0;
}

/* ============================================================
   404 PAGE STYLES
   ============================================================ */

.vortex-404 {
  padding: calc(var(--vortex-spacing-2xl) * 2) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.vortex-404-icon {
  font-size: 10rem;
  font-weight: 700;
  color: var(--vortex-primary);
  margin-bottom: var(--vortex-spacing-lg);
  opacity: 0.3;
}

.vortex-404-title {
  font-size: 2.5rem;
  margin-bottom: var(--vortex-spacing-md);
}

.vortex-404-text {
  color: var(--vortex-gray);
  margin-bottom: var(--vortex-spacing-xl);
}

.vortex-404-buttons {
  display: flex;
  gap: var(--vortex-spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.vortex-404-links {
  margin-top: var(--vortex-spacing-xl);
}

.vortex-404-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--vortex-spacing-sm);
}

/* ============================================================
   COMMENTS STYLES
   ============================================================ */

.vortex-comments {
  margin: var(--vortex-spacing-2xl) 0;
  padding: var(--vortex-spacing-xl);
  background: #f9fafb;
  border-radius: 0.75rem;
}

.vortex-comment-list {
  list-style: none;
}

.vortex-comment-list .comment {
  margin-bottom: var(--vortex-spacing-lg);
  padding: var(--vortex-spacing-lg);
  background: #fff;
  border-radius: 0.5rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--vortex-spacing-md);
}

.comment-form input,
.comment-form textarea {
  padding: var(--vortex-spacing-sm);
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-family: var(--vortex-font-sans);
}

/* ============================================================
   CONTENT WRAPPER (for sidebar layout)
   ============================================================ */

.vortex-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--vortex-spacing-xl);
}

.vortex-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--vortex-spacing-lg);
}

.vortex-widget {
  background: #f9fafb;
  padding: var(--vortex-spacing-lg);
  border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: calc(2rem * var(--vortex-heading-scale, 1)); }
  h2 { font-size: calc(1.75rem * var(--vortex-heading-scale, 1)); }
  h3 { font-size: calc(1.5rem * var(--vortex-heading-scale, 1)); }

  .vortex-content-wrapper {
    grid-template-columns: 1fr;
  }

  .vortex-post-meta {
    flex-direction: column;
    gap: var(--vortex-spacing-sm);
  }

  .vortex-hero-title {
    font-size: 2.5rem;
  }

  .vortex-hero-subtitle {
    font-size: 1.2rem;
  }

  .vortex-features-grid,
  .vortex-industries-grid {
    grid-template-columns: 1fr;
  }

  .vortex-hero-buttons {
    flex-direction: column;
  }

  .vortex-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   POST CARD (template-parts/content.php) - related posts, search
   ============================================================ */
.vortex-post-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.vortex-post-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.vortex-post-image {
  height: 200px;
  overflow: hidden;
}

.vortex-post-image a,
.vortex-post-image img {
  display: block;
  height: 100%;
  width: 100%;
}

.vortex-post-image img {
  object-fit: cover;
}

.vortex-post-card-content {
  padding: 1.5rem;
}

.vortex-post-category-badge {
  margin-bottom: 0.75rem;
}

.vortex-post-category-badge a {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0.25rem;
  color: #4338ca;
  color: color-mix(in srgb, var(--vortex-primary) 65%, #000);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

.vortex-post-card-title {
  margin-bottom: 0.75rem;
}

.vortex-post-card-title a {
  color: #1f2937;
}

.vortex-post-card-title a:hover,
.vortex-post-card-title a:focus-visible {
  color: var(--vortex-primary);
  text-decoration: underline;
}

.vortex-post-excerpt {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.vortex-post-card-meta {
  color: #4b5563;
  display: flex;
  font-size: 0.85rem;
  gap: 1rem;
  margin-bottom: 1rem;
}
