/* 1. الإعدادات العامة لضمان التجاوب على كل الأجهزة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgba(201, 201, 201, 0.849);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. الهيدر والوصف (Description) */
header h1 {
    background-color: green;
    color: white;
    padding: 20px;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.audio-desc {
    background: #1b3022;
    color: #00ff00;
    padding: 12px;
    font-weight: bold;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    border-bottom: 2px solid #004d00;
}

/* 3. حاوية الأذكار (Container) */
.azkar-list {
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.zikr-section {
    padding: 25px 15px;
    width: 100%;
}

/* 4. تنسيق النصوص والخطوط */
.zikr-text {
    font-size: clamp(1.3rem, 4.5vw, 1.9rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 5px;
}

h3 {
    color: green;
    margin: 10px 0;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
}

.fadila {
    background-color: rgba(0, 128, 0, 0.08);
    color: #2c3e50;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin: 15px auto;
    border-right: 5px solid green;
    max-width: 95%;
    text-align: right;
}

/* 5. زرار العد والوميض الأحمر (العدادات القديمة) */
.counter-card {
    background-color: #1b3022;
    color: #00ff00;
    width: min(200px, 85%);
    height: 95px;
    margin: 25px auto;
    border-radius: 18px;
    border: 3px solid #ccc;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.counter-card:active {
    transform: scale(0.96);
}

.counter-card.finished {
    background-color: #28a745;
    color: white;
    border-color: #fff;
}

.counter-card.reset-flash {
    background-color: #ff0000 !important;
    border-color: #fff !important;
    box-shadow: 0 0 20px #ff0000;
}

.num {
    font-size: 40px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.limit {
    font-size: 20px;
    opacity: 0.7;
    margin-right: 10px;
}

.reset-btn {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #ff4d4d;
    font-size: 26px;
}

/* --- إضافة: زرار العد الخاص بالصلاة على النبي (المطور) --- */
.special-counter {
    background-color: #1b3022 !important;
    color: #00ff00 !important;
    width: min(320px, 95%);
    height: 150px;
    margin: 40px auto;
    border-radius: 25px;
    border: 3px solid #444;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.special-counter:active {
    transform: scale(0.97);
}

.pray-text {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

.num-display {
    font-size: 50px;
    font-weight: bold;
    font-family: monospace;
}

.infinity-icon {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 26px;
    color: rgba(169, 169, 169, 0.5);
}

.reset-circle {
    position: absolute;
    bottom: 12px;
    left: 15px;
    width: 45px;
    height: 45px;
    background-color: #ff4d4d;
    color: white !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 2px solid white;
    z-index: 10;
    transition: 0.2s;
}

.reset-circle:active {
    transform: scale(0.8);
}

/* 6. سيكشن الصوت الكامل وأيقونة المسجد */
.final-audio-section {
    background: white;
    padding: 35px 15px;
    margin: 50px 10px;
    border-radius: 25px;
    border: 2px solid green;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.final-audio-section i {
    font-size: 45px;
    color: #1b3022;
    margin-bottom: 10px;
    display: block;
}

/* 7. الفوتر وزرار الهوم (تم التعديل ليكون يساراً ومتفاعلاً) */
footer {
    background-color: #1b3022 !important;
    color: white;
    padding: 30px 20px !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.floating-home {
    position: fixed;
    bottom: 25px;
    left: 25px;
    /* تم نقله لليسار */
    background: green;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    z-index: 9999;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.floating-home:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #006400;
}

.floating-home:active {
    transform: scale(0.9);
}

/* زرار الدعم (متفاعل) */
.support-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

.btn-support-footer {
    text-decoration: none;
    color: white;
    background-color: #28a745;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-support-footer:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-support-footer:active {
    transform: scale(0.95);
}

/* 8. مشغل الصوت وتعديل لونه */
.custom-audio {
    width: 100%;
    max-width: 320px;
    height: 35px;
    margin-top: 15px;
    filter: sepia(100%) hue-rotate(90deg) saturate(150%);
}

.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, green, transparent);
    margin: 20px auto;
    width: 85%;
}

@media (max-width: 400px) {
    .zikr-text {
        font-size: 1.3rem;
    }

    .counter-card {
        height: 85px;
        width: 90%;
    }
}