/* ═══════════════════════════════════════════
   TIMILUC SRL — Single Blog Post
   Article header, body typography, author box,
   post navigation, related posts.
   ═══════════════════════════════════════════ */


/* ─── PAGE WRAPPER ─── */
.tml-single-page {
    background: var(--tml-bg);
    min-height: 100vh;
}


/* ─── ARTICLE HEADER ─── */
.tml-article-header {
    position: relative;
    padding: clamp(140px, 20vw, 220px) 24px clamp(50px, 8vw, 80px);
    text-align: center;
    overflow: hidden;
}

.tml-article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 206, 209, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.tml-article-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.tml-article-cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--tml-cyan);
    margin-bottom: 1.25rem;
}

.tml-article-cat a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tml-transition);
}

.tml-article-cat a:hover {
    color: var(--tml-gold);
}

.tml-article-title {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.tml-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--tml-muted);
}

.tml-article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.tml-article-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.tml-article-meta-item a {
    color: var(--tml-cyan);
    text-decoration: none;
    transition: color var(--tml-transition);
}

.tml-article-meta-item a:hover {
    color: var(--tml-cyan-dim);
}

/* Featured image */
.tml-article-featured {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 24px;
}

.tml-article-featured-img {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    aspect-ratio: 16 / 9;
    background: var(--tml-bg2);
}

.tml-article-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ─── ARTICLE BODY ─── */
.tml-article-body {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px clamp(50px, 8vw, 80px);
}

/* Typography */
.tml-article-body h2 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.2;
    margin: 2.5rem 0 1rem;
}

.tml-article-body h3 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.tml-article-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tml-white);
    margin: 1.5rem 0 0.5rem;
}

.tml-article-body p {
    font-size: clamp(0.9rem, 1.1vw, 1.02rem);
    color: var(--tml-txt);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 1.25em;
}

.tml-article-body a {
    color: var(--tml-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 206, 209, 0.3);
    transition: text-decoration-color var(--tml-transition);
}

.tml-article-body a:hover {
    text-decoration-color: var(--tml-cyan);
}

.tml-article-body strong {
    font-weight: 700;
    color: var(--tml-white);
}

.tml-article-body em {
    font-style: italic;
}

/* Lists */
.tml-article-body ul,
.tml-article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.tml-article-body ul {
    list-style: none;
    padding-left: 0;
}

.tml-article-body ul li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 0.5em;
    font-size: 0.92rem;
    color: var(--tml-txt);
    line-height: 1.7;
    font-weight: 300;
}

.tml-article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tml-cyan);
    opacity: 0.5;
}

.tml-article-body ol li {
    margin-bottom: 0.5em;
    font-size: 0.92rem;
    color: var(--tml-txt);
    line-height: 1.7;
    font-weight: 300;
}

/* Blockquote */
.tml-article-body blockquote {
    margin: 2rem 0;
    padding: 24px 28px;
    border-left: 3px solid var(--tml-gold);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
}

.tml-article-body blockquote p {
    font-family: var(--tml-font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--tml-gold);
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 0;
}

.tml-article-body blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--tml-muted);
    font-weight: 400;
}

/* Images */
.tml-article-body img {
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-article-body figure {
    margin: 2rem 0;
}

.tml-article-body figcaption {
    text-align: center;
    font-size: 0.75rem;
    color: var(--tml-muted);
    font-weight: 400;
    margin-top: 8px;
}

/* Code blocks */
.tml-article-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--tml-cyan);
}

.tml-article-body pre {
    margin: 1.5rem 0;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--tml-bg2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tml-article-body pre code {
    background: transparent;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--tml-txt);
}

/* Horizontal rule */
.tml-article-body hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 2.5rem 0;
}

/* Table */
.tml-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.tml-article-body table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--tml-white);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tml-article-body table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--tml-txt);
}

/* Tags */
.tml-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-article-tags-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tml-muted);
    margin-right: 4px;
    align-self: center;
}

