/**
 * Single Post Styles
 *
 * @package BadassNetwork
 */

/* ==========================================================================
   ARTICLE HERO
   ========================================================================== */

.article-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--color-electric), var(--color-hot));
    border-bottom: var(--border);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
}

.article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

.article-hero.has-thumbnail {
    background-size: cover;
    background-position: center;
}

.hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-size: 150px;
    opacity: 0.3;
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-4xl);
    color: white;
}

@media (max-width: 768px) {
    .article-hero-content {
        padding: var(--space-3xl) var(--space-2xl);
    }
    .article-hero {
        min-height: 450px;
    }
}

/* Breadcrumbs */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2xl);
    opacity: 0.8;
    padding: 0;
}

.hero-breadcrumb a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    opacity: 1;
}

.hero-breadcrumb-separator {
    opacity: 0.5;
}

/* Article Category */
.article-category {
    display: inline-block;
    background: var(--color-mint);
    border: var(--border);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    text-decoration: none;
}

.article-category:hover {
    text-decoration: none;
}

/* Article Title */
.article-title {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: var(--space-xl);
    max-width: 900px;
}

.article-excerpt {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-3xl);
    line-height: 1.6;
    max-width: 700px;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.article-author .author-avatar {
    width: 56px;
    height: 56px;
    background: var(--color-sun);
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: var(--text-xl);
    color: var(--color-text);
}

.article-author .author-info {
    font-size: 15px;
}

.article-author .author-name {
    font-weight: 800;
    text-transform: uppercase;
}

.article-author .author-role {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    opacity: 0.8;
}

.article-details {
    display: flex;
    gap: var(--space-xl);
    padding-left: var(--space-2xl);
    border-left: 3px solid rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .article-details {
        padding-left: 0;
        border-left: none;
        padding-top: var(--space-lg);
        border-top: 3px solid rgba(255,255,255,0.3);
        width: 100%;
    }
}

.article-detail {
    text-align: center;
}

.detail-value {
    font-weight: 800;
    font-size: var(--text-base);
}

.detail-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    opacity: 0.7;
}

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-4xl);
    padding: var(--space-4xl) 0;
    align-items: start;
}

@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ARTICLE CONTENT
   ========================================================================== */

.article-content {
    max-width: 100%;
}

.article-body {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-4xl);
}

@media (max-width: 600px) {
    .article-body {
        padding: var(--space-3xl);
    }
}

.article-body h2 {
    font-size: var(--text-3xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-top: var(--space-4xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: var(--border);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 36px;
    margin-bottom: var(--space-lg);
}

.article-body p {
    margin-bottom: var(--space-xl);
    font-size: var(--text-md);
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin-bottom: var(--space-2xl);
    padding-left: 0;
    list-style: none;
}

.article-body li {
    position: relative;
    padding-left: var(--space-3xl);
    margin-bottom: var(--space-md);
    font-size: var(--text-md);
    line-height: 1.7;
}

.article-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-electric);
    font-weight: 800;
}

.article-body ol {
    counter-reset: list-counter;
}

.article-body ol li {
    counter-increment: list-counter;
}

.article-body ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--color-sun);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
}

.article-body blockquote {
    background: var(--color-bg);
    border: var(--border);
    border-left: 6px solid var(--color-electric);
    padding: var(--space-2xl) var(--space-3xl);
    margin: var(--space-3xl) 0;
    font-size: var(--text-lg);
    font-style: italic;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body img {
    max-width: 100%;
    border: var(--border);
    box-shadow: var(--shadow);
    margin: var(--space-3xl) 0;
}

.article-body a {
    color: var(--color-electric);
    font-weight: 600;
    border-bottom: 2px solid var(--color-electric);
    text-decoration: none;
}

.article-body a:hover {
    background: var(--color-electric);
    color: white;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.share-section {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-3xl);
    margin-top: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.share-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--text-sm);
}

.share-buttons {
    display: flex;
    gap: var(--space-md);
}

