/*
Theme Name: Oasis Tech Blog
Theme URI: https://oasistech.info
Description: Tema moderno e profissional para o blog da Oasis Tech. Design dark tech com foco em conversão e experiência do usuário.
Version: 1.0.0
Author: Oasis Tech
Author URI: https://oasistech.info
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oasis-tech-blog
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  --bg:        #080C18;
  --bg2:       #0E1525;
  --bg3:       #141B30;
  --green:     #00D45A;
  --cyan:      #00C8E0;
  --white:     #F0F4FF;
  --muted:     #7A8BA8;
  --border:    rgba(0,212,90,0.15);
  --fd: 'Oxanium', sans-serif;
  --fb: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body { 
  background: var(--bg); 
  color: var(--white); 
  font-family: var(--fb); 
  font-size:16px; 
  line-height:1.6; 
  overflow-x:hidden;
  scroll-padding-top: 100px;
}

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;600;700&family=Oxanium:wght@700;800&display=swap');

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fd);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.5rem; line-height: 1.8; }

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

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

strong { font-weight: 700; color: var(--white); }
em { font-style: italic; color: var(--cyan); }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--fd);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: #050A14 !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
  text-decoration: none;
}

.nav-cta:hover {
  background: #00F066 !important;
  transform: translateY(-1px);
}

@media(max-width: 900px) {
  .nav-links { display: none; }
}

/* ===== HEADER ===== */
#blog-header {
  margin-top: 72px;
  padding: 150px 5% 80px;
  background: linear-gradient(135deg, #0A1F14 0%, #091525 50%, #0E0D22 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.blog-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.blog-header-content h1 {
  font-family: var(--fd);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.blog-header-content h1 span { color: var(--green); }

.blog-header-content p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ===== MAIN CONTENT ===== */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

@media(max-width: 960px) {
  .blog-container { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* ===== POSTS GRID ===== */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(0, 212, 90, 0.35);
  transform: translateY(-4px);
}

.post-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 90, 0.1), rgba(0, 200, 224, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
}

.post-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  display: inline-block;
  background: rgba(0, 212, 90, 0.1);
  border: 1px solid rgba(0, 212, 90, 0.2);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  width: fit-content;
  font-family: var(--fd);
  letter-spacing: 0.05em;
}

.post-title {
  font-family: var(--fd);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.post-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-link {
  display: inline-block;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: color 0.2s;
}

.post-link:hover { color: var(--cyan); }

/* ===== SIDEBAR ===== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.sidebar-widget h3 {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 212, 90, 0.1);
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sidebar-widget ul li a:hover { color: var(--green); }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0, 212, 90, 0.1), rgba(0, 200, 224, 0.1));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sidebar-cta h4 {
  font-family: var(--fd);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta a {
  display: inline-block;
  background: var(--green);
  color: #050A14;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.sidebar-cta a:hover { background: #00F066; }

/* ===== SINGLE POST ===== */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 5% 80px;
}

.post-content {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px;
  margin-bottom: 48px;
}

@media(max-width: 768px) {
  .post-content { padding: 32px; }
}

.post-content p { margin-bottom: 24px; line-height: 1.8; color: rgba(240, 244, 255, 0.85); }

.post-content h2 {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 40px 0 20px;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin: 32px 0 16px;
}

.post-content ul,
.post-content ol {
  margin: 24px 0 24px 24px;
  line-height: 1.8;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 12px;
  color: rgba(240, 244, 255, 0.85);
}

.post-highlight {
  background: rgba(0, 212, 90, 0.1);
  border-left: 4px solid var(--green);
  padding: 20px;
  margin: 32px 0;
  border-radius: 6px;
}

.post-highlight p { margin: 0; color: var(--white); }

/* ===== AUTHOR BOX ===== */
.author-box {
  background: linear-gradient(135deg, rgba(0, 212, 90, 0.05), rgba(0, 200, 224, 0.05));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin: 48px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: var(--fd);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ===== CTA BOX ===== */
.post-cta {
  background: linear-gradient(135deg, rgba(0, 212, 90, 0.1), rgba(0, 200, 224, 0.1));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.post-cta h3 {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.post-cta p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.post-cta a {
  display: inline-block;
  background: var(--green);
  color: #050A14;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.post-cta a:hover { background: #00F066; }

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s;
}

.related-card:hover { border-color: rgba(0, 212, 90, 0.35); }

.related-card h4 {
  font-family: var(--fd);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.related-card a {
  display: inline-block;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.related-card a:hover { color: var(--cyan); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.9rem;
}

.pagination a:hover {
  border-color: var(--green);
  color: var(--green);
}

.pagination .current {
  background: var(--green);
  color: #050A14;
  border-color: var(--green);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 5% 36px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--fd);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(240, 244, 255, 0.55);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-green { color: var(--green); }

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .blog-posts { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
}

/* ===== POST HEADER CORRECTION ===== */
#post-header {
  margin-top: 72px;
  padding: 150px 5% 80px;
  background: linear-gradient(135deg, #0A1F14 0%, #091525 50%, #0E0D22 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.post-header-content {
  max-width: 900px;
  margin: 0 auto;
}

.post-header-content h1 {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.post-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.post-breadcrumb a:hover {
  color: var(--green);
}

.post-breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.post-category-badge {
  display: inline-block;
  background: rgba(0, 212, 90, 0.1);
  border: 1px solid rgba(0, 212, 90, 0.2);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-family: var(--fd);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-meta-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}
