/* ===================================
   SINGLE POST STYLES
   MAMSOFTECH Blog System
   =================================== */

:root {
    --post-max-width: 800px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Post Container */
.post-container {
    max-width: var(--post-max-width);
    margin: 120px auto 60px;
    padding: 0 20px;
}

/* Header Section */
.post-header {
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition-speed);
}

.back-link:hover {
    transform: translateX(-5px);
    opacity: 0.8;
}

.post-category {
    display: table;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Content Area */
.post-content {
    font-size: 1.125rem;
}

.post-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.post-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Specialty Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.highlight-box h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.case-study {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.case-study h4 {
    color: #10b981;
    margin-bottom: 10px;
}

.warning-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.warning-box ul {
    margin-bottom: 0;
}

.cta-box {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Lists */
.numbered-list {
    margin: 40px 0;
}

.numbered-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.numbered-item .number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.numbered-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Sharing Section */
.share-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-speed);
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Footer Article */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-container {
        margin-top: 100px;
    }

    .post-header {
        margin-bottom: 30px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .numbered-item {
        flex-direction: column;
        gap: 10px;
    }
}