/*
 * Professional Article Display CSS
 * MediCare Pro v3.0 - Medical Theme
 */

/* ========================================
   SINGLE POST LAYOUT
======================================== */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-secondary);
    position: relative;
}

.single-post .entry-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.single-post .entry-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-text);
    font-weight: 700;
}

/* ========================================
   POST META - MEDICAL STYLE
======================================== */
.entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.entry-meta>span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-secondary);
    border-radius: 25px;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.entry-meta>span:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 169, 155, 0.3);
}

.entry-meta i {
    color: var(--color-primary);
    font-size: 16px;
}

.entry-meta>span:hover i {
    color: white;
}

/* Reading Time Badge */
.reading-time {
    background: var(--gradient-accent) !important;
    color: white !important;
}

.reading-time i {
    color: white !important;
}

/* ========================================
   FEATURED IMAGE - MEDICAL FRAME
======================================== */
.post-thumbnail {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid white;
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

.post-thumbnail::after {
    content: '\f0f8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(127, 169, 155, 0.4);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* ========================================
   ARTICLE CONTENT - MEDICAL TYPOGRAPHY
======================================== */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content>* {
    margin-bottom: 25px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before,
.entry-content h3::before,
.entry-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.entry-content h2 {
    font-size: 32px;
    color: var(--color-primary);
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content h4 {
    font-size: 22px;
}

/* ========================================
   MEDICAL BLOCKQUOTE
======================================== */
.entry-content blockquote {
    margin: 30px 0;
    padding: 25px 30px 25px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    position: relative;
    font-style: italic;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.entry-content blockquote::before {
    content: '\f0f8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--color-primary);
    opacity: 0.2;
}

/* ========================================
   MEDICAL LISTS
======================================== */
.entry-content ul,
.entry-content ol {
    padding-left: 0;
    list-style: none;
}

.entry-content ul li,
.entry-content ol li {
    padding-left: 35px;
    margin-bottom: 12px;
    position: relative;
}

.entry-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.entry-content ol {
    counter-reset: medical-counter;
}

.entry-content ol li::before {
    counter-increment: medical-counter;
    content: counter(medical-counter);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   MEDICAL INFO BOXES
======================================== */
.medical-note,
.medical-warning,
.medical-tip {
    padding: 20px 25px 20px 70px;
    margin: 30px 0;
    border-radius: 12px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.medical-note::before,
.medical-warning::before,
.medical-tip::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.medical-note {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

.medical-note::before {
    content: '\f05a';
    background: #2196F3;
    color: white;
}

.medical-warning {
    background: #fff3e0;
    border-left: 4px solid #FF9800;
    color: #E65100;
}

.medical-warning::before {
    content: '\f071';
    background: #FF9800;
    color: white;
}

.medical-tip {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.medical-tip::before {
    content: '\f0eb';
    background: #4CAF50;
    color: white;
}

/* ========================================
   TAGS & CATEGORIES
======================================== */
.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--color-secondary);
}

.tags-links,
.cat-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tags-links i,
.cat-links i {
    color: var(--color-primary);
    font-size: 18px;
}

.tags-links a,
.cat-links a {
    padding: 8px 18px;
    background: var(--color-secondary);
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-links a:hover,
.cat-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 169, 155, 0.3);
}

/* ========================================
   AUTHOR BIO - MEDICAL CARD
======================================== */
.author-bio {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 50px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--color-secondary);
    position: relative;
}

.author-bio::before {
    content: '\f0f0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: var(--color-primary);
    opacity: 0.1;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--color-primary);
}

.author-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.author-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 169, 155, 0.4);
}

/* ========================================
   RESPONSIVE
======================================== */
@media screen and (max-width: 768px) {
    .single-post .entry-title {
        font-size: 28px;
    }

    .entry-content {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 24px;
    }

    .entry-content h3 {
        font-size: 20px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }
}