/* ================== تصغير الموقع بنسبة 12.5% ================== */

/* تصغير الخطوط الأساسية */
:root {
    --scale-factor: 0.875;
}

body {
    font-size: 0.945rem !important; /* من 1.08rem إلى 0.945rem */
    line-height: 1.65 !important; /* تقليل طفيف */
}

/* تصغير العناوين */
h1 { font-size: 2.03rem !important; } /* من 2.32rem */
h2 { font-size: 1.79rem !important; } /* من 2.05rem */
h3 { font-size: 1.27rem !important; } /* من 1.45rem */
h4, h5 { font-size: 0.95rem !important; } /* من 1.09rem */

/* تصغير المسافات والحشو */
:root {
    --main-radius: 19px !important; /* من 22px */
    --main-blur: 16px !important; /* من 18px */
}

/* تصغير البطاقات والحاويات */
.card,
.card-glass,
.info-box,
.season-card,
.year-title,
.results-header,
.moon-card,
.export-options,
.input-card {
    padding: 1.84rem 1.58rem !important; /* من 2.1rem 1.8rem */
    margin-bottom: 1.84rem !important; /* من 2.1rem */
}

.card-mini,
.info-mini {
    padding: 1.05rem 0.96rem !important; /* من 1.2rem 1.1rem */
    margin-bottom: 0.96rem !important; /* من 1.1rem */
    border-radius: 13px !important; /* من 15px */
}



body {
    padding-right: 61px !important; /* من 70px */
    padding-top: 52.5px !important; /* من 60px */
}

/* تصغير النماذج والحقول */
input,
select,
textarea {
    padding: 0.77rem 0.875rem !important; /* من 0.88rem 1rem */
    font-size: 0.91em !important; /* من 1.04em */
    margin-bottom: 0.945em !important; /* من 1.08em */
    border-radius: 12.25px !important; /* من 14px */
}

label {
    margin-bottom: 0.455em !important; /* من 0.52em */
    font-size: 0.91em !important; /* من 1.04em */
}

.form-group {
    margin-bottom: 1.37em !important; /* من 1.57em */
}

.form-row {
    gap: 0.875em !important; /* من 1em */
    margin-bottom: 1.09em !important; /* من 1.25em */
}

/* تصغير الأزرار */
.btn,
button,
input[type="submit"],
input[type="button"] {
    padding: 0.71rem 1.75rem !important; /* من 0.81rem 2.0rem */
    font-size: 0.93em !important; /* من 1.06em */
    border-radius: 11.4px !important; /* من 13px */
    margin: 0.33em 0.105em 0.4em 0 !important; /* من 0.38em 0.12em 0.46em 0 */
}

/* تصغير التقويم */
.calendar-container {
    padding: 1.14rem 0.96rem !important; /* من 1.3rem 1.1rem */
    border-radius: 13px !important; /* من 15px */
}

.calendar-header {
    padding: 1.1em 2.1em !important; /* من 1.0em 2.2em */
    font-size: 1.10em !important; /* من 1.23em */
    margin-bottom: 10px !important; /* من 11px */
    border-radius: 15px !important; /* من 15px */
}

.calendar-nav a {
    padding: 11.4px 15.75px !important; /* من 13px 18px */
    font-size: 1.93em !important; /* من 2.2em */
}

.calendar-table {
    border-radius: 14.9px !important; /* من 17px */
    margin-bottom: 1.93em !important; /* من 2.2em */
    font-size: 0.935em !important; /* من 1.07em */
    min-width: 332px !important; /* من 380px */
}

.calendar-table th {
    padding: 12.25px 0 7.9px 0 !important; /* من 14px 0 9px 0 */
    font-size: 0.91em !important; /* من 1.04em */
}

.calendar-table td {
    height: 56px !important; /* من 64px */
    min-width: 59.5px !important; /* من 68px */
    max-width: 70px !important; /* من 80px */
    padding: 7px 2.6px 2.6px 2.6px !important; /* من 8px 3px 3px 3px */
    font-size: 0.88em !important; /* من 1.01em */
    border-radius: 8.75px !important; /* من 10px */
}

.day-num {
    font-size: 1.33em !important; /* من 1.52em */
}

.gregorian-date {
    font-size: 0.85em !important; /* من 0.97em */
}

