/**
 * Single Post & Buttons Fix CSS
 * تحسين صفحة المقال والأزرار
 * 
 * @package jory-news-theme
 */

/* =============================================
   صفحة المقال الواحد - تحسين حجم الخط
   ============================================= */

/* محتوى المقال */
.entry-content {
    font-size: 19px !important;
    line-height: 1.9 !important;
    color: #1e293b;
}

.entry-content p {
    font-size: 19px !important;
    line-height: 1.9 !important;
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.75rem !important;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    color: #0f172a;
}

.entry-content h3 {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin: 1.25em 0 0.6em;
    color: #1e293b;
}

.entry-content h4 {
    font-size: 1.25rem !important;
    font-weight: 600;
    margin: 1em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
    font-size: 18px;
    line-height: 1.8;
    margin: 1.25em 0;
    padding-right: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    font-size: 20px !important;
    font-style: italic;
    padding: 25px 30px;
    margin: 1.5em 0;
    border-right: 5px solid #3b82f6;
    background: #f8fafc;
    border-radius: 8px;
}

.entry-content a {
    color: #2563eb;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #1d4ed8;
}

/* عنوان المقال */
.entry-title {
    font-size: 2.2rem !important;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 20px;
}

/* =============================================
   الموبايل - صفحة المقال
   ============================================= */
@media (max-width: 768px) {
    .entry-content {
        font-size: 17px !important;
        line-height: 1.85 !important;
    }

    .entry-content p {
        font-size: 17px !important;
        line-height: 1.85 !important;
    }

    .entry-content h2 {
        font-size: 1.4rem !important;
    }

    .entry-content h3 {
        font-size: 1.25rem !important;
    }

    .entry-content blockquote {
        font-size: 17px !important;
        padding: 20px;
    }

    .entry-title {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    .entry-content {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    .entry-content p {
        font-size: 16px !important;
    }

    .entry-title {
        font-size: 1.4rem !important;
    }
}

/* =============================================
   إصلاح زر العودة للأعلى
   ============================================= */
#back-to-top-btn,
.back-top-btn,
.back-to-top-btn,
#back-to-top {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

#back-to-top-btn.show,
.back-top-btn.show,
.back-to-top-btn.visible,
#back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#back-to-top-btn:hover,
.back-top-btn:hover,
.back-to-top-btn:hover,
#back-to-top:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5) !important;
}

#back-to-top-btn svg,
.back-top-btn svg,
.back-to-top-btn svg,
#back-to-top svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor;
}

@media (max-width: 768px) {

    #back-to-top-btn,
    .back-top-btn,
    .back-to-top-btn,
    #back-to-top {
        left: 15px !important;
        bottom: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* =============================================
   إصلاح أزرار الهيدر
   ============================================= */
.header-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.header-action-btn:hover,
.header-action-btn:focus {
    background: #1a365d !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

.header-action-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor;
    pointer-events: none;
}

/* زر البحث */
#search-toggle {
    background: #f1f5f9 !important;
}

#search-toggle:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* زر الوضع الليلي */
#dark-mode-toggle {
    background: #f1f5f9 !important;
}

#dark-mode-toggle:hover {
    background: #8b5cf6 !important;
    color: #fff !important;
}

/* زر الهامبورجر */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px !important;
        background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%) !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 22px;
    }

    .hamburger-icon span {
        display: block;
        height: 3px;
        background: #fff !important;
        border-radius: 3px;
        transition: all 0.3s;
    }
}

/* =============================================
   زر CTA في الهيدر
   ============================================= */
.header-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.header-cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.4) !important;
    color: #fff !important;
}

.header-cta-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .header-cta-btn {
        display: none !important;
    }
}

/* =============================================
   تحسين dropdown البحث
   ============================================= */
.header-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.header-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-premium {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.search-input-premium {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.search-submit-premium {
    padding: 15px 25px;
    background: #1a365d;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit-premium:hover {
    background: #2d5a8e;
}

.search-submit-premium svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =============================================
   Fix للأزرار العامة
   ============================================= */
button,
.btn,
input[type="submit"],
input[type="button"] {
    cursor: pointer !important;
}

/* تأكد من أن جميع الأزرار قابلة للنقر */
button:not(:disabled),
.btn:not(:disabled),
[role="button"]:not(:disabled) {
    pointer-events: auto !important;
}