/**
 * HashDrip Single Post Premium Styling
 * Beautiful blog post typography and layout
 *
 * @package HashDrip
 * @version 1.0.0
 */

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */

.hd-single-post {
    background: var(--hd-black);
}

/* ==========================================================================
   POST HERO
   ========================================================================== */

.hd-post-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hd-post-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1) 0%, transparent 50%);
}

.hd-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.hd-post-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hd-post-hero__categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hd-post-hero__category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.1));
    color: var(--hd-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    text-decoration: none;
    border: 1px solid rgba(212, 168, 67, 0.3);
    transition: all 0.3s ease;
}

.hd-post-hero__category:hover {
    background: var(--hd-gold);
    color: var(--hd-black);
}

.hd-post-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.hd-post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #9CA3AF;
    font-size: 0.9375rem;
}

.hd-post-hero__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hd-post-hero__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--hd-gold);
}

.hd-post-hero__divider {
    color: #4B5563;
}

.hd-post-hero__date,
.hd-post-hero__read-time {
    color: #9CA3AF;
}

/* ==========================================================================
   FEATURED IMAGE
   ========================================================================== */

.hd-post-featured-image {
    position: relative;
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.hd-post-featured-image__wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #2A2A2A;
}

.hd-post-featured-image__wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   POST ARTICLE
   ========================================================================== */

.hd-post-article {
    position: relative;
    padding: 4rem 0;
}

.hd-container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* ==========================================================================
   SHARE SIDEBAR
   ========================================================================== */

.hd-post-share {
    position: absolute;
    left: -100px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hd-post-share__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.hd-post-share__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hd-post-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #141414;
    border: 1px solid #2A2A2A;
    border-radius: 50%;
    color: #9CA3AF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hd-post-share__link:hover {
    background: var(--hd-gold);
    border-color: var(--hd-gold);
    color: var(--hd-black);
    transform: translateY(-3px);
}

@media (max-width: 1200px) {
    .hd-post-share {
        position: relative;
        left: 0;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #2A2A2A;
    }

    .hd-post-share__label {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .hd-post-share__links {
        flex-direction: row;
    }
}

/* ==========================================================================
   POST CONTENT
   ========================================================================== */

.hd-post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #E5E7EB;
}

.hd-post-content > *:first-child {
    margin-top: 0;
}

.hd-post-content p {
    margin-bottom: 1.75rem;
}

.hd-post-content h2 {
    font-size: 2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.hd-post-content h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.hd-post-content h4 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    color: #fff;
    font-weight: 600;
}

.hd-post-content a {
    color: var(--hd-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 67, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.hd-post-content a:hover {
    text-decoration-color: var(--hd-gold);
}

.hd-post-content ul,
.hd-post-content ol {
    margin: 1.75rem 0;
    padding-left: 1.5rem;
}

.hd-post-content li {
    margin-bottom: 0.75rem;
}

.hd-post-content li::marker {
    color: var(--hd-gold);
}

.hd-post-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: #141414;
    border-left: 4px solid var(--hd-gold);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #D1D5DB;
}

.hd-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.hd-post-content img {
    border-radius: 1rem;
    margin: 2.5rem 0;
    max-width: 100%;
    height: auto;
}

.hd-post-content figure {
    margin: 3rem 0;
}

.hd-post-content figcaption {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

.hd-post-content pre {
    background: #141414;
    border: 1px solid #2A2A2A;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.hd-post-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: #1A1A1A;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--hd-gold);
}

.hd-post-content pre code {
    background: none;
    padding: 0;
    color: #E5E7EB;
}

.hd-post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2A2A2A, transparent);
    margin: 3rem 0;
}

/* ==========================================================================
   POST FOOTER / TAGS
   ========================================================================== */

.hd-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2A2A2A;
}

.hd-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hd-post-tags__label {
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.9375rem;
}

.hd-post-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #141414;
    color: #9CA3AF;
    font-size: 0.8125rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #2A2A2A;
}

.hd-post-tag:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--hd-gold);
    color: var(--hd-gold);
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.hd-post-author {
    padding: 4rem 0;
    background: #0D0D0D;
}

.hd-post-author__card {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: #141414;
    border-radius: 1rem;
    border: 1px solid #2A2A2A;
}

