/**
 * Critical CSS - Essential styles for immediate rendering
 * الأنماط الأساسية للعرض الفوري
 */

/* Basic layout styles */
.single-post {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    padding: 20px 0;
}

/* Article header */
.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.title-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    margin: 10px 0;
}

/* Article meta */
.article-meta {
    margin-bottom: 25px;
}

.meta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.meta-author,
.meta-date,
.meta-updated {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: #7f8c8d;
}

.meta-label {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

.meta-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Featured image */
.featured-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.featured-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Category overlay */
.category-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(52, 152, 219, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.category-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Alt text overlay */
.alt-text-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    max-width: 200px;
}

/* Entry content */
.entry-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: #2c3e50;
}

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

/* Breadcrumb */
.breadcrumb-container {
    margin-bottom: 20px;
}

.breadcrumb-nav {
    font-size: 0.9em;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-link {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #3498db;
}

.breadcrumb-text.current-text {
    color: #2c3e50;
    font-weight: 600;
}

/* Share buttons */
.share-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.share-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

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

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Google News button */
.google-news-section {
    margin: 25px 0;
    text-align: center;
}

.google-news-btn-post {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.google-news-btn-post:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8em;
    }
    
    .meta-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

