/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #e67e22;
    --accent-color: #e67e22;
    --text-color: #fff;
    --dark-text: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f2846, #1a4b84);
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-bg-hover: rgba(255, 255, 255, 0.25);
    --full-text-bg: rgba(0, 30, 60, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    line-height: 1.6;
}

/* مقدمة التطبيق */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2846, #1a4b84);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    animation: fadeOut 1.5s ease-in-out 3s forwards;
}

.intro-content {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.intro-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #e67e22;
    animation: pulse 2s infinite;
}

.intro-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.intro-subtitle {
    font-size: 1.2rem;
    color: #f1c40f;
    opacity: 0;
    animation: fadeIn 1s ease-in 1.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: rgba(0, 20, 40, 0.3);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.app-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Amiri', serif;
}

.app-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    margin: 30px 0 20px;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.1) 40%, transparent 60%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.zikr {
    background: var(--card-bg);
    margin: 15px 0;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.zikr:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.short {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.zikr-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.zikr-title {
    flex: 1;
    text-align: right;
    font-size: 1.1rem;
}

.arrow-icon {
    color: var(--secondary-color);
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.full {
    display: none;
    padding: 20px;
    background: var(--full-text-bg);
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    font-family: 'Amiri', serif;
    line-height: 1.8;
    font-size: 1.1rem;
}

.full p {
    margin-bottom: 10px;
}

.repeat-badge {
    background-color: var(--accent-color);
    color: white;
    border-radius: 30px;
    padding: 3px 10px;
    font-size: 0.85rem;
    margin-right: 5px;
    display: inline-block;
}

.surah-title {
    color: var(--secondary-color);
    font-weight: bold;
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.reference {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: left;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عند الفتح، تدوير السهم */
.zikr.active .arrow-icon {
    transform: rotate(180deg);
}

.zikr.active {
    background: var(--card-bg-hover);
}

/* تصميم متجاوب */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    .zikr-title {
        font-size: 1rem;
    }
    
    .full {
        font-size: 1rem;
        padding: 15px;
    }
}

/* تنسيق زر التنقل بين أذكار الصباح والمساء */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: var(--secondary-color);
    color: var(--dark-text);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* زر العودة للأعلى */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
}

.decoration {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.decoration-1 {
    top: 5%;
    left: 5%;
    font-size: 10rem;
    transform: rotate(-15deg);
}

.decoration-2 {
    bottom: 5%;
    right: 5%;
    font-size: 10rem;
    transform: rotate(15deg);
}

.counter {
    display: inline-block;
    margin-left: 5px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    line-height: 22px;
    text-align: center;
}

.loading-indicator {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--secondary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* تذييل الصفحة - حقوق الطبع والنشر */
.copyright-footer {
    background: rgba(0, 20, 40, 0.7);
    color: var(--text-color);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: 'Amiri', serif;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-text p {
    margin: 5px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-verse {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-top: 10px;
    color: var(--secondary-color);
}

.verse-reference {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@media (max-width: 600px) {
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-verse {
        font-size: 1rem;
    }
}