:root {
    --primary-color: #0f172a;
    --secondary-color: #f59e0b;
    --accent-color: #ea580c;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: iranyekan, Vazirmatn, Tahoma, Arial, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    padding: 80px 0 140px 0;
    color: var(--white);
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--white) 1px, transparent 1px);
    background-size: 20px 20px;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.post-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.post-meta-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.featured-image-section {
    position: relative;
    z-index: 10;
    margin-top: -90px;
    margin-bottom: 50px;
}

.featured-image-wrapper {
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);
    display: block;
}

.main-content-section {
    margin-bottom: 80px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.back-button:hover {
    transform: translateX(8px);
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 35px;
    align-items: start;
}

.post-content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 25px;
    transition: var(--transition);
}

.category-badge:hover {
    background: var(--accent-color);
    color: var(--white);
}

.post-body {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 2.2;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 35px 0;
    box-shadow: var(--shadow-soft);
}

.post-body h2,
.post-body h3 {
    color: var(--primary-color);
    margin: 45px 0 20px;
    font-weight: 900;
}

.tags-section,
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
}

.section-title i {
    color: var(--secondary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-link {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.related-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.related-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.related-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-item:hover .related-item-image {
    transform: scale(1.08);
}

.related-item-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.related-item-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.6;
    transition: color 0.3s;
}

.related-item:hover .related-item-title {
    color: var(--accent-color);
}

.related-item-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.sidebar {
    position: relative;
    height: 100%;
}

.sticky-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-title i {
    color: var(--secondary-color);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.stat-label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stat-number {
    font-weight: 800;
    color: var(--primary-color);
}

.badge-number {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 8px;
}

.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

.share-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.share-telegram {
    background: #0088cc;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0077b5;
}

@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
    }

    .post-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 60px 0 100px 0;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-content-card {
        padding: 25px 20px;
    }

    .featured-image-wrapper {
        padding: 6px;
    }

    .share-grid {
        grid-template-columns: 1fr;
    }
}