/* تنسيقات خاصة بصفحة السيرفرات المخصصة */

:root {
    --color-primary: #3371b2;
    --color-secondary: #001e49;
    --color-accent: #11c7e6;
    --color-light: #f5f7fa;
    --color-dark: #333333;
}

/* تنسيقات قسم البطل (Hero Section) */
.new-hero {
    background-color: #001e49;
    color: white;
    padding: 4rem 2rem;
    border-radius: 0;
}

.new-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    padding-left: 2rem;
}

/* تم نقل إعدادات hero-label و hero-features إلى ملف hero.css */

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    background-color: #333333;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #3371b2;
    transform: translateY(-3px);
}

.secondary-button {
    background-color: #3371b2;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

/* تنسيقات زر اختيار المعالج */
.processor-toggle {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    background: #f5f7fa;
    border-radius: 2rem;
    padding: 0.5rem;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.processor-toggle-btn {
    padding: 0.8rem 2rem;
    border-radius: 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #555;
}

.processor-toggle-btn.active {
    background: #3371b2;
    color: white;
}

/* تنسيقات بطاقات السيرفرات */
.servers-section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.server-category {
    display: none;
}

.server-category.active {
    display: block;
}

.server-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    margin: 2rem 0;
    scrollbar-width: thin;
}

.server-list::-webkit-scrollbar {
    height: 8px;
}

.server-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.server-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.server-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.server-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #001e49;
}

.server-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #333;
}

.server-price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.server-specs {
    margin: 1.5rem 0;
}

.server-spec {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.server-spec i {
    color: #3371b2;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* تنسيقات قسم المميزات */
.highlights-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 3rem 0 0 0;
}

.highlights-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.highlight-box {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-10px);
}

.highlight-icon {
    font-size: 2.5rem;
    color: #3371b2;
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.highlight-description {
    color: #666;
    line-height: 1.6;
}

/* تنسيقات قسم الدعوة للعمل */
.cta-section {
    background-color: #003366;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn-cta {
    background-color: #ff6b6b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
}

/* تنسيقات الأيقونات */
.os-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.os-icon {
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #3371b2;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #002855;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* تعديل الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%; /* في الشاشات الصغيرة جدًا، جعل كل عمود يأخذ العرض كاملاً */
    }
}

/* تنسيقات صفحة تكوين السيرفر */
.configure-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.configure-header {
    text-align: center;
    margin-bottom: 3rem;
}

.configure-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .configure-grid {
        grid-template-columns: 1fr;
    }
}

.configure-options {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.configure-summary {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 150px); /* تحديد ارتفاع أقصى */
    overflow-y: auto; /* إضافة شريط تمرير عند الحاجة */
    z-index: 10; /* ضمان ظهوره فوق العناصر الأخرى */
}

.option-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.option-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.option-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.option-item {
    border: 2px solid #eee;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.option-item.selected {
    border-color: var(--color-primary);
    background-color: rgba(0, 86, 179, 0.05);
}

.option-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.option-price {
    color: var(--color-primary);
    font-weight: bold;
}

/* أنماط القوائم المنسدلة لنظام التشغيل */
.os-selection, .control-panel-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-panel-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* تعديل حجم صناديق لوحة التحكم لتكون متساوية */
#control-panel-group .option-item {
    min-width: 180px;
    width: 180px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.os-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.os-version-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    direction: rtl;
}

.os-version-dropdown:focus {
    border-color: var(--color-primary);
}

.os-version-dropdown option {
    padding: 0.5rem;
}

/* أنماط جدول الأسعار الأفقي */
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-item {
    border: 2px solid #eee;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    background-color: rgba(0, 86, 179, 0.1);
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.pricing-item.selected {
    border-color: var(--color-primary);
    background-color: rgba(0, 86, 179, 0.1);
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pricing-item-name {
    font-weight: bold;
    flex: 1;
}

.pricing-item-specs {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pricing-item-price {
    font-weight: bold;
    color: #3371b2;
    font-size: 1.2rem;
}

/* تنسيقات ملخص الطلب */
.summary-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    text-align: center;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-primary);
}

.summary-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* تنسيقات النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.options-container {
    flex: 1;
    order: 1;
}

.summary-container {
    width: 300px;
    position: sticky;
    top: 20px;
    order: 2;
    align-self: flex-start;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* للشاشات الصغيرة (الهواتف المحمولة) */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .summary-container {
        width: 100%;
        position: relative;
        order: 1;
        margin-bottom: 20px;
    }
    
    .options-container {
        order: 2;
    }
}