.share-btn {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--color-text);
}

.share-btn:hover {
    transform: translate(2px, 2px);
}

.share-btn.twitter:hover { background: #1DA1F2; color: white; }
.share-btn.facebook:hover { background: #4267B2; color: white; }
.share-btn.linkedin:hover { background: #0077B5; color: white; }
.share-btn.copy:hover { background: var(--color-mint); }

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

.author-box {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-3xl);
    margin-top: var(--space-3xl);
    display: flex;
    gap: var(--space-2xl);
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-sun), var(--color-hot));
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: var(--text-4xl);
    color: white;
    flex-shrink: 0;
}

.author-box-content {
    flex: 1;
}

.author-box-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-soft);
    margin-bottom: var(--space-xs);
}

.author-box-name {
    font-size: var(--text-2xl);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.author-box-bio {
    color: var(--color-text-soft);
    font-size: 15px;
    margin-bottom: var(--space-lg);
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    color: var(--color-electric);
    border-bottom: 2px solid var(--color-electric);
    text-decoration: none;
}

.author-box-link:hover {
    background: var(--color-electric);
    color: white;
}

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

.related-section {
    margin-top: var(--space-4xl);
    padding-top: var(--space-4xl);
    border-top: var(--border);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.related-title {
    font-size: var(--text-2xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

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

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

.related-card {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--color-border);
}

.related-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--color-electric), var(--color-mint));
    border-bottom: var(--border);
    position: relative;
}

.related-image.alt-1 { background: linear-gradient(135deg, var(--color-hot), var(--color-sun)); }
.related-image.alt-2 { background: linear-gradient(135deg, var(--color-sun), var(--color-mint)); }

.related-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 6px,
        rgba(255,255,255,0.1) 6px,
        rgba(255,255,255,0.1) 12px
    );
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-image-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.related-content {
    padding: var(--space-xl);
}

.related-card-title {
    font-size: var(--text-base);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.related-card:hover .related-card-title {
    color: var(--color-electric);
}

.related-meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-soft);
}

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

.comments-section {
    margin-top: var(--space-4xl);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.comments-title {
    font-size: var(--text-2xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.comments-count {
    background: var(--color-sun);
    border: var(--border);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
}

/* Comment Form */
.comment-form {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.comment-form-title,
.comment-respond .comment-reply-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
}

/* Comment List */
.comments-list,
.comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: var(--color-surface);
    border: var(--border);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2xl);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.comment-avatar,
.comment .avatar {
    width: 48px;
    height: 48px;
    background: var(--color-mint);
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-base);
    border-radius: 0;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--text-sm);
}

.comment-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-soft);
}

.comment-body,
.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-soft);
}

.comment-reply {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 3px dashed var(--color-border);
}

.comment-reply-btn,
.comment-reply-link {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-electric);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.comment-reply-btn:hover,
.comment-reply-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SIDEBAR (SINGLE)
   ========================================================================== */

.article-layout .sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

@media (max-width: 1000px) {
    .article-layout .sidebar {
        display: none;
    }
}

/* Sticky Sidebar Container */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: flex-start;
}

/* Reading Progress Widget */
.progress-widget {
    background: var(--color-mint);
}

.progress-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 12px;
    background: var(--color-surface);
    border: var(--border);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-electric);
    width: 0%;
    transition: width var(--transition-slow);
}

.progress-percent {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-top: var(--space-md);
}

/* TOC Widget */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    padding: var(--space-md) 0;
    border-bottom: 2px dashed var(--color-border);
    font-size: var(--text-sm);
    font-weight: 600;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-item a {
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.toc-item a:hover {
    color: var(--color-electric);
    padding-left: var(--space-sm);
}

.toc-number {
    width: 24px;
    height: 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    flex-shrink: 0;
}

.toc-item a:hover .toc-number {
    background: var(--color-sun);
}

/* Single Post Sidebar Widgets 
   Inherits styles from blog.css widget styles */

