/*
 * Typography Styles - Migrados do template StoreFront
 * Estilos para elementos tipográficos especiais: gkTips, gkInfo, gkWarning, etc.
 */

/* Listas K2Box */
.k2box > ul,
.k2box > ul ul {
    list-style-type: disc;
    padding-left: 20px;
}

.k2box > ol,
.k2box > ol ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.k2box > ul li,
.k2box > ul ul li,
.k2box > ol li,
.k2box > ol ol li {
    list-style-position: outside;
    padding-left: 0;
}

/* Parágrafos Informativos */
p.gkInfo1,
p.gkTips1,
p.gkWarning1 {
    padding: 12px 12px 12px 66px;
    position: relative;
}

/* Highlights */
.gkHighlight1,
.gkHighlight2 {
    cursor: default;
    padding: 1px 5px;
    text-shadow: none;
}

.gkHighlight1 {
    background: #ffd;
}

.gkHighlight2 {
    background: #f5f5f5;
}

/* Código e Pré-formatado */
pre {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 2em 0;
    padding: 20px 26px;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #5999e8;
    background: #f8f8f8;
    overflow-x: auto;
    border-radius: 4px;
}

pre code {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Listas Ordenadas */
ol {
    list-style-position: inside;
    margin: 2em 0;
    padding: 0;
}

ol.gkDec {
    list-style-type: decimal;
}

ol.gkRoman {
    list-style-type: upper-roman;
}

ol.gkAlpha {
    list-style-type: lower-alpha;
}

ol.gkDecimalLeadingZero {
    list-style-type: decimal-leading-zero;
}

/* Bullets Customizados */
.itemBody > ul,
.itemBody > div > ul,
ul.gkBullet1,
ul.gkBullet2,
ul.gkBullet3,
ul.gkBullet4 {
    margin: 2em 0;
    padding: 0;
}

ul li {
    list-style-position: outside;
}

.itemBody > ul li,
.itemBody > div > ul li,
#product-tabs-content dd,
ul.gkBullet1 li,
ul.gkBullet2 li,
ul.gkBullet3 li,
ul.gkBullet4 li {
    list-style: none;
    overflow: inherit;
    padding: 2px 0 2px 32px;
    position: relative;
}

.itemBody > ul li:before,
.itemBody > div > ul li:before,
#product-tabs-content dd:before,
ul.gkBullet1 li:before,
ul.gkBullet2 li:before,
ul.gkBullet3 li:before,
ul.gkBullet4 li:before {
    font-family: FontAwesome;
    font-size: 13px;
    position: absolute;
    top: 5px;
    left: 0;
}

.itemBody > ul li:before,
.itemBody > div > ul li:before,
ul.gkBullet1 li:before,
#product-tabs-content dd:before {
    color: #111;
    content: "\f111";
    font-size: 6px;
    top: 11px;
}

ul.gkBullet2 li:before {
    color: #5999e8;
    content: "\f14a";
}

ul.gkBullet3 li:before {
    color: #5999e8;
    content: "\f006";
}

ul.gkBullet4 li:before {
    color: #5999e8;
    content: "\f0a9";
}

/* Legend */
div.gkLegend1 h4 {
    background: #fff;
    float: left;
    font-size: 14px;
    font-weight: 400;
    left: 11px;
    line-height: 18px;
    margin: 0 0 -9px !important;
    padding: 0 10px;
    position: relative;
    text-transform: uppercase;
    top: -16px;
}

div.gkLegend1 {
    margin: 30px 0;
    padding: 6px;
    border: 4px double #e5e5e5;
}

div.gkLegend1 h4 {
    background: #fff;
    color: #242424;
}

div.gkLegend1 p {
    clear: both;
    margin: 7px;
}

/* Blockquotes */
blockquote {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    font-style: italic;
    font-weight: 300;
    margin: 20px 0;
    display: block;
    padding: 0 0 0 60px;
    position: relative;
    text-align: center;
}

blockquote:before {
    color: #5999e8;
    content: """;
    font-size: 60px;
    font-style: italic;
    line-height: 1;
    position: absolute;
    left: 0;
    top: -10px;
}

blockquote p:after {
    color: #5999e8;
    content: """;
    display: inline-block;
    font-size: 60px;
    font-style: italic;
    line-height: 0.1;
    padding: 0 0 0 15px;
    position: relative;
    top: 30px;
}

blockquote > small {
    display: block;
    font-style: normal;
    margin-left: -60px;
    text-transform: uppercase;
}

blockquote.gkBlockquote1:before,
blockquote.gkBlockquote1 p:after {
    color: #e5e5e5;
}

/* Blocos de Texto */
.gkBlockTextLeft,
.gkBlockTextRight,
.gkBlockTextCenter {
    color: #272727;
    display: block;
    font-style: italic;
    font-weight: 400;
    line-height: 170%;
    padding: 25px;
    width: 38%;
}

.gkBlockTextLeft {
    float: left;
    padding-left: 0;
    text-align: left;
}

