/* Adhkar Page Specific Styles */

/* Layout */
.azkar-section {
    padding: 60px 0;
    min-height: 80vh;
    background-color: #f8fafc; /* Light gray background for readability */
}

.azkar-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Page Header - Consistent with Home Page */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    /* margin-top removed to prevent cropping */
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D4AF37;
}

.page-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 3.5rem;
    color: #D4AF37;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.title-icon {
    margin-left: 15px;
    font-size: 2.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Sidebar */
.azkar-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold Border */
}

.sidebar-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
    color: #D4AF37; /* Gold */
    text-align: center;
    border-bottom: 3px solid #D4AF37;
}

.sidebar-header h3 {
    margin: 0;
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.5rem;
}

.azkar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.azkar-nav-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.azkar-nav-item:hover {
    background-color: #fff9e6; /* Light gold tint */
    color: #bfa15f;
    padding-right: 25px; /* Slight slide effect */
}

.azkar-nav-item.active {
    background-color: #D4AF37;
    color: #fff;
    border-left: 5px solid #0f172a;
}

.azkar-nav-item::after {
    content: '\f053'; /* Chevron Left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.5;
}

.azkar-nav-item.active::after {
    color: #fff;
    opacity: 1;
}

/* Content Area */
.azkar-content-area {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-right: 5px solid #D4AF37;
}

.content-header h2 {
    margin: 0;
    color: #0f172a;
    font-family: 'Aref Ruqaa', serif;
    font-size: 2rem;
}

.control-btn {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: #D4AF37;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Adhkar Grid */
.adhkar-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Azkar Card */
.azkar-card {
    background: #fff;
    border-radius: 16px;
    padding: 0; /* Removing default padding to handle header/body split */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.azkar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.azkar-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #D4AF37;
    opacity: 0.7;
}

.card-content {
    padding: 30px;
}

.dhikr-text {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2.2;
    color: #1e293b;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    white-space: pre-line;
}

.dhikr-meta {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    border-right: 3px solid #94a3b8;
}

.dhikr-meta .meta-title {
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 5px;
}

/* Card Footer / Counter */
.card-footer {
    background: #f1f5f9;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-ring {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke: #D4AF37;
}

.counter-text {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.2rem;
    position: absolute;
}

.count-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.3);
}

.count-btn:hover {
    background: #D4AF37;
    transform: scale(1.05);
}

.count-btn:active {
    transform: scale(0.95);
}

.count-btn.completed {
    background: #22c55e; /* Green */
    cursor: default;
}

/* Shimmer Loading Effect */
.shimmer-loader {
    animation-duration: 2.2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    background: #ddd;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
    height: 100px;
    width: 100%;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

/* Scrollbar Customization for Sidebar */
.azkar-sidebar::-webkit-scrollbar {
    width: 6px;
}

.azkar-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.azkar-sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* Mobile FAB */
.mobile-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D4AF37;
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    z-index: 999;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Hidden on Desktop */
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-fab:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .azkar-layout {
        flex-direction: column;
    }

    .azkar-sidebar {
        position: fixed;
        top: 0;
        right: -320px; /* Hidden default */
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
        border-radius: 0;
        border: none;
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    }
    
    .azkar-sidebar.active {
        right: 0;
    }
    
    .azkar-content-area {
        width: 100%;
    }
    
    .mobile-fab {
        display: flex;
    }
    
    /* Overlay when sidebar flows */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 990;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    .page-title {
        font-size: 2.5rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        border-right: none;
        border-top: 5px solid #D4AF37;
    }
}

@media (max-width: 576px) {
    .dhikr-text {
        font-size: 1.4rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .counter-container {
        width: 100%;
        justify-content: space-between;
    }

    /* Fix header height for mobile */
    .page-header {
        padding: 140px 0 50px;
    }
}
