/* ========================================
   POST STYLES - Blog Articles
   ======================================== */

body {
    background: #0f172a;
    color: #cbd5e1;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Post Header */
.post-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border-bottom: 1px solid #334155;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-meta time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.post-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

/* Post Content */
.post-content {
    padding: 60px 0;
    background: #0f172a;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.post-content a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #93c5fd;
}

.post-content code {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: #fbbf24;
}

.post-content pre {
    margin: 2rem 0;
}

.code-block {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

/* Info Boxes */
.tldr-box,
.info-box,
.warning-box,
.lessons-box,
.cta-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.tldr-box {
    background: #1e3a5f;
    border-left: 4px solid #60a5fa;
}

.tldr-box h3 {
    color: #93c5fd;
    margin-top: 0;
}

.tldr-box p,
.tldr-box ul,
.tldr-box li {
    color: #cbd5e1;
}

.info-box {
    background: #1a3a2e;
    border-left: 4px solid #34d399;
}

.info-box strong {
    color: #6ee7b7;
}

.info-box p {
    color: #cbd5e1;
}

.warning-box {
    background: #3a2a1a;
    border-left: 4px solid #fb923c;
}

.warning-box h4 {
    color: #fdba74;
    margin-top: 0;
}

.warning-box p,
.warning-box ul,
.warning-box li {
    color: #cbd5e1;
}

.lessons-box {
    background: #2a1a3a;
    border-left: 4px solid #a78bfa;
}

.lessons-box h3 {
    color: #c4b5fd;
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.lessons-box h3:first-child {
    margin-top: 0;
}

.lessons-box p,
.lessons-box ul,
.lessons-box li {
    color: #cbd5e1;
}

.cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.cta-box:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    transform: translateY(-2px);
}

.cta-box h3 {
    color: #e2e8f0;
    margin-top: 0;
}

.cta-box p {
    color: #cbd5e1;
}

.btn-cta {
    display: inline-block;
    background: #25D366 !important;
    color: white !important;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    background: #20BA5A !important;
    color: white !important;
    text-decoration: none !important;
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: #1e293b;
}

.results-table thead {
    background: #334155;
    color: white;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.results-table tbody tr:hover {
    background: #0f172a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 2rem -1.5rem;
        width: calc(100% + 3rem);
        border-radius: 0;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.75rem 0.5rem;
        min-width: 100px;
    }

    .results-table th:first-child,
    .results-table td:first-child {
        position: sticky;
        left: 0;
        background: #334155;
        z-index: 1;
    }

    .results-table tbody td:first-child {
        background: #1e293b;
        font-weight: 600;
    }
}

.status-ok {
    color: #34d399;
    font-weight: 600;
}

/* File List */
.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    background: #1e293b;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #60a5fa;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.badge-new {
    background: #48bb78;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.badge-updated {
    background: #ed8936;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Code Tabs */
.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: -1px;
}

.tab {
    background: #2d3748;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 6px 6px 0 0;
    font-size: 0.875rem;
    font-family: 'Fira Code', monospace;
}

.tab.active {
    background: #1a202c;
}

/* Post Footer */
.post-footer {
    padding: 40px 0;
    background: #1e293b;
    border-top: 1px solid #334155;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn-back {
    background: #334155;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #475569;
    transform: translateX(-4px);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons span {
    color: #94a3b8;
    font-weight: 500;
}

.share-buttons a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.share-buttons a:hover {
    color: #93c5fd;
}

/* Post Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.75rem;
    align-items: center;
}

.post-tags h4 {
    margin-bottom: 0;
    margin-right: 0.5rem;
    color: #cbd5e1;
    width: 100%;
}

.post-tags .tag {
    background: #334155;
    color: #e2e8f0;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

/* Hamburger Animation */
.hamburger {
    position: relative;
}

.hamburger span {
    transition: all 0.3s linear;
    position: relative;
}

.hamburger.active span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .post-subtitle {
        font-size: 1rem;
    }

    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .post-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
    }

    .post-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .code-block {
        font-size: 0.75rem;
    }
}

.status-error {
    color: #ef4444;
    font-weight: 600;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