/* تصغير الرسائل والتنبيهات */
.alert, .form-message {
    border-radius: 11.4px !important; /* من 13px */
    padding: 0.875rem 1.14rem !important; /* من 1rem 1.3rem */
    font-size: 0.88em !important; /* من 1.01em */
    margin-bottom: 1.03em !important; /* من 1.18em */
}

/* تصغير الحاوية العامة */
.container {
    padding: 0 19.25px !important; /* من 0 22px */
}

/* تصغير الأحداث */
.event-item {
    border-radius: 0.96em !important; /* من 1.1em */
    margin-bottom: 17.5px !important; /* من 20px */
    padding: 14px 17.5px !important; /* من 16px 20px */
}

.event-title {
    font-size: 1.006em !important; /* من 1.15em */
    margin-bottom: 6.1px !important; /* من 7px */
    gap: 6.1px !important; /* من 7px */
}

.event-date, .event-info {
    font-size: 0.875em !important; /* من 1em */
    gap: 5.25px !important; /* من 6px */
}

.event-link {
    font-size: 0.866em !important; /* من 0.99em */
}

.event-link-container {
    margin-top: 7px !important; /* من 8px */
}

/* تصغير النوافذ المنبثقة */
.event-modal-card {
    max-width: 367.5px !important; /* من 420px */
    padding: 1.925rem 1.14rem 1.05rem 1.14rem !important; /* من 2.2rem 1.3rem 1.2rem 1.3rem */
    border-radius: 19.25px !important; /* من 22px */
}

.event-modal-header h3 {
    font-size: 1.015em !important; /* من 1.16em */
}

.event-modal-close {
    font-size: 1.75em !important; /* من 2.0em */
}

/* تصغير شريط البحث */
.calendar-search-bar {
    padding: 0.875px 0.875px !important; /* من 1px 1px */
    margin-bottom: 16.6px !important; /* من 19px */
    border-radius: 13px !important; /* من 15px */
}

.calendar-search-form {
    gap: 13.1px !important; /* من 15px */
}

.calendar-search-form input[type="number"],
.calendar-search-form select {
    width: 113.75px !important; /* من 130px */
    min-width: 78.75px !important; /* من 90px */
    max-width: 148.75px !important; /* من 170px */
    margin-right: 6.1px !important; /* من 7px */
    font-size: 0.875em !important; /* من 1em */
    padding: 6.1px 8.75px !important; /* من 7px 10px */
    border-radius: 7px !important; /* من 8px */
}

.calendar-search-form .btn {
    min-width: 65.6px !important; /* من 75px */
    padding: 6.1px 15.75px !important; /* من 7px 18px */
    font-size: 0.91em !important; /* من 1.04em */
}

/* Responsive adjustments - تصغير القيم أيضاً */
@media (max-width: 900px) {
    body { 
        font-size: 0.857rem !important; /* من 0.98rem */
        padding-right: 43px !important; /* من 49px */
    }
    .container { padding: 0 6.1px !important; } /* من 0 7px */
    .card-glass { padding: 1.05rem 0.61rem !important; } /* من 1.2rem 0.7rem */
    
}

@media (max-width: 700px) {
    body { 
        font-size: 0.814rem !important; /* من 0.93rem */
        padding-right: 0 !important;
        padding-top: 44px !important; /* من 50px */
    }
    
    
}

/* تصغير العناصر الخاصة */
.about-container {
    padding: 2.19em 2.625em 1.75em 1.75em !important; /* من 2.5em 3em 2em 2em */
    border-radius: 15.75px !important; /* من 18px */
    margin-bottom: 2.19em !important; /* من 2.5em */
}

.about-title {
    font-size: 1.79em !important; /* من 2.05em */
    margin-bottom: 12.25px !important; /* من 14px */
}

.about-lead {
    font-size: 1.0em !important; /* من 1.14em */
    margin-bottom: 1.49em !important; /* من 1.7em */
}

.section-title {
    font-size: 2em !important; /* من 1.21em */
    margin-bottom: 0.875em !important; /* من 1em */
}

.about-tech {
    margin-top: 1.49em !important; /* من 1.7em */
    font-size: 0.928em !important; /* من 1.06em */
}

.about-footer {
    margin-top: 2.36em !important; /* من 2.7em */
    font-size: 0.875em !important; /* من 1em */
    padding-top: 0.875em !important; /* من 1em */
}