@media (max-width: 640px) {
    .hd-post-author__card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.hd-post-author__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--hd-gold);
}

.hd-post-author__info {
    flex: 1;
}

.hd-post-author__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-gold);
    margin-bottom: 0.5rem;
}

.hd-post-author__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem 0;
}

.hd-post-author__bio {
    color: #9CA3AF;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.hd-post-nav {
    padding: 4rem 0;
    border-top: 1px solid #1A1A1A;
    border-bottom: 1px solid #1A1A1A;
}

.hd-post-nav__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 640px) {
    .hd-post-nav__grid {
        grid-template-columns: 1fr;
    }
}

.hd-post-nav__item {
    padding: 1.5rem;
    background: #141414;
    border-radius: 1rem;
    border: 1px solid #2A2A2A;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.hd-post-nav__item:hover {
    border-color: rgba(212, 168, 67, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.hd-post-nav__item--next {
    text-align: right;
}

.hd-post-nav__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-gold);
    margin-bottom: 0.5rem;
}

.hd-post-nav__item--next .hd-post-nav__label {
    justify-content: flex-end;
}

.hd-post-nav__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hd-post-nav__item:hover .hd-post-nav__title {
    color: var(--hd-gold);
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.hd-related-posts {
    padding: 5rem 0;
    background: #0A0A0A;
}

.hd-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .hd-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hd-related-posts__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BLOG CARD (used in related posts)
   ========================================================================== */

.hd-blog-card {
    background: #141414;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #2A2A2A;
    transition: all 0.3s ease;
}

.hd-blog-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.hd-blog-card__image-link {
    display: block;
}

.hd-blog-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1A1A1A;
}

.hd-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hd-blog-card:hover .hd-blog-card__image img {
    transform: scale(1.08);
}

.hd-blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
}

.hd-blog-card__content {
    padding: 1.5rem;
}

.hd-blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hd-gold);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.hd-blog-card__category:hover {
    text-decoration: underline;
}

.hd-blog-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.hd-blog-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hd-blog-card__title a:hover {
    color: var(--hd-gold);
}

.hd-blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #2A2A2A;
}

.hd-blog-card__date {
    font-size: 0.8125rem;
    color: #6B7280;
}

.hd-blog-card__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hd-gold);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.hd-blog-card__link:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.hd-post-comments {
    padding: 4rem 0;
    background: #0D0D0D;
}

.hd-post-comments .comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.hd-post-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-post-comments .comment {
    padding: 1.5rem;
    background: #141414;
    border-radius: 1rem;
    border: 1px solid #2A2A2A;
    margin-bottom: 1rem;
}

.hd-post-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hd-post-comments .comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--hd-gold);
}

.hd-post-comments .comment-author .fn {
    font-weight: 600;
    color: #fff;
}

.hd-post-comments .comment-metadata {
    font-size: 0.8125rem;
    color: #6B7280;
}

.hd-post-comments .comment-content {
    color: #E5E7EB;
    line-height: 1.7;
}

.hd-post-comments .reply a {
    color: var(--hd-gold);
    font-size: 0.875rem;
    text-decoration: none;
}

.hd-post-comments .reply a:hover {
    text-decoration: underline;
}

.hd-post-comments .children {
    margin-left: 2rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #2A2A2A;
    list-style: none;
}

/* Comment form */
.hd-post-comments .comment-respond {
    margin-top: 3rem;
    padding: 2rem;
    background: #141414;
    border-radius: 1rem;
    border: 1px solid #2A2A2A;
}

.hd-post-comments .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hd-post-comments .comment-form label {
    display: block;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.hd-post-comments .comment-form input[type="text"],
.hd-post-comments .comment-form input[type="email"],
.hd-post-comments .comment-form input[type="url"],
.hd-post-comments .comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #0A0A0A;
    border: 1px solid #2A2A2A;
    border-radius: 0.5rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.hd-post-comments .comment-form input:focus,
.hd-post-comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--hd-gold);
}

.hd-post-comments .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.hd-post-comments .form-submit input {
    background: var(--hd-gold);
    color: var(--hd-black);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hd-post-comments .form-submit input:hover {
    background: var(--hd-gold-light);
    transform: translateY(-2px);
}
