/* ==========================================================================
   ARCADE TECH — SINGLE POST & GAMING MAGAZINE MODULAR STYLESHEET
   Module: 06-single-post.css
   Single Source of Truth for Blog Post Template & Editorial Pages
   ========================================================================== */

/* 1. Wrapper & Layout Grid */
.arc-single-post-wrapper {
    position: relative;
    padding: 30px 0 60px 0;
    color: var(--arc-text, #cbd5e1);
    font-family: var(--arc-font-primary, 'Yekan Bakh', 'Vazirmatn', sans-serif);
    direction: rtl;
}

.arc-post-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.arc-post-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
    margin-top: 36px;
}

@media (max-width: 1024px) {
    .arc-post-layout-grid {
        grid-template-columns: 100%;
        gap: 40px;
    }
}

/* 2. Breadcrumbs */
.arc-post-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.arc-bc-item {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arc-bc-item:hover {
    color: var(--arc-lime, #d4ff00);
}

.arc-bc-sep {
    color: #475569;
}

.arc-bc-cat {
    color: var(--arc-cyan, #00f0ff);
    font-weight: 600;
}

/* 3. Rich Header Section */
.arc-post-header {
    margin-bottom: 28px;
}

.arc-post-badge-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.arc-post-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(91, 49, 245, 0.25) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.arc-badge-dot {
    width: 4px;
    height: 4px;
    background: #64748b;
    border-radius: 50%;
}

.arc-badge-time {
    font-size: 13px;
    color: #94a3b8;
}

.arc-post-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.45;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .arc-post-title {
        font-size: 24px;
        line-height: 1.4;
    }
}

.arc-post-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 20px;
    background: rgba(22, 18, 46, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.arc-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-author-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--arc-lime, #d4ff00);
}

.arc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.arc-author-info {
    display: flex;
    flex-direction: column;
}

.arc-author-label {
    font-size: 11px;
    color: #94a3b8;
}

.arc-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.arc-meta-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.arc-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cbd5e1;
}

.arc-meta-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arc-meta-link:hover {
    color: var(--arc-cyan, #00f0ff);
}

/* 4. Hero Featured Media */
.arc-post-hero-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    background: #110d24;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(91, 49, 245, 0.15);
}

.arc-hero-img-wrap {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.arc-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 5. Main Article Body & Typography */
.arc-post-main-content {
    min-width: 0;
}

.arc-post-body {
    font-size: 16px;
    line-height: 2.0;
    color: #cbd5e1;
}

.arc-post-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 44px 0 20px 0;
    padding-right: 14px;
    border-right: 4px solid var(--arc-lime, #d4ff00);
    line-height: 1.5;
    text-shadow: 0 0 15px rgba(212, 255, 0, 0.2);
}

.arc-post-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 34px 0 16px 0;
    padding-right: 10px;
    border-right: 3px solid var(--arc-cyan, #00f0ff);
    line-height: 1.5;
}

.arc-post-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 26px 0 12px 0;
}

.arc-post-body p {
    margin: 0 0 22px 0;
}

.arc-post-body ul, 
.arc-post-body ol {
    margin: 0 0 24px 0;
    padding-right: 28px;
}

.arc-post-body li {
    margin-bottom: 10px;
    position: relative;
}

.arc-post-body blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    background: rgba(22, 18, 46, 0.7);
    border-right: 4px solid var(--arc-purple, #a855f7);
    border-radius: 12px;
    color: #e2e8f0;
    font-style: italic;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Cyber Callout Box */
.arc-callout-box {
    margin: 32px 0;
    padding: 22px 24px;
    background: linear-gradient(145deg, rgba(22, 18, 46, 0.85) 0%, rgba(17, 13, 36, 0.9) 100%);
    border: 1px solid rgba(212, 255, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 255, 0, 0.05);
    position: relative;
}

.arc-callout-box strong {
    color: var(--arc-lime, #d4ff00);
    display: inline-block;
    margin-bottom: 6px;
    font-size: 17px;
}

/* Specs & Benchmark Table */
.arc-specs-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(22, 18, 46, 0.65);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.arc-specs-table th {
    background: linear-gradient(135deg, rgba(91, 49, 245, 0.4) 0%, rgba(168, 85, 247, 0.25) 100%);
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 14px;
    text-align: right;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.arc-specs-table td {
    padding: 13px 18px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.arc-specs-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.arc-specs-table tr:hover td {
    background: rgba(212, 255, 0, 0.05);
}

.arc-specs-table tr:last-child td {
    border-bottom: none;
}

/* 6. Tags Section */
.arc-post-tags-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 36px 0 28px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-tags-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.arc-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.arc-tag-pill {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.arc-tag-pill:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* 7. Author Box */
.arc-author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 36px 0;
    padding: 24px;
    background: linear-gradient(145deg, #181434 0%, #110d24 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.arc-author-box-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--arc-lime, #d4ff00);
    box-shadow: 0 0 15px rgba(212, 255, 0, 0.2);
}

.arc-author-lg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arc-author-box-subtitle {
    font-size: 11px;
    color: var(--arc-cyan, #00f0ff);
    font-weight: 700;
    text-transform: uppercase;
}

.arc-author-box-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 8px 0;
}

.arc-author-box-bio {
    font-size: 13px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
}

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

/* 8. Sticky Sidebar Widgets */
.arc-post-sidebar {
    min-width: 0;
}

.arc-sidebar-sticky-wrapper {
    position: sticky;
    top: 115px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.arc-cyber-card {
    background: rgba(22, 18, 46, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.arc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

/* TOC Widget */
.arc-toc-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arc-toc-li {
    margin: 0;
}

.arc-toc-h3 {
    padding-right: 14px;
}

.arc-toc-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 4px 8px;
}

.arc-toc-link:hover {
    color: var(--arc-lime, #d4ff00);
    background: rgba(212, 255, 0, 0.06);
    padding-right: 12px;
}

/* Share Widget */
.arc-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.arc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.arc-share-telegram:hover {
    background: #0088cc;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.arc-share-whatsapp:hover {
    background: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.arc-share-twitter:hover {
    background: #1da1f2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.4);
}

.arc-share-copy {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.arc-share-copy:hover {
    background: var(--arc-purple, #a855f7);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Recommended Product Widget */
.arc-promo-product-widget {
    position: relative;
    border-color: rgba(212, 255, 0, 0.35);
    background: linear-gradient(160deg, #1b163a 0%, #110d24 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 255, 0, 0.1);
}

.arc-promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #d4ff00 0%, #a3e635 100%);
    color: #0b0819;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.arc-promo-thumb {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 12px 0;
}

.arc-promo-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.arc-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.arc-promo-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--arc-lime, #d4ff00);
    margin-bottom: 16px;
}

.arc-promo-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d4ff00 0%, #b2e600 100%);
    color: #0b0819;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 255, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arc-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 255, 0, 0.45);
}

/* Community Widget */
.arc-community-widget {
    text-align: center;
}

.arc-community-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.arc-community-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.arc-community-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.arc-mini-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arc-mini-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
}

.arc-mini-btn {
    padding: 10px;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arc-mini-btn:hover {
    background: var(--arc-purple, #a855f7);
}

/* 9. Related Articles Section */
.arc-related-posts-section {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.arc-heading-glow-bar {
    width: 6px;
    height: 24px;
    background: var(--arc-lime, #d4ff00);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--arc-lime, #d4ff00);
}

.arc-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.arc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.arc-related-card {
    background: rgba(22, 18, 46, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.arc-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 255, 0, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 255, 0, 0.1);
}

.arc-related-thumb-link {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    background: #110d24;
}

.arc-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.arc-related-card:hover .arc-related-img {
    transform: scale(1.05);
}

.arc-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.arc-related-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 8, 25, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.arc-related-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.arc-related-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.arc-related-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.arc-related-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arc-related-title a:hover {
    color: var(--arc-lime, #d4ff00);
}

.arc-related-excerpt {
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

/* 10. Cyber Comments Area Styling */
.arc-comments-area {
    margin-top: 48px;
    padding: 32px 28px;
    background: rgba(22, 18, 46, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.arc-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-comments-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arc-comments-count-badge {
    background: var(--arc-lime, #d4ff00);
    color: #0b0819;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.arc-comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.arc-comment-list .comment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 20px;
}

.arc-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.arc-comment-list .avatar {
    border-radius: 50%;
    border: 2px solid var(--arc-cyan, #00f0ff);
}

.arc-comment-list .fn {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-style: normal;
}

.arc-comment-list .comment-metadata a {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}

.arc-comment-list .comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
}

.arc-form-group {
    margin-bottom: 18px;
}

.arc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.arc-form-group input[type="text"],
.arc-form-group input[type="email"],
.arc-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: rgba(11, 8, 25, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arc-form-group input:focus,
.arc-form-group textarea:focus {
    outline: none;
    border-color: var(--arc-lime, #d4ff00);
    box-shadow: 0 0 15px rgba(212, 255, 0, 0.2);
}

.arc-submit-btn,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d4ff00 0%, #b2e600 100%);
    color: #0b0819;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 255, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arc-submit-btn:hover,
.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 255, 0, 0.5);
}
