/* CSS لصفحة تحويل التاريخ */

/* قسم العنوان الرئيسي */
.page-hero {
    background-color: #8e44ad;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* قسم محول التاريخ */
.date-converter-section {
    padding: 60px 0;
}

.converter-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

/* علامات التبويب */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #8e44ad;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: #8e44ad;
}

.tab-btn.active:after {
    transform: scaleX(1);
}

/* محتوى التبويبات */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

/* نموذج التحويل */
.converter-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group select,
.form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

.converter-form button {
    grid-column: 1 / -1;
    background-color: #8e44ad;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.converter-form button:hover {
    background-color: #7d3c98;
}

/* نتيجة التحويل */
.result-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.result-container.show {
    display: block;
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.result-date {
    font-size: 1.4rem;
    color: #8e44ad;
    margin-bottom: 8px;
}

.result-details {
    color: #666;
    font-size: 0.9rem;
}

/* معلومات عن التقويمين */
.calendar-info {
    margin-top: 40px;
}

.calendar-info h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.info-card h3 {
    color: #8e44ad;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.info-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-card ul {
    padding-right: 20px;
}

.info-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* تخطيط الشاشات المختلفة */
@media screen and (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .date-converter-section {
        padding: 40px 0;
    }
    
    .converter-form {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .converter-container {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e1e1e1;
    }
    
    .tab-btn:after {
        bottom: 0;
    }
}
