/*
Theme Name: Minimal Multisite
Theme URI: https://brandlens.xyz
Description: Modern dark theme matching BrandLens design
Version: 3.0
Author: BrandLens
License: GNU General Public License v2 or later
Text Domain: minimal-multisite
*/

:root {
  --background: #0f172a;
  --foreground: #f1f5f9;
  --violet-500: #8b5cf6;
  --pink-500: #ec4899;
  --blue-500: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground) !important;
  background: #0f172a !important;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 5px;
}

.top-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.banner-link {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  flex-shrink: 0;
}

.search-form {
  flex: 1;
  max-width: 400px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  font-size: 16px;
  color: var(--foreground);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

main {
  padding: 60px 0;
  min-height: 60vh;
}

.post-list {
  list-style: none;
}

.post-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.post-title {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.post-title a {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-title a:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-meta {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 16px;
}

.post-excerpt {
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.2) 50%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(236, 72, 153, 0.3) 50%, rgba(59, 130, 246, 0.3) 100%);
  transform: translateX(4px);
}

.single-post {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 40px;
}

.single-post .post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.single-post .post-title {
  font-size: 36px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-content {
  line-height: 1.8;
  font-size: 18px;
  color: #e2e8f0;
}

.post-content p {
  margin-bottom: 20px;
  color: #e2e8f0 !important;
}

.post-content h2 {
  margin: 30px 0 15px;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 25px 0 12px;
  color: #a78bfa;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.post-content a {
  color: var(--violet-500);
  text-decoration: underline;
}

/* FORCE all WordPress content to be visible on dark background */
.post-content *,
.post-content div,
.post-content span,
.post-content p,
.post-content li,
.post-content td,
.post-content th {
  color: #e2e8f0 !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Exception for headings - keep gradients */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%) !important;
}

/* Exception for links - keep purple */
.post-content a {
  color: var(--violet-500) !important;
  background: transparent !important;
}

/* Code blocks */
.post-content code,
.post-content pre {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #a78bfa !important;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Blockquotes */
.post-content blockquote {
  border-left: 3px solid var(--violet-500);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #94a3b8 !important;
  background: transparent !important;
}

/* Lists */
.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 40px;
}

.post-content li {
  margin-bottom: 10px;
  color: #e2e8f0 !important;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.post-content th,
.post-content td {
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 12px;
  color: #e2e8f0 !important;
}

.post-content th {
  background: rgba(139, 92, 246, 0.2) !important;
  font-weight: 600;
}

/* WordPress Gutenberg blocks */
.post-content .wp-block-quote,
.post-content .wp-block-pullquote {
  border-left: 3px solid var(--violet-500);
  padding-left: 20px;
  margin: 20px 0;
  color: #94a3b8 !important;
  background: transparent !important;
}

.post-content .wp-block-code {
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 8px;
  padding: 15px;
}

.post-content .wp-block-image {
  background: transparent !important;
}

/* Fix any WordPress default white backgrounds */
.entry-content,
.post-content {
  background: transparent !important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-4px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  border-color: rgba(139, 92, 246, 0.5);
}

footer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  padding: 30px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  margin-top: 60px;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .site-title {
    text-align: center;
    font-size: 20px;
  }

  .search-form {
    max-width: 100%;
  }

  .post-item {
    padding: 20px;
  }

  .post-title {
    font-size: 24px;
  }

  .single-post {
    padding: 25px;
  }

  .single-post .post-title {
    font-size: 28px;
  }

  .post-content {
    font-size: 16px;
  }
}

/* --- GEO AI Visibility Footer --- */
.geo-bot-summary {
  margin-top: 30px;
  padding: 8px 14px;
  border: 1px solid rgba(180,180,180,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  line-height: 1.4;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-bot-summary strong {
  color: #bbb;
}

.geo-hit {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
