/*
Theme Name: بوابة الأنظمة الرقمية للمجلس العربي
Theme URI: https://portal.abhks.online
Author: إدارة تقنية المعلومات في المجلس العربي للاختصاصات الصحية
Author URI: https://arab-board.org
Description: قالب مخصص لعرض بوابة الأنظمة الإلكترونية بتصميم احترافي مع خط Cairo
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-custom-theme
*/

/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* تطبيق خط Cairo على كل العناصر */
*,
html,
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a,
button, input, textarea, select {
    font-family: 'Cairo', sans-serif !important;
}

/* استثناء Font Awesome Icons */
i[class*="fa-"],
.fa,
.fas,
.far,
.fab,
.fal,
.fad {
    font-family: 'Font Awesome 6 Free' !important;
}

/* إعدادات عامة */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
    margin: 0;
    direction: rtl;
    text-align: right;
}

/* Container */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.site-logo {
    max-width: 220px;
    margin-bottom: 15px;
    display: inline-block;
}

.site-logo img {
    max-width: 100%;
    height: auto;
}

.site-header h1 {
    color: #156b68;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 2rem;
}

.site-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Grid Layout للبطاقات */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* بطاقة التطبيق */
.app-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #156b68 0%, #caa453 100%);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(21, 107, 104, 0.3);
}

/* أيقونة التطبيق */
.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #156b68 0%, #caa453 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

/* عنوان التطبيق */
.app-title {
    color: #156b68;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* وصف التطبيق */
.app-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* حالة التطبيق */
.app-status {
    display: inline-block;
    padding: 8px 20px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.app-status.coming-soon {
    background: #fff3e0;
    color: #ef6c00;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px;
    background: #156b68;
    color: white;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.site-footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.site-footer a:hover {
    color: #caa453;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.8rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-card {
        padding: 30px 20px;
    }
}
