/* ===================================================
   Arab Hub Forum - الأنماط المخصصة
   =================================================== */

/* ---- الإعدادات العامة ---- */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.93rem;
    color: #333;
    background-color: #f4f6f9 !important;
}

/* ---- شريط التنقل ---- */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.navbar-brand {
    font-size: 1.4rem !important;
    letter-spacing: -0.5px;
}

/* ---- البطاقات ---- */
.card {
    border: none;
    border-radius: 10px;
    transition: box-shadow 0.2s;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* ---- المحتوى ---- */
.post-content {
    line-height: 1.8;
    word-break: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.post-content blockquote {
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 10px 0;
    font-size: 0.9em;
}

.post-content pre {
    background: #1e1e1e;
    color: #f8f8f2;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.post-content code {
    background: #f0f0f0;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
}

/* ---- الأزرار ---- */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.78rem;
    border-radius: 5px;
}

/* ---- الترقيم ---- */
.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
}

/* ---- الشارات ---- */
.badge {
    font-weight: 500;
    border-radius: 5px;
}

/* ---- بطاقات الإحصائيات ---- */
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12) !important;
    text-decoration: none;
}

/* ---- مؤشر الاتصال ---- */
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ---- نموذج البحث ---- */
.search-input {
    border-radius: 20px 0 0 20px;
}

.search-btn {
    border-radius: 0 20px 20px 0;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85em;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "‹";
    color: #aaa;
}

/* ---- أزرار الإعجاب ---- */
.like-btn {
    transition: all 0.2s;
}

.like-btn:hover {
    transform: scale(1.05);
}

/* ---- الصورة الرمزية ---- */
.avatar-ring {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ---- قائمة الأقسام ---- */
.forum-row:hover {
    background-color: #f8f9ff !important;
}

/* ---- تأثيرات التحويم ---- */
.list-group-item-action:hover {
    background-color: #f8f9ff;
    transition: background 0.15s;
}

/* ---- شريط التمرير المخصص ---- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ---- التصميم للشاشات الصغيرة ---- */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.1rem !important; }
    .card-body { padding: 0.75rem; }
    .post-content { font-size: 0.9rem; }
    .btn { font-size: 0.85rem; }
}

/* ---- لوحة التحكم ---- */
.admin-sidebar .nav-link {
    border-radius: 8px;
    margin-bottom: 2px;
    color: #555;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #e8f0fe;
    color: #1967d2;
}

/* ---- التنبيهات ---- */
.alert {
    border-radius: 10px;
    border: none;
}

/* ---- Footer ---- */
footer a:hover {
    color: #fff !important;
}

/* ---- تأثيرات متنوعة ---- */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* ---- محرر النصوص ---- */
.editor-toolbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px;
}

.editor-toolbar button {
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
}

.editor-toolbar button:hover {
    background: #e9ecef;
}

#replyContent, textarea.form-control {
    border-radius: 0 0 8px 8px;
    resize: vertical;
}

/* ---- الإشعارات ---- */
.notification-item {
    transition: background 0.15s;
}

.notification-item:hover {
    background: #f0f4ff;
}

.notification-item.unread {
    border-right: 3px solid #0d6efd;
    background: #f8f9ff;
}
