/* =========================================
   Post Individual Styles - Dr. Túlio Zago de Brito
   ========================================= */

/* Post Hero Section */
.post-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #00197B 0%, #0A35DE 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.post-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 25, 123, 0.7) 0%,
        rgba(18, 14, 14, 0.95) 100%
    );
    z-index: 2;
}

.post-hero__content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    background: rgba(195, 161, 118, 0.1);
    border: 1px solid rgba(195, 161, 118, 0.3);
    transition: all 0.3s ease;
}

.post-hero__back:hover {
    background: rgba(195, 161, 118, 0.2);
    border-color: var(--color-accent);
    transform: translateX(-5px);
}

.post-hero__date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    background: rgba(195, 161, 118, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(195, 161, 118, 0.3);
}

.post-hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.post-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-hero__author {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Post Content */
.post-content {
    padding: 5rem 0 6rem;
    background: var(--color-black);
}

.post-content__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-content__body {
    background: linear-gradient(145deg, #1A1A1A 0%, #141414 100%);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(195, 161, 118, 0.1);
    line-height: 1.8;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Typography inside content */
.post-content__body h1,
.post-content__body h2,
.post-content__body h3,
.post-content__body h4,
.post-content__body h5,
.post-content__body h6 {
    color: var(--color-white);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.post-content__body h1 {
    font-size: 2.25rem;
    color: var(--color-accent);
    border-bottom: 2px solid rgba(195, 161, 118, 0.2);
    padding-bottom: 0.75rem;
}

.post-content__body h2 {
    font-size: 1.875rem;
    color: var(--color-accent);
}

.post-content__body h3 {
    font-size: 1.5rem;
}

.post-content__body h4 {
    font-size: 1.25rem;
}

.post-content__body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content__body p:first-child {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.7;
}

.post-content__body strong,
.post-content__body b {
    color: var(--color-accent);
    font-weight: 600;
}

.post-content__body em,
.post-content__body i {
    color: rgba(255, 255, 255, 0.9);
}

.post-content__body a {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content__body a:hover {
    color: var(--color-accent);
}

.post-content__body ul,
.post-content__body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.post-content__body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.post-content__body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: rgba(10, 53, 222, 0.1);
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-content__body blockquote p:last-child {
    margin-bottom: 0;
}

.post-content__body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.post-content__body figure {
    margin: 2.5rem 0;
}

.post-content__body figcaption {
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-style: italic;
}

.post-content__body pre {
    background: #0A0A0A;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(195, 161, 118, 0.2);
}

.post-content__body code {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--color-accent);
}

.post-content__body pre code {
    color: rgba(255, 255, 255, 0.9);
}

.post-content__body hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(195, 161, 118, 0.3), transparent);
    margin: 3rem 0;
}

.post-content__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-content__body th,
.post-content__body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(195, 161, 118, 0.1);
}

.post-content__body th {
    background: rgba(10, 53, 222, 0.2);
    color: var(--color-accent);
    font-weight: 600;
}

.post-content__body tr:hover {
    background: rgba(195, 161, 118, 0.05);
}

/* Share Section */
.post-share {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.6), rgba(20, 20, 20, 0.8));
    border-radius: 16px;
    border: 1px solid rgba(195, 161, 118, 0.1);
}

.post-share__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-share__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.post-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 2px solid;
}

.post-share__btn--whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.post-share__btn--whatsapp:hover {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.post-share__btn--facebook {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
}

.post-share__btn--facebook:hover {
    background: #1877F2;
    color: var(--color-white);
    border-color: #1877F2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.post-share__btn--linkedin {
    color: #0A66C2;
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.3);
}

.post-share__btn--linkedin:hover {
    background: #0A66C2;
    color: var(--color-white);
    border-color: #0A66C2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

/* Back to Blog Button */
.post-back {
    margin-top: 4rem;
    text-align: center;
}

.post-back .btn {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* =========================================
   Responsive Design
   ========================================= */

/* Tablet */
@media (max-width: 768px) {
    .post-hero {
        padding: 100px 0 40px;
        min-height: 50vh;
    }

    .post-hero__title {
        font-size: 2.25rem;
    }

    .post-content {
        padding: 3rem 0 4rem;
    }

    .post-content__body {
        padding: 2.5rem 2rem;
        font-size: 1.0625rem;
    }

    .post-content__body h1 {
        font-size: 1.875rem;
    }

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

    .post-content__body h3 {
        font-size: 1.25rem;
    }

    .post-share {
        padding: 2rem 1.5rem;
    }

    .post-share__buttons {
        flex-direction: column;
    }

    .post-share__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .post-hero {
        padding: 90px 0 30px;
        min-height: 40vh;
    }

    .post-hero__title {
        font-size: 1.75rem;
    }

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

    .post-content {
        padding: 2rem 0 3rem;
    }

    .post-content__body {
        padding: 2rem 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .post-content__body p:first-child {
        font-size: 1.125rem;
    }

    .post-content__body h1 {
        font-size: 1.625rem;
    }

    .post-content__body h2 {
        font-size: 1.375rem;
    }

    .post-content__body h3 {
        font-size: 1.125rem;
    }

    .post-content__body ul,
    .post-content__body ol {
        margin-left: 1.5rem;
    }

    .post-content__body blockquote {
        padding: 1rem 1.5rem;
        margin: 2rem 0;
    }

    .post-share {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }

    .post-share__title {
        font-size: 1.25rem;
    }

    .post-share__btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .post-back {
        margin-top: 3rem;
    }

    .post-back .btn {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .post-hero__back,
    .post-share,
    .post-back,
    .whatsapp-float,
    .footer {
        display: none;
    }

    .post-hero {
        min-height: auto;
        padding: 2rem 0;
        background: none;
        color: #000;
    }

    .post-hero__image,
    .post-hero__overlay {
        display: none;
    }

    .post-content__body {
        box-shadow: none;
        border: 1px solid #ddd;
        background: #fff;
        color: #000;
    }

    .post-content__body * {
        color: #000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .post-hero__content {
        animation: none;
    }

    .post-share__btn:hover,
    .post-hero__back:hover {
        transform: none;
    }
}
