/* Forbes-inspired styling for blog card inner content */

/* Typography and Layout */
.card-back-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    background: white;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 2rem;
}

.article-category {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #d93025;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
}

.article-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-role {
    font-size: 0.813rem;
    color: #666;
}

.article-date {
    color: #666;
    padding-left: 1rem;
    border-left: 1px solid #e5e5e5;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin: 0 0 1.5rem 0;
    text-align: justify;
    hyphens: auto;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
    color: #222;
}

/* Drop Cap for first letter */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    margin: 0.05em 0.1em -0.1em 0;
    font-weight: 700;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Ensure proper spacing after drop cap */
.article-content > p:first-of-type::after {
    content: "";
    display: table;
    clear: both;
}

/* Headings within article */
.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Blockquotes */
.article-content blockquote {
    margin: 2rem 0;
    padding: 0 0 0 2rem;
    border-left: 4px solid #d93025;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
}

/* Links */
.article-content a {
    color: #d93025;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: #d93025;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Code blocks */
.article-content pre {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content code {
    background: #f5f5f5;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.article-tag {
    padding: 0.375rem 0.75rem;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.813rem;
    transition: all 0.2s;
}

.article-tag:hover {
    background: #e5e5e5;
    color: #333;
}

/* Share buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.article-share-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.share-button:hover {
    background: #e5e5e5;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-back-content {
        padding: 2rem 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content p:first-of-type {
        font-size: 1.125rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-date {
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
    }
}

/* Fullscreen-specific adjustments */
.blog-card.fullscreen .card-back-content {
    padding: 4rem 3rem;
}

@media (max-width: 768px) {
    .blog-card.fullscreen .card-back-content {
        padding: 2rem 1.5rem;
    }
}

/* Close button styling */
.blog-card.fullscreen .card-back-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-bottom: 1px solid #e5e5e5;
    backdrop-filter: blur(10px);
}

.blog-card.fullscreen .close-fullscreen {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #999;
    transition: all 0.2s;
}

.blog-card.fullscreen .close-fullscreen:hover {
    color: #333;
    background: #f5f5f5;
}

/* Hide regular card styling when in article view */
.blog-card.fullscreen .card-back-content .post-header,
.blog-card.fullscreen .card-back-content .post-meta,
.blog-card.fullscreen .card-back-content .post-tags,
.blog-card.fullscreen .card-back-content .post-content {
    /* Override any conflicting styles from the old format */
    all: unset;
}