.gkBlockTextRight {
    float: right;
    padding-right: 0;
    text-align: right;
}

.gkBlockTextCenter {
    margin: 0 auto;
    text-align: center;
}

/* Blocos Numerados */
p.numblocks {
    margin: 0 0 24px;
    min-height: 48px;
    padding: 0 0 0 82px !important;
    position: relative;
}

p.numblocks span {
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    display: block;
    font-size: 18px;
    font-weight: 600;
    height: 36px;
    left: 0;
    line-height: 36px;
    padding: 3px;
    position: absolute;
    text-align: center;
    top: 2px;
    width: 36px;
}

p.num-1 span {
    color: #bbb;
}

p.num-2 span {
    color: #272727;
    border-color: #272727;
}

p.num-3 span {
    color: #5999e8;
    border-color: #5999e8;
}

p.numblocks span.highlight {
    border-right: none;
    display: inline;
    font-size: 15px;
    position: static;
    width: auto;
}

/* Blocos GK */
.gkblock-1,
.gkblock-2,
.gkblock-3 {
    margin: 36px 0;
    padding: 15px 20px;
}

.gkblock-1 {
    border: 1px solid #e5e5e5;
}

.gkblock-2 {
    background: #FFFEF4;
    border: 1px solid #EAE8CC;
}

.gkblock-3 {
    background: #f8f8f8;
}

.gkblock-3 small {
    color: #353639 !important;
}

/* Bubbles */
.bubble-1,
.bubble-2 {
    margin: 20px 0 40px;
    padding: 15px 20px;
    position: relative;
}

.bubble-1::after,
.bubble-2::after {
    border-color: transparent;
    border-style: solid;
    border-width: 22px 0 0 22px;
    bottom: -22px;
    content: "";
    display: block;
    left: 30px;
    position: absolute;
    width: 0;
}

.bubble-1 {
    background: #f5f5f5;
    color: #555;
}

.bubble-1::after {
    border-color: #f5f5f5;
    border-left: 22px solid transparent;
}

.bubble-2 {
    background: #5999e8;
    color: #fff;
}

.bubble-2::after {
    border-color: #5999e8;
    border-left: 22px solid transparent;
}

.bubble-1 cite,
.bubble-2 cite {
    bottom: -25px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    height: 25px;
    left: 26px;
    line-height: 32px;
    padding-left: 40px;
    position: absolute;
}

.bubble-1 cite {
    color: #272727;
}

.bubble-2 cite {
    color: #5999e8;
}

.bubble-2 small {
    color: #fff;
}

/* Cores de Informação - gkInfo1, gkTips1, gkWarning1 */
p.gkInfo1 {
    background-color: #f8f8f8;
    color: #272727;
}

p.gkTips1 {
    background-color: #FFFFDD;
    color: #272727;
}

p.gkWarning1 {
    background-color: #5999e8;
    color: #fff;
}

p.gkInfo1:before,
p.gkTips1:before,
p.gkWarning1:before {
    font-family: FontAwesome;
    font-size: 24px;
    position: absolute;
    top: 5px;
    left: 22px;
}

p.gkInfo1:before {
    color: #272727;
    content: "\f0e6";
}

p.gkTips1:before {
    color: #272727;
    content: "\f0eb";
}

p.gkWarning1:before {
    color: #fff;
    content: "\f057";
}

/* Tooltip */
span.helpTooltip {
    background: #5999e8;
    color: #fff;
}

/* Demo Typography */
ul#demo-typography {
    background: transparent;
    overflow: hidden;
    padding: 10px 30px 30px;
}

ul#demo-typography li {
    color: #5999e8;
    float: left;
    font-size: 11px;
    line-height: 24px;
    list-style-type: disc;
    width: 23.9%;
}

ul#demo-typography li a {
    font-size: 11px;
    text-shadow: 2px 2px 0 #fff;
}

.demo-typoDiv {
    clear: both;
    margin: 0 0 30px;
    overflow: hidden;
}

h4.demo-typo {
    color: #272727;
    font-size: 16px;
    margin: 60px 0 20px;
    text-transform: uppercase;
}

.demo-typo-col2 {
    float: left;
    width: 50%;
}

.demo-typo-col3 {
    float: left;
    width: 33%;
}

.demo-typo-col4 {
    float: left;
    width: 25%;
}

.demo-typo_padd {
    padding: 0 15px;
}

#warnings .demo-typo_padd p {
    margin: 1em 0 1.6em;
}

.typoDesc small {
    color: #aaa;
    font: normal 11px Monaco, Consolas, "Courier News", monospace;
}

/* Icons */
.the-icons {
    margin-bottom: 32px;
}

.itemBody .the-icons > li {
    float: left;
    margin-right: 2%;
    padding-left: 0 !important;
    width: 23%;
}

.the-icons > li:before {
    display: none;
}

h5.page-header {
    clear: both;
    padding: 36px 0 18px;
    text-transform: uppercase;
}

[class^="fa fa-"],
[class*=" fa-"] {
    color: #272727;
    padding-right: 8px;
}

