/*
Theme Name: EdsonK Dark
Description: Tema escuro do blog, baseado na página inicial de edsonk.com.br.
Author: Édson Kuzniewski
Version: 1.0.0
Text Domain: edsonk-dark
Requires PHP: 7.4
*/

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --card: rgba(255, 255, 255, .03);
  --red: #ff1a1a;
  --red-dark: #b30000;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(60% 40% at 50% 8%, rgba(255, 26, 26, .14), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding: 2rem 16px 1.5rem;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; }

/* Cabeçalho */
.site-header { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding-bottom: 2rem; }
.site-logo { display: block; width: min(260px, 70vw); aspect-ratio: 3 / 2;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); }
.site-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-title { font-family: "Sora", "Inter", sans-serif; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; letter-spacing: -.01em; }
.site-title a { color: var(--fg); }
.site-title a:hover { text-decoration: none; }
.site-desc { color: var(--muted); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; }
.divider { width: 48px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; }
.menu a, .btn, .search-form button {
  display: inline-flex; align-items: center; color: var(--fg); font-size: .92rem; text-decoration: none; cursor: pointer;
  padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}
.menu a:hover, .menu a:focus-visible, .menu .current-menu-item > a, .btn:hover, .search-form button:hover {
  border-color: var(--red); background: rgba(255, 26, 26, .08); box-shadow: 0 0 18px rgba(255, 26, 26, .25);
  outline: none; text-decoration: none;
}
.menu a:hover { transform: translateY(-2px); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.page-title { font-family: "Sora", "Inter", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.page-title::before, .widget-title::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }

/* Posts */
.post { padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.post:hover { border-color: rgba(255, 26, 26, .5); }
.post-title { font-family: "Sora", "Inter", sans-serif; font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-bottom: .4rem; }
.post-title a { color: var(--fg); }
.post-title a:hover { color: var(--red); text-decoration: none; }
.meta { color: var(--muted); font-size: .8rem; margin-bottom: .8rem; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--red); }
.thumb { display: block; margin-bottom: .9rem; }
.thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }
.more { display: inline-block; margin-top: .6rem; font-size: .85rem; }

/* Conteúdo */
.content { color: #d6d6d6; overflow-wrap: anywhere; }
.content > * + * { margin-top: 1rem; }
.content h2, .content h3, .content h4 { font-family: "Sora", "Inter", sans-serif; color: var(--fg); line-height: 1.3; margin-top: 1.6rem; }
.content h2 { font-size: 1.3rem; } .content h3 { font-size: 1.15rem; } .content h4 { font-size: 1rem; }
.content ul, .content ol { padding-left: 1.4rem; }
.content li + li { margin-top: .3rem; }
.content img { max-width: 100%; height: auto; border-radius: 6px; }
.content blockquote { border-left: 2px solid var(--red); padding: .2rem 0 .2rem 1rem; color: var(--muted); }
.content pre { background: #0b0b0b; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: rgba(255, 255, 255, .07); padding: .1em .35em; border-radius: 4px; }
.content pre code { background: none; padding: 0; }
.content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.content th, .content td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.content iframe, .content video, .content embed { max-width: 100%; }
.alignleft { float: left; margin: 0 1rem .5rem 0; } .alignright { float: right; margin: 0 0 .5rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; } .wp-caption-text { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { font-size: .75rem; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: #d6d6d6; }
.tags a:hover { border-color: var(--red); text-decoration: none; }

/* Navegação */
.pagination, .post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; font-size: .9rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); }
.page-numbers.current, a.page-numbers:hover { border-color: var(--red); text-decoration: none; }

/* Barra lateral */
.widget { padding: 1.1rem 1.2rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .9rem; }
.widget-title { font-family: "Sora", "Inter", sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.widget ul { list-style: none; }
.widget li { padding: .25rem 0; color: var(--muted); }
.widget a { color: #d6d6d6; } .widget a:hover { color: var(--red); text-decoration: none; }
.tagcloud a { display: inline-block; margin: 0 .3rem .3rem 0; font-size: .8rem !important; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
.widget select, .search-form input[type=search], .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; background: #0b0b0b; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font: inherit;
}
.search-form { display: flex; gap: .5rem; } .search-form button { padding: .5rem .9rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); }

/* Comentários */
.comments { margin-top: 2rem; }
.comment-list { list-style: none; } .comment-list .children { list-style: none; margin-left: 1.2rem; }
.comment-body { padding: 1rem 1.2rem; margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .9rem; }
.comment-meta { color: var(--muted); font-size: .8rem; margin-bottom: .4rem; }
.comment-form p { margin-bottom: .8rem; }
.comment-form input[type=submit] { color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1.2rem; cursor: pointer; font: inherit; }
.comment-form input[type=submit]:hover { border-color: var(--red); }

.site-footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #141414; }
.screen-reader-text { position: absolute; left: -9999px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.menu svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; margin-right: .5rem; flex: none; }

/* Turnstile (plugin EdsonK Turnstile) */
.ek-ts { margin: 0 0 1rem; max-width: 100%; }
.ek-ts:empty { margin: 0; }
.ek-ts iframe { border-radius: 12px; }

/* ===== Entrada da página (mesmo efeito "rise" do edsonk.com.br) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.site-logo { animation: rise .9s ease-out both; }
.site-title { animation: rise .9s .15s ease-out both; }
.site-desc { animation: rise .9s .2s ease-out both; }
.site-header .divider { animation: rise .9s .25s ease-out both; }
.site-header .menu, .site-header nav { animation: rise .9s .3s ease-out both; }
.post, .page-content, .entry, article { animation: rise .9s .35s ease-out both; }
.post:nth-of-type(2) { animation-delay: .45s; } .post:nth-of-type(3) { animation-delay: .55s; }
.post:nth-of-type(4) { animation-delay: .65s; } .post:nth-of-type(n+5) { animation-delay: .75s; }
.widget { animation: rise .9s .5s ease-out both; }
.widget:nth-of-type(2) { animation-delay: .6s; } .widget:nth-of-type(n+3) { animation-delay: .7s; }
.site-footer { animation: rise .9s .8s ease-out both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
