/*
Theme Name: SuperDesi AI
Theme URI: https://superdesi.ai
Author: SuperDesi Team
Author URI: https://superdesi.ai
Description: A custom WordPress theme matching the SuperDesi AI Base44 application design. Features modern gradient designs, responsive layout, and optimized for business growth content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: superdesi
Tags: blog, business, custom-menu, featured-images, responsive-design, seo-friendly
*/

:root {
  --color-primary: #2563eb;
  --color-secondary: #9333ea;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #FAFAF9;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-primary);
}

.cta-button {
  background: linear-gradient(to right, var(--color-primary), #1d4ed8);
  color: white !important;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 1023px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation.mobile-open {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
  }
  
  .main-navigation.mobile-open ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .main-navigation.mobile-open li {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

.site-main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Blog Hero */
.blog-hero {
  background: linear-gradient(to bottom right, #eff6ff, white, #faf5ff);
  padding: 5rem 0 3rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
}

.blog-hero .gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 48rem;
  margin: 0 auto;
}

.blog-hero-search {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.blog-hero-search .search-form {
  width: 100%;
  max-width: 42rem;
}

.blog-hero-search .search-form-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(147, 51, 234, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 30px -12px rgba(37, 99, 235, 0.45);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-hero-search .search-form:focus-within .search-form-inner {
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px -15px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.blog-hero-search .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-primary);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.blog-hero-search .search-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.5rem 0;
}

.blog-hero-search .search-field::placeholder {
  color: rgba(107, 114, 128, 0.75);
}

.blog-hero-search .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-hero-search .search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.65);
}

.blog-hero-search .search-submit:active {
  transform: translateY(0);
}

.blog-category-filters {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.category-filter-button {
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.4);
}

.category-filter-button:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.category-filter-button.is-active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px -15px rgba(37, 99, 235, 0.6);
}

.search-results-notice {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(17, 24, 39, 0.7);
  min-height: 1.5rem;
}

@media (max-width: 640px) {
  .blog-hero-search {
    padding: 0 0.75rem;
  }

  .blog-hero-search .search-form-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    border-radius: 1.5rem;
  }

  .blog-hero-search .search-icon {
    width: 2.5rem;
    height: 2.5rem;
    align-self: flex-start;
  }

  .blog-hero-search .search-submit {
    width: 100%;
  }
}

.blog-posts-section {
  padding: 5rem 0;
  max-width: 1280px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.post-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.post-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.1);
}

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

.post-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title a {
  color: var(--color-primary);
}

.post-card-excerpt {
  color: var(--color-text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.post-meta-date,
.post-meta-read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Single Post */
.single-post-hero {
  background: linear-gradient(to bottom right, #eff6ff, white, #faf5ff);
  padding: 8rem 0 4rem;
}

.single-post-header {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.single-post-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.single-post-featured-image {
  max-width: 64rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  max-width: 48rem;
  margin: 4rem auto;
  padding: 0 1rem;
}

.single-post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.single-post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.single-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.single-post-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.post-newsletter {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin: 3rem 0;
}

.post-newsletter h3 {
  color: white;
  margin-bottom: 1rem;
}

.post-newsletter form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-newsletter input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.post-newsletter button {
  background: white;
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-share {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: 1rem;
  text-align: center;
}

.post-share h4 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: white;
}

.share-button.twitter { background: #1DA1F2; }
.share-button.linkedin { background: #0077B5; }
.share-button.facebook { background: #1877F2; }

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Trust Badges */
.trust-badges {
  background: linear-gradient(to bottom right, #eff6ff, white, #f0fdf4);
  border-top: 2px solid #bfdbfe;
  border-bottom: 2px solid #bfdbfe;
  padding: 4rem 0;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-badge {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid #dbeafe;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.trust-badge-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-lg);
}

.trust-badge h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.trust-badge p {
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #d1d5db;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  background: #1f2937;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-numbers li {
  list-style: none;
  opacity: 0;
  transform: translateY(6px);
  animation: pagination-fade-in 0.4s ease forwards;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  font-weight: 600;
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92));
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.pagination a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px -18px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px -18px rgba(37, 99, 235, 0.6);
  cursor: default;
}

.pagination a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.pagination .dots {
  border: none;
  box-shadow: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.pagination .prev,
.pagination .next {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  gap: 0.35rem;
}

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

.pagination .page-numbers li:nth-child(1) { animation-delay: 0.02s; }
.pagination .page-numbers li:nth-child(2) { animation-delay: 0.06s; }
.pagination .page-numbers li:nth-child(3) { animation-delay: 0.1s; }
.pagination .page-numbers li:nth-child(4) { animation-delay: 0.14s; }
.pagination .page-numbers li:nth-child(5) { animation-delay: 0.18s; }
.pagination .page-numbers li:nth-child(6) { animation-delay: 0.22s; }
.pagination .page-numbers li:nth-child(7) { animation-delay: 0.26s; }
.pagination .page-numbers li:nth-child(8) { animation-delay: 0.3s; }
.pagination .page-numbers li:nth-child(9) { animation-delay: 0.34s; }
.pagination .page-numbers li:nth-child(10) { animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .pagination .page-numbers li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pagination a,
  .pagination span {
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transform: none !important;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .blog-hero h1 { font-size: 2.5rem; }
  .single-post-title { font-size: 2rem; }
  .single-post-content p { font-size: 1rem; }
}
