/*
Theme Name: GRC Inside
Theme URI: https://www.grcinside.com.br
Author: GRC Inside
Description: Tema oficial do portal GRC Inside. Reproduz a identidade visual (paleta grafite/roxo/ciano, tipografia Roboto e estrutura de menu) usada no site, em formato de portal de notícias com grade de artigos em destaque, inspirado no CISO Advisor. Totalmente responsivo (desktop e mobile).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: grc-inside
*/

/* ============================================================
   BASE
   ============================================================ */
html {
  font-family: 'Roboto', sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background: #ffffff;
}
body {
  margin: 0;
  background: #ffffff;
  color: #1e293b;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: left;
  overflow-x: hidden;
  width: 100%;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; }
a { background: transparent; color: #06B6D4; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #4F46E5; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 700; color: #0f172a; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* ============================================================
   TIPOGRAFIA (mesmas fontes do site original)
   ============================================================ */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
}

/* ============================================================
   ESTRUTURA GERAL
   ============================================================ */
#wrapper {
  background: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 28px;
  overflow: hidden;
}
#post-wrapper {
  background: #ffffff;
  float: left;
  width: 73%;
  margin: 0 0 10px;
  padding-left: 6px;
}
#sidebar-wrapper {
  background: #ffffff;
  float: right;
  width: 24%;
}

