/* ====== Base ====== */
html,
body {
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--green-2);
    text-decoration: underline;
}

figure {
    margin: 0
}

/* ====== Layout da Single ====== */
.single {
    padding: 24px 16px;
}

.single__container {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
}

@media (max-width: 1024px) {
    .single__container {
        grid-template-columns: 1fr;
    }
}

/* ====== Artigo ====== */
.single__article {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.single__header {
    margin-bottom: 16px;
}

.single__cats {
    font-size: 0.8667rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 6px;
}

.single__title {
    margin: 0 0 8px 0;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width:640px) {
    .single__title {
        font-size: 1.6rem;
    }
}

.single__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8667rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--muted);
}

.single__dot {
    opacity: .5
}

.single__thumb {
    margin: 16px 0 20px 0;
}

.single__thumbImg {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.single__content {
    font-family: var(--font-sans);
    font-size: 0.8667rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.8;
    color: var(--text);
}

.single__content p {
    margin: 0 0 1.1em;
}

.single__content h2 {
    font-size: 1.6rem;
    margin: 1.4em 0 .6em;
    line-height: 1.3;
}

.single__content h3 {
    font-size: 1.333rem;
    margin: 1.2em 0 .5em;
}

.single__content ul,
.single__content ol {
    padding-left: 22px;
    margin: 1em 0;
}

.single__content blockquote {
    margin: 1.2em 0;
    padding: 12px 16px;
    border-left: 4px solid var(--green);
    background: #f8fafc;
    color: #0b1220;
    border-radius: 8px;
}

.single__content a {
    text-decoration: underline;
}

/* Tags */
.single__tags {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 0.8667rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.single__tags span {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 999px;
    margin-right: 6px;
}

/* Navegação */
.single__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.single__nav a {
    display: inline-flex;
    align-items: center;
    background: var(--green);
    color: #fff;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-size: var(--btn-fs);
    font-weight: var(--btn-fw);
    transition: filter .15s ease;
}

.single__nav a:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* ====== Compartilhar (flutuante/colado à direita do artigo) ====== */
.single__share {
    position: sticky;
    top: 120px;
    float: right;
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

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

.single__shareList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-weight: 700;
}

.share__btn--fb {
    color: #1877f2
}

.share__btn--tw {
    color: #111
}

/* X */
.share__btn--wa {
    color: #25d366
}

.share__btn--ln {
    color: #0a66c2
}

@media (max-width:1024px) {
    .single__share {
        display: none;
    }
}

/* ====== Sidebar ====== */
.single__sidebar {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

@media (max-width:1024px) {
    .single__sidebar {
        order: 2;
    }
}

/* ====== Comentários ====== */
.single__comments {
    margin-top: 28px;
    color: #0f172a;
}

.comment-respond,
.comments-area {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

.form-submit input[type="submit"] {
    background: var(--green);
    color: #fff;
    border: none;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border-radius: var(--btn-radius);
    font-size: var(--btn-fs);
    font-weight: var(--btn-fw);
    cursor: pointer;
    transition: filter .15s ease;
}

.form-submit input[type="submit"]:hover {
    filter: brightness(1.08);
}

.single {
    background: #fff;
}