/* ===================================
   Post Article Styles
   =================================== */

.post-article {
    padding-top: 60px;
}

/* Post Header */
.post-header {
    background: linear-gradient(135deg, #0A0E27 0%, #1A1E3D 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FF6B35;
}

.breadcrumb span {
    color: #E8E9ED;
}

.post-header-content {
    max-width: 900px;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.post-category.tutorial {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-subtitle {
    font-size: 1.3rem;
    color: #E8E9ED;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Post Info */
.post-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #FF6B35;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info span {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.post-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-width: 1400px;
    margin: -40px auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.featured-image img {
    width: 100%;
    display: block;
}

/* Post Layout */
.post-content-wrapper {
    padding: 60px 0;
    background: #050714;
}

.post-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.post-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.toc-widget,
.share-widget,
.author-widget {
    background: #1A1E3D;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toc-widget h3,
.share-widget h3,
.author-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #FF6B35;
}

/* Table of Contents */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-list li a {
    display: block;
    padding: 10px 15px;
    color: #E8E9ED;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.toc-list li a:hover {
    background: rgba(255, 107, 53, 0.1);
    border-right-color: #FF6B35;
    padding-right: 20px;
}

.toc-list li a.active {
    background: rgba(255, 107, 53, 0.1);
    border-right-color: #FF6B35;
    color: #FF6B35;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #00669c 100%);
}

.share-btn.copy {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-widget img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #FF6B35;
}

.author-widget h3 {
    margin-bottom: 10px;
    color: white;
}

.author-widget p {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Main Content */
.post-main-content {
    max-width: 800px;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF6B35;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #F7B801;
}

.content-section h4 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #E8E9ED;
}

.content-section p {
    color: #E8E9ED;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-right: 30px;
}

.content-section li {
    color: #E8E9ED;
    margin-bottom: 12px;
    line-height: 1.7;
    padding-right: 10px;
}

.content-section ul li::marker {
    color: #FF6B35;
    font-size: 1.2rem;
}

.content-section ol li::marker {
    color: #FF6B35;
    font-weight: 700;
}

.content-section strong {
    color: #F7B801;
    font-weight: 700;
}

.content-section code {
    background: rgba(255, 107, 53, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    color: #FF6B35;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Info Boxes */
.info-box {
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-right: 4px solid;
}

.info-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
}

.info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
}

.info-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.tool-card {
    background: #1A1E3D;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: #FF6B35;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.tool-card h4 {
    color: #FF6B35;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tool-card p {
    color: #9CA3AF;
    font-size: 0.95rem;
    margin: 0;
}

/* Step Boxes */
.step-box {
    display: flex;
    gap: 20px;
    background: #1A1E3D;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}

.step-content p {
    margin-bottom: 15px;
}

.step-content ul {
    margin-top: 15px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(255,107,53,0.2) 0%, rgba(247,184,1,0.2) 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Post Tags Section */
.post-tags-section {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags-section h3 {
    margin-bottom: 20px;
    color: #9CA3AF;
}

.post-tags-section .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-tags-section .tag {
    padding: 10px 20px;
    background: #1A1E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #E8E9ED;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.post-tags-section .tag:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.related-card {
    background: #1A1E3D;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #FF6B35;
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px;
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding: 40px;
    background: #1A1E3D;
    border-radius: 16px;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: white;
}

.comments-note {
    color: #9CA3AF;
    line-height: 1.7;
}

.comments-note a {
    color: #FF6B35;
    text-decoration: underline;
}

.comments-note a:hover {
    color: #F7B801;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        order: 2;
    }
    
    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-subtitle {
        font-size: 1.1rem;
    }
    
    .post-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-image {
        margin-top: 0;
        border-radius: 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .step-box {
        flex-direction: column;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 80px 0 40px;
    }
    
    .post-header h1 {
        font-size: 1.6rem;
    }
    
    .post-subtitle {
        font-size: 1rem;
    }
    
    .post-content-wrapper {
        padding: 40px 0;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    .post-sidebar,
    .share-widget,
    .related-posts,
    .comments-section,
    .navbar,
    .footer {
        display: none !important;
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .post-header,
    .post-content-wrapper {
        background: white;
    }
    
    .post-header h1,
    .content-section h2,
    .content-section h3,
    .content-section p,
    .content-section li {
        color: black !important;
    }
}