/* Top Bar / Header area */
#header-area {
  background: #111625;
  margin: 0 auto;
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}
#header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.logo-link img { display: block; max-height: 72px; width: auto; object-fit: contain; }
.logo-text-container {
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  padding-left: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.logo-text-sub {
  max-width: 480px;
  color: #06B6D4;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.logo-text-sub strong { color: #ffffff; font-weight: 700; }
.search-box { position: relative; }
.search-box input[type="text"],
.search-box input[type="search"] {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 4px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  width: 220px;
}
.search-box button { display: none; }

/* Menu Navigation */
.nav-wrapper {
  background: #111625;
  border-bottom: 2px solid #4F46E5;
  position: relative;
  width: 100%;
  z-index: 99;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.desktop-menu-wrapper { display: block; }
ul.megamenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
ul.megamenu li { position: relative; }
ul.megamenu li a {
  display: block;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  padding: 16px 0;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Roboto', sans-serif;
}
ul.megamenu li a:hover { color: #06B6D4; }
ul.megamenu li.current-menu-item > a { color: #06B6D4; }
ul.megamenu li a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #06B6D4;
  transition: width 0.3s ease;
}
ul.megamenu li a:hover:after { width: 100%; }

/* Mobile hamburger & header */
html.mobile-drawer-open, body.mobile-drawer-open { overflow: hidden !important; height: 100vh !important; }
body.mobile-drawer-open .back-to-top { display: none !important; }
.mobile-nav-header { display: none; justify-content: space-between; align-items: center; padding: 12px 0; }
.menu-toggle {
  background: none; border: none; cursor: pointer; display: flex; flex-direction: column;
  gap: 5px; padding: 10px; margin-left: -10px; z-index: 100; width: 44px; height: 44px;
  justify-content: center; align-items: center;
}
.hamburger-bar { display: block; width: 22px; height: 2px; background-color: #ffffff; transition: all .3s ease-in-out; border-radius: 2px; }
.mobile-logo-container img { max-height: 40px; width: auto; object-fit: contain; }
.mobile-search-toggle {
  background: none; border: none; cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; margin-right: -10px; transition: opacity .2s;
}
.mobile-search-toggle:hover { opacity: .8; }

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px);
  z-index: 99998; opacity: 0; visibility: hidden; transition: all .3s ease; cursor: pointer;
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer {
  font-family: 'Roboto', sans-serif; position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
  background: #111625; border-right: 1px solid rgba(79, 70, 229, 0.25); box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  z-index: 99999; display: flex; flex-direction: column; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.active { left: 0; }
.drawer-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.drawer-logo img { max-height: 42px; width: auto; object-fit: contain; }
.drawer-close {
  background: none; border: none; color: #94a3b8; cursor: pointer; padding: 8px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%; transition: all .2s; width: 40px; height: 40px;
}
.drawer-close:hover { color: #ffffff; background: rgba(255,255,255,.05); }
.drawer-content { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 30px; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-list li { border-bottom: 1px solid rgba(255,255,255,.03); }
.mobile-menu-list li a { display: block; padding: 12px 0; color: #e2e8f0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; transition: color .2s; }
.mobile-menu-list li a:hover { color: #06B6D4; padding-left: 6px; }
.drawer-search-wrapper { margin-top: 10px; }
.drawer-search-wrapper form { position: relative; display: flex; }
.drawer-search-wrapper input {
  width: 100%; background: rgba(30, 41, 59, .6); border: 1px solid rgba(79,70,229,.3); padding: 12px 16px;
  padding-right: 48px; border-radius: 6px; color: #ffffff; font-size: 13px; outline: none; transition: border-color .2s;
}
.drawer-search-wrapper input:focus { border-color: #06B6D4; }
.drawer-search-wrapper button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; background: #4F46E5; border: none;
  color: #ffffff; border-radius: 4px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.drawer-search-wrapper button:hover { background: #3b31c8; }
.drawer-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,.08); background: #0b0e18; }
.drawer-footer .drawer-title { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: bold; }
.drawer-footer .drawer-subtitle { color: #475569; font-size: 10px; margin-top: 4px; line-height: 1.4; }

/* ============================================================
   GRADE DE NOTÍCIAS (Home / categorias / busca / arquivo)
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.news-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: all .3s ease; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.news-card:hover { transform: translateY(-2px); border-color: #06B6D4; box-shadow: 0 4px 15px rgba(79,70,229,.1); }
.news-card-thumb-link {
  display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #181f33 0%, #111625 100%); flex-shrink: 0;
}
.news-card-thumb-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.news-card:hover .news-card-thumb-link img { transform: scale(1.05); }
.news-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #06B6D4; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-category {
  align-self: flex-start; background: rgba(79,70,229,.1); color: #4F46E5; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; text-decoration: none;
}
.news-card-category:hover { background: rgba(6,182,212,.15); color: #06B6D4; }
.news-card-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.news-card-title a { color: #0f172a; }
.news-card-title a:hover { color: #4F46E5; }
.news-card-meta { color: #64748b; font-size: 12px; margin-bottom: 10px; }
.news-card-excerpt { color: #475569; font-size: 13.5px; line-height: 1.6; margin-bottom: 14px; flex-grow: 1; }
.news-card-readmore { color: #06B6D4; font-size: 13px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.news-card-readmore:hover { color: #4F46E5; }
.featured-card { grid-column: 1 / -1; flex-direction: row; }
.featured-card .news-card-thumb-link { width: 46%; aspect-ratio: auto; }
.featured-card .news-card-body { padding: 26px 30px; justify-content: center; }
.featured-card .news-card-title { font-size: 24px; }
.featured-card .news-card-excerpt { font-size: 14.5px; }

/* Paginação */
.blog-pager { margin: 30px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.blog-pager a, .blog-pager span.current {
  background: #4F46E5; color: #ffffff; padding: 8px 16px; border-radius: 4px; font-weight: bold; font-size: 13px;
}
.blog-pager span.dots { color: #64748b; padding: 8px 4px; }

/* ============================================================
   POST INDIVIDUAL / PÁGINA ESTÁTICA
   ============================================================ */
.blog-posts { }
.post {
  background: #ffffff; border: 1px solid #e2e8f0; border-left: 4px solid #4F46E5; padding: 24px;
  margin-bottom: 25px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.post-title { color: #0f172a; font-size: 28px; font-weight: 700; line-height: 1.3; }
.post-info { color: #64748b; font-size: 12px; margin: 10px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.post-content-container { font-size: 15px; line-height: 1.8; color: #334155; }
.post-content-container p { margin-bottom: 1.4em; }
.post-content-container img { border-radius: 6px; margin: 1em 0; }
.post-content-container h2 { font-size: 1.5rem; margin: 1.6em 0 .7em; border-left: 4px solid #4F46E5; padding-left: 12px; }
.post-content-container h3 { font-size: 1.25rem; margin: 1.4em 0 .7em; }
.post-content-container ul, .post-content-container ol { margin-bottom: 1.4em; padding-left: 24px; }
.post-content-container blockquote {
  background: #f8fafc; border-left: 4px solid #06B6D4; padding: 18px 22px; margin: 1.8em 0; border-radius: 0 8px 8px 0; font-style: italic; color: #475569;
}
.post-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  background: rgba(79,70,229,.1); color: #4F46E5; padding: 5px 12px; font-size: 12px; border-radius: 4px; font-weight: 600;
}
.post-tags a:hover { background: rgba(6,182,212,.15); color: #06B6D4; }

/* Páginas estáticas (Sobre, Contato, etc.) */
.static_page .post { max-width: 850px; margin: 0 auto 30px; padding: 40px; border-left: none; box-shadow: 0 4px 20px rgba(0,0,0,.02); }
.static-page-title { font-size: 2.2rem; font-weight: 700; color: #0f172a; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #e2e8f0; letter-spacing: -0.02em; }
@media (max-width: 768px) { .static_page .post { padding: 24px 16px; } .static-page-title { font-size: 1.8rem; margin-bottom: 20px; } }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar .widget {
  background: linear-gradient(135deg, #181f33 0%, #111625 100%);
  border: 1px solid rgba(6, 182, 212, 0.15); border-radius: 8px; padding: 20px; margin-bottom: 25px;
  color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.sidebar .widget h2 {
  font-size: 15px; text-transform: uppercase; border-bottom: 2px solid #4F46E5; padding-bottom: 8px;
  margin-bottom: 15px; letter-spacing: .5px; color: #ffffff;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 10px; margin-bottom: 10px; }
.sidebar .widget li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar .widget a { color: #e2e8f0; font-size: 13px; font-weight: 600; }
.sidebar .widget a:hover { color: #06B6D4; }
.sidebar .widget p { font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.widget_tag_cloud .tagcloud, .widget_categories ul { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_categories ul { list-style: none; }
.widget_categories li { border: none !important; padding: 0 !important; margin: 0 !important; }
.widget_tag_cloud .tagcloud a, .widget_categories a {
  background: rgba(79,70,229,.15) !important; color: #06B6D4 !important; padding: 6px 12px; font-size: 12px !important;
  border-radius: 4px; border: 1px solid rgba(6,182,212,.15); font-weight: bold; display: inline-block;
}
.widget-contato-btn a {
  display: flex; align-items: center; justify-content: center; gap: 10px; color: #ffffff !important; font-weight: bold;
  font-size: 14px; padding: 10px 15px; background: #4F46E5; border-radius: 4px; border: 1px solid rgba(6,182,212,.3);
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.widget-linkedin-btn a {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; background: #0077B5;
  color: #ffffff !important; font-weight: bold; border-radius: 4px; text-align: center; font-size: 13px;
}
.sidebar-empty-hint { color: #94a3b8; font-size: 12px; font-style: italic; }

/* ============================================================
   RODAPÉ
   ============================================================ */
#footer-widget-container { background: #0b0f19; border-top: 1px solid rgba(79,70,229,.2); padding: 40px 15px; }
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-inner h3 { color: #ffffff; border-bottom: 2px solid #4F46E5; padding-bottom: 8px; font-size: 16px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.footer-inner p { color: #94a3b8; font-size: 13px; line-height: 1.6; margin: 0; }
.footer-links { margin-top: 25px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 15px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 20px; font-size: 12px; }
.footer-links li { position: relative; }
.footer-links li:not(:last-child):after { content: '|'; position: absolute; right: -22px; color: #334155; }
.footer-links a { color: #64748b; }
.footer-links a:hover { color: #06B6D4; }
#footer-container { background: #090c15; padding: 20px 15px; text-align: center; font-size: 13px; color: #94a3b8; border-top: 1px solid rgba(255,255,255,.05); }

/* Back to top */
.back-to-top { position: fixed; bottom: 25px; right: 25px; z-index: 999; display: none; }
#back-to-top {
  background: #4F46E5; color: #ffffff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #06B6D4; box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: all .3s ease;
}
#back-to-top:hover { background: #06B6D4; transform: translateY(-3px); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  #wrapper { width: 100%; max-width: 100%; padding: 24px 14px; }
  #post-wrapper, #sidebar-wrapper { float: none; width: 100%; padding: 0; margin-left: 0; margin-right: 0; }
  .static_page #sidebar-wrapper { display: none; }
  .static_page #post-wrapper { width: 100%; float: none; }
  .post { padding: 16px; margin-bottom: 20px; }
  #header-area { display: none; }
  .mobile-nav-header { display: flex; }
  .desktop-menu-wrapper { display: none; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-card { flex-direction: column; }
  .featured-card .news-card-thumb-link { width: 100%; aspect-ratio: 16 / 9; }
  .featured-card .news-card-body { padding: 18px 20px 20px; }
  .featured-card .news-card-title { font-size: 19px; }
  .post-info { flex-wrap: wrap; gap: 6px; }
  #footer-widget-container div { max-width: 100%; }
}