/* ========================================
   ESTILOS ADICIONAIS PARA CONTEÚDO
   ======================================== */

/* Tabelas */
.article-body table,
.itemBody table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-body thead,
.itemBody thead,
table thead {
    background: linear-gradient(135deg, #1a4d8f 0%, #0f2557 100%);
    color: white;
}

.article-body th,
.itemBody th,
table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 3px solid #0f2557;
}

.article-body td,
.itemBody td,
table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.article-body tbody tr:hover,
.itemBody tbody tr:hover,
table tbody tr:hover {
    background-color: #f8f9fa;
}

.article-body tbody tr:nth-child(even),
.itemBody tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.article-body tbody tr:nth-child(even):hover,
.itemBody tbody tr:nth-child(even):hover,
table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Links dentro do conteúdo */
.article-body a,
.itemBody a {
    color: #e81f00;
    text-decoration: none;
    transition: color 0.2s linear;
    border-bottom: 1px solid transparent;
}

.article-body a:hover,
.itemBody a:hover {
    color: #1B1D1F;
    border-bottom-color: #1B1D1F;
}

/* Imagens dentro do conteúdo - Centralizadas */
.article-body img,
.itemBody img {
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Limitar largura do conteúdo para melhor legibilidade */
.article-body,
.itemBody {
    max-width: 900px;
    margin-left: 0;
    margin-right: auto;
    padding: 0 40px 0 0;
}

/* Strong e Em */
.article-body strong,
.itemBody strong {
    font-weight: 700;
    color: #1B1D1F;
}

.article-body em,
.itemBody em {
    font-style: italic;
    color: #555;
}

/* Listas dentro do conteúdo */
.article-body ul,
.itemBody ul {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-body ul li,
.itemBody ul li {
    margin: 0.5em 0;
    line-height: 1.8;
}

.article-body ol,
.itemBody ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-body ol li,
.itemBody ol li {
    margin: 0.5em 0;
    line-height: 1.8;
}

/* Parágrafos */
.article-body p,
.itemBody p {
    margin: 1em 0;
    line-height: 1.8;
    color: #333;
    font-size: 18px;
}

/* Tamanho base do texto do artigo */
.article-body,
.itemBody {
    font-size: 18px;
}

/* Headings dentro do conteúdo - Seguindo padrão do site original */
.article-body h1,
.itemBody h1 {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.2;
    margin: 1.5em 0 0.8em;
    padding: 0;
    color: #1B1D1F;
}

.article-body h2,
.itemBody h2 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    margin: 1.5em 0 0.8em;
    padding: 0;
    color: #1B1D1F;
}

.article-body h3,
.itemBody h3 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    margin: 1.3em 0 0.7em;
    padding: 0;
    color: #1B1D1F;
}

.article-body h4,
.itemBody h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 1.2em 0 0.6em;
    padding: 0;
    color: #1B1D1F;
}

.article-body h5,
.itemBody h5 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    margin: 1em 0 0.5em;
    padding: 0;
    color: #1B1D1F;
}

.article-body h6,
.itemBody h6 {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    margin: 1em 0 0.5em;
    padding: 0;
    color: #1B1D1F;
}

/* Horizontal Rule */
.article-body hr,
.itemBody hr {
    border: none;
    border-top: 2px solid #e5e5e5;
    margin: 2em 0;
}

/* Código inline - apenas para código fora de blocos pre */
.article-body code:not(pre code),
.itemBody code:not(pre code) {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #272727;
}

/* Garantir que código dentro de pre não tenha cor fixa para permitir syntax highlighting */
.article-body pre code,
.itemBody pre code {
    color: inherit;
}

/* ========================================
   CORREÇÃO DE FORMATAÇÃO DE CÓDIGO
   Garantir contraste adequado em blocos de código
   ======================================== */

/* Blocos de código <pre> - fundo claro com texto escuro */
.article-body pre,
.article-fulltext pre,
.itemBody pre {
    background: #f8f8f8 !important;
    color: #2d3748 !important;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #5999e8;
    padding: 20px 26px;
    margin: 2em 0;
    overflow-x: auto;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Código dentro de <pre> herda cor do pre */
.article-body pre code,
.article-fulltext pre code,
.itemBody pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Código inline <code> fora de <pre> - fundo cinza claro */
.article-body code:not(pre code),
.article-fulltext code:not(pre code),
.itemBody code:not(pre code) {
    background: #e7f3ff !important;
    color: #1e40af !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    border: 1px solid #bfdbfe;
}

/* Sobrescrever qualquer estilo inline que possa vir do conteúdo */
.article-body pre[style],
.article-fulltext pre[style],
.article-body code[style],
.article-fulltext code[style] {
    background: inherit !important;
    color: inherit !important;
}

/* Formatação da categoria nos artigos */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.category-badge strong {
    color: white !important;
    font-weight: 600;
}

.category-badge a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.category-badge a:hover {
    opacity: 0.9;
    text-decoration: underline;
}
