/*
Theme Name: JuriOne Blog
Theme URI: https://jurione.com.br
Author: JuriOne
Author URI: https://jurione.com.br
Description: Tema oficial do blog JuriOne — LegalTech. Dark mode premium com identidade visual indigo/azul. Suporte completo a categorias, posts, sidebar e newsletter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://jurione.com.br
Text Domain: jurione
Tags: blog, dark, legal, technology, custom-colors, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* ============================================
   JURIONE THEME — CSS IDENTITY SYSTEM v1.0
   ============================================ */

:root {
  --indigo:            #6366F1;
  --blue:              #3B82F6;
  --gradient:          linear-gradient(135deg, #6366F1 0%, #3B82F6 100%);
  --gradient-h:        linear-gradient(90deg,  #6366F1 0%, #3B82F6 100%);
  --text-gradient:     linear-gradient(90deg, #818CF8, #60A5FA);
  --bg-deep:           #080C18;
  --bg-surface:        #0D1120;
  --bg-card:           #0F172A;
  --bg-elevated:       #1E293B;
  --text-primary:      #F1F5F9;
  --text-secondary:    #E2E8F0;
  --text-muted:        #94A3B8;
  --text-subtle:       #64748B;
  --text-disabled:     #475569;
  --indigo-light:      #818CF8;
  --blue-light:        #60A5FA;
  --indigo-pale:       #A5B4FC;
  --success:           #22C55E;
  --success-light:     #4ADE80;
  --error:             #EF4444;
  --warning:           #F59E0B;
  --border-subtle:     rgba(99,102,241,0.10);
  --border-default:    rgba(99,102,241,0.22);
  --border-strong:     rgba(99,102,241,0.38);
  --font:              'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         16px;
  --radius-xl:         20px;
  --radius-pill:       32px;
}

/* BASE RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* BACKGROUND GRID */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.055) 1px, transparent 1px);
  background-size: 108px 108px;
  pointer-events: none;
  z-index: 0;
}

/* BLOBS */
.jurione-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.jurione-blob-1 {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 65%);
}
.jurione-blob-2 {
  width: 500px; height: 500px;
  bottom: 10%; left: -150px;
  background: radial-gradient(circle, rgba(59,130,246,0.16) 0%, transparent 65%);
}

/* TYPOGRAPHY */
a { color: var(--indigo-pale); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--indigo-light); }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.2;
}

p { margin-bottom: 1rem; color: var(--text-muted); }
ul, ol { padding-left: 1.5rem; }

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

/* GRADIENT TEXT UTILITY */
.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* GLOW LINE */
.glow-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #6366F1 35%, #3B82F6 65%, transparent);
}

/* BADGE */
.jurione-badge {
  display: inline-block;
  background: rgba(99,102,241,0.10);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--indigo-pale);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* BUTTON PRIMARY */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  font-family: var(--font);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

/* CARD BASE */
.jurione-card {
  background: rgba(15,23,42,0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
}
.jurione-card:hover {
  border-color: var(--border-default);
  transform: translateY(-3px);
}

/* CONTAINER */
.jurione-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* SECTION */
.jurione-section { position: relative; z-index: 1; }

/* SIDEBAR CARD */
.sidebar-card {
  background: rgba(15,23,42,0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}
.sidebar-card:hover { border-color: var(--border-default); }

.sidebar-card-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-glow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 6px var(--indigo);
  flex-shrink: 0;
}
.sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo-pale);
}

/* PAGINATION */
.jurione-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
}
.jurione-pagination .page-numbers {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.60);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.jurione-pagination .page-numbers:hover,
.jurione-pagination .page-numbers.current {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.jurione-pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--text-disabled);
  width: auto;
}
.jurione-pagination .prev,
.jurione-pagination .next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  font-size: 13px;
}

/* COMMENTS */
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: rgba(15,23,42,0.80);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.comment-author .fn { font-weight: 600; color: var(--text-primary); font-size: 15px; }
.comment-metadata { font-size: 12px; color: var(--text-subtle); margin: 4px 0 12px; }
.comment-content p { font-size: 15px; color: var(--text-muted); }
.comment-reply-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--indigo-pale);
  letter-spacing: 0.5px;
}

/* FORMS / COMMENT FORM */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: rgba(15,23,42,0.80);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--indigo); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-subtle); }
.comment-form label { font-size: 12px; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 6px; }
.comment-form .submit { background: var(--gradient); border: none; border-radius: var(--radius-md); padding: 12px 24px; color: #fff; font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer; }

/* SEARCH FORM */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  background: rgba(15,23,42,0.80);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.search-form input:focus { border-color: var(--indigo); }
.search-form input::placeholder { color: var(--text-subtle); }
.search-form button { background: var(--gradient); border: none; border-radius: var(--radius-md); padding: 10px 16px; color: #fff; cursor: pointer; font-size: 14px; }

/* WP ALIGNMENTS */
.aligncenter { margin: 0 auto 1rem; display: block; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }

/* READING PROGRESS */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient-h);
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}

@media (max-width: 1024px) {
  .jurione-container { padding: 0 24px; }
}
@media (max-width: 768px) {
  .jurione-container { padding: 0 16px; }
}