.tml-article-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tml-muted);
    text-decoration: none;
    transition: all var(--tml-transition);
}

.tml-article-tag:hover {
    border-color: var(--tml-cyan);
    color: var(--tml-cyan);
    background: rgba(0, 206, 209, 0.04);
}


/* ─── SHARE BUTTONS ─── */
.tml-article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.tml-article-share-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tml-muted);
}

.tml-article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tml-muted);
    cursor: pointer;
    transition: all var(--tml-transition);
    text-decoration: none;
}

.tml-article-share-btn:hover {
    border-color: var(--tml-cyan);
    color: var(--tml-cyan);
    background: rgba(0, 206, 209, 0.04);
}

.tml-article-share-btn svg {
    width: 14px;
    height: 14px;
}


/* ─── AUTHOR BOX ─── */
.tml-article-author {
    max-width: 740px;
    margin: 0 auto 3rem;
    padding: 0 24px;
}

.tml-article-author-inner {
    display: flex;
    gap: 20px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.tml-article-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tml-bg3);
    flex-shrink: 0;
    border: 2px solid rgba(0, 206, 209, 0.15);
}

.tml-article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tml-article-author-info h4 {
    font-family: var(--tml-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 4px;
}

.tml-article-author-info .tml-article-author-role {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tml-cyan);
    margin-bottom: 8px;
}

.tml-article-author-info p {
    font-size: 0.82rem;
    color: var(--tml-muted);
    line-height: 1.6;
    font-weight: 300;
}


/* ─── POST NAVIGATION ─── */
.tml-post-nav {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 540px) {
    .tml-post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.tml-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: all var(--tml-transition);
}

.tml-post-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.tml-post-nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tml-muted);
}

.tml-post-nav-title {
    font-family: var(--tml-font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.3;
    transition: color var(--tml-transition);
}

.tml-post-nav-link:hover .tml-post-nav-title {
    color: var(--tml-cyan);
}

.tml-post-nav-link--next {
    text-align: right;
}


/* ─── RELATED POSTS ─── */
.tml-related-posts {
    padding: clamp(50px, 8vw, 80px) 24px;
    background: var(--tml-bg2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.tml-related-posts-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.tml-related-posts-title {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 2rem;
    text-align: center;
}

.tml-related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 540px) {
    .tml-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .tml-related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reuse blog card styles from noutati.css */
.tml-related-posts-grid .tml-blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.tml-related-posts-grid .tml-blog-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}


/* ─── COMMENTS ─── */
.tml-comments {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px 3rem;
}

.tml-comments-title {
    font-family: var(--tml-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 2rem;
}

.tml-comment {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tml-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tml-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tml-bg3);
    overflow: hidden;
}

.tml-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tml-comment-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tml-white);
}

.tml-comment-date {
    font-size: 0.7rem;
    color: var(--tml-muted);
}

.tml-comment-body {
    font-size: 0.85rem;
    color: var(--tml-txt);
    line-height: 1.7;
    font-weight: 300;
}

/* Comment form */
.tml-comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--tml-bg);
    color: var(--tml-white);
    font-size: 0.85rem;
    font-family: var(--tml-font-sans);
    resize: vertical;
    transition: border-color var(--tml-transition);
    margin-bottom: 12px;
}

.tml-comment-form textarea:focus {
    outline: none;
    border-color: var(--tml-cyan);
}

.tml-comment-form-submit {
    padding: 12px 28px;
    border-radius: 10px;
    background: var(--tml-cyan);
    color: var(--tml-bg);
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--tml-transition);
    font-family: var(--tml-font-sans);
}

.tml-comment-form-submit:hover {
    background: var(--tml-cyan-dim);
}


/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .tml-article-author-inner {
        flex-direction: column;
        text-align: center;
    }

    .tml-article-author-avatar {
        margin: 0 auto;
    }

    .tml-article-meta {
        gap: 12px;
    }
}
