/* ============================================================
   DARKZED PREMIUM THEME - WEBLOG VERSION
   ============================================================ */
:root {
    --dz-bg: #f8fafc;
    --dz-text-main: #334155;
    --dz-text-heading: #0f172a;
    --dz-text-muted: #64748b;
    --dz-primary: #3b82f6;
    --dz-primary-glow: rgba(59, 130, 246, 0.3);
    --dz-border: #e2e8f0;
    --dz-code-bg: #1e293b;
    --dz-line-height: 2.1;
    --dz-container-width: 1250px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background-color: var(--dz-bg);
    margin: 0;
    padding: 0;
    margin-top: 4rem;
    color: var(--dz-text-main);
    line-height: var(--dz-line-height);
    overflow-x: hidden;
}

* { 
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-container {
    max-width: var(--dz-container-width);
    margin: 60px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas: 
        "info image"
        "body body";
    gap: 80px;
    align-items: center;
}

.post-header-wrapper {
    grid-area: image;
    width: 100%;
    height: 450px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px var(--dz-primary-glow);
    animation: fadeInUp 0.8s ease-out;
}

.private-alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    margin-top: 2rem;
    border-radius: 12px;
    border: 1px solid #ffeeba;
    text-align: center;
    margin: 30px 0;
    font-family: 'Vazirmatn', sans-serif;
}

.post-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
}

.post-header-wrapper:hover .post-cover-img {
    transform: scale(1.05);
}

.post-title-section {
    grid-area: info;
    text-align: right;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.post-tag {
    display: inline-block;
    background-color: #dbeafe;
    color: var(--dz-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.post-title-main {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dz-text-heading);
    line-height: 1.3;
    margin: 0 0 25px 0;
    letter-spacing: -1.5px;
    background: linear-gradient(to bottom right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-intro-lead {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.9;
}
.post-author-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    background-color: #fff;
    border: 1px solid var(--dz-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.post-author-box:hover {
    border-color: var(--dz-primary);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-left: 2rem;
}

.author-name {
    font-weight: 800;
    color: var(--dz-text-heading);
}

.post-meta-details {
    color: var(--dz-text-muted);
}

.darkzed-article {
    grid-area: body;
    max-width: 850px;
    margin: 20px auto 100px auto;
    width: 100%;
    font-size: 19px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.darkzed-article p {
    margin-bottom: 2.5rem;
    text-align: justify;
}

.darkzed-article h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dz-text-heading);
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
}

.darkzed-article blockquote {
    position: relative;
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border: none;
    border-left: 5px solid var(--dz-primary);
    margin: 3.5rem 0;
    padding: 2.5rem 3rem;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--dz-text-heading);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.1);
}

.darkzed-article blockquote::after {
    content: '”';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--dz-primary);
    opacity: 0.1;
    line-height: 0;
}

.darkzed-article figure {
    margin: 4rem -50px;
    width: calc(100% + 100px);
}

.darkzed-article img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.darkzed-article figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dz-text-muted);
    margin-top: 15px;
}

.darkzed-article pre {
    background: var(--dz-code-bg);
    color: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid #334155;
    direction: ltr;
    text-align: left;
    font-family: 'Consolas', monospace;
    font-size: 15px;
    overflow-x: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.darkzed-article pre::after {
    content: 'Copy';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.darkzed-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: calc(100% + 100px);
    margin: 4rem -50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    background: #000;
}

.darkzed-video-wrapper iframe,
.darkzed-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.darkzed-audio-wrapper {
    width: 100%;
    margin: 3rem 0;
    background: #fff;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--dz-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.darkzed-article audio {
    width: 100%;
    height: 40px;
    outline: none;
}

.darkzed-article audio::-webkit-media-controls-panel {
    background-color: #fff;
}
@media screen and (max-width: 992px) {
    .main-container {
        display: block;
        padding: 0 20px;
        margin-top: 20px;
    }

    .post-header-wrapper {
        margin-bottom: 30px;
        height: 300px;
    }

    .post-title-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .post-title-main {
        font-size: 2rem;
    }

    .darkzed-article figure,
    .darkzed-video-wrapper { 
        margin: 3rem 0; 
        width: 100%; 
    }
    
    .darkzed-article blockquote {
        padding: 2rem;
        font-size: 1.2rem;
    }
}
.dz-box {
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    border-radius: 20px;
    border: 2px solid transparent;
    position: relative;
    page-break-inside: avoid;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}
.dz-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dz-box ul, .dz-box ol {
    margin: 0;
    padding-right: 1.5rem;
}
.dz-box li {
    margin-bottom: 0.8rem;
}
.box-blue {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.box-blue .dz-box-title { color: #2563eb; }
.box-blue li::marker { color: #2563eb; }
.box-green {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}
.box-green .dz-box-title { color: #16a34a; }
.box-green li::marker { color: #16a34a; }
.box-red {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}
.box-red .dz-box-title { color: #dc2626; }
.box-red li::marker { color: #dc2626; }
.box-yellow {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}
.box-yellow .dz-box-title { color: #d97706; }
.box-yellow li::marker { color: #d97706; }/
.box-purple {
    background-color: #faf5ff;
    border-color: #e9d5ff;
    color: #581c87;
}
.box-purple .dz-box-title { color: #9333ea; }
.box-purple li::marker { color: #9333ea; }