/* SEO Optimized CSS for LahbabiGuide Gaming Platform */

/* فئة الأساس للسيو */
.seo-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* تحسين SEO للعناوين */
.seo-heading {
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: #1a1a1a;
}

.seo-heading.h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.seo-heading.h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.3;
}

.seo-heading.h3 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    line-height: 1.4;
}

/* تحسين الصور للسيو */
.seo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.seo-image:hover {
    transform: scale(1.02);
}

/* تحسين الروابط للسيو */
.seo-link {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.seo-link:hover {
    color: #004499;
    border-bottom-color: currentColor;
}

/* مناطق الإعلانات المحسنة */
.ad-container {
    position: relative;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* مناطق إعلانات مختلفة الأحجام */
.ad-banner {
    min-height: 90px;
    max-height: 120px;
}

.ad-rectangle {
    min-height: 250px;
    max-height: 300px;
}

.ad-square {
    min-height: 250px;
    min-width: 250px;
    max-width: 300px;
    max-height: 300px;
}

.ad-leaderboard {
    min-height: 90px;
    max-height: 120px;
    width: 100%;
}

.ad-mobile-banner {
    min-height: 50px;
    max-height: 80px;
    width: 100%;
}

/* إعلانات جانبية */
.ad-sidebar {
    position: sticky;
    top: 20px;
    max-width: 300px;
    margin: 1rem 0;
}

/* إعلانات في المحتوى */
.ad-in-content {
    margin: 2rem auto;
    text-align: center;
    max-width: 800px;
}

/* تحسين أداء الإعلانات */
.ad-container ins[data-ad-status="filled"] {
    display: block !important;
}

.ad-container ins[data-ad-status="unfilled"] {
    display: none !important;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem 0;
        min-height: 200px;
    }

    .ad-sidebar {
        position: static;
        max-width: 100%;
        margin: 1rem 0;
    }
}

/* تحسين JSON-LD */
.json-ld-structured-data {
    display: none;
}

/* تحسين للطباعة */
@media print {

    .ad-container,
    .ad-sidebar,
    .ad-in-content {
        display: none !important;
    }
}

/* تحسين الخط العربي */
.rtl-support {
    direction: rtl;
    text-align: right;
}

.rtl-support .seo-link {
    text-decoration-line: underline;
    text-decoration-style: solid;
}

/* تحسين الأداء للإعلانات */
.lazy-ad {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-ad.loaded {
    opacity: 1;
}

/* فئات تحسين Core Web Vitals */
.optimize-lcp {
    font-display: swap;
    contain: layout style paint;
}

.optimize-fid {
    will-change: transform;
    transform: translateZ(0);
}

.optimize-cls {
    aspect-ratio: 16/9;
    background-color: #f8f9fa;
}

/* ألوان محسنة للسيو */
.primary-color {
    color: #007bff;
}

.secondary-color {
    color: #6c757d;
}

.success-color {
    color: #28a745;
}

.warning-color {
    color: #ffc107;
}

.danger-color {
    color: #dc3545;
}

/* تحسين التباين */
.high-contrast {
    background: #000;
    color: #fff;
}

.high-contrast .seo-link {
    color: #ffff00;
}

/* تحسينات إضافية للأداء */
.performance-optimized {
    contain: layout;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* فئة إخفاء المحتوى للسيو */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}