/* Prayer Times & Weather Widget - Complete Styles */

.prayer-widget-container {
    margin-bottom: 20px;
    width: 100%;
}

.prayer-widget-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    overflow: hidden;
}

.prayer-widget-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.prayer-widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-widget-title i {
    color: #3b82f6;
}

.prayer-widget-content {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

/* Weather Section - Removed */

/* Center Block: Clock (Right) + Date/Countdown (Left) + Reminder (Bottom) */
.center-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.center-block-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.center-left {
    flex-shrink: 0;
    text-align: left;
}

.center-center {
    flex: 1;
    text-align: center;
}

.center-right {
    flex-shrink: 0;
    text-align: right;
}

.clock-time {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
}

.clock-date {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.3;
    white-space: nowrap;
}

.countdown-section {
    width: 100%;
}

.countdown-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.countdown-text {
    font-size: 18px;
    color: #374151;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.countdown-text .prayer-name {
    color: #3b82f6;
    margin-right: 4px;
    font-weight: 700;
}

.countdown-text .countdown-time {
    color: #1f2937;
    font-weight: 700;
}

.countdown-text.soon {
    color: #dc2626;
    animation: pulse-countdown 2s ease-in-out infinite;
}

.countdown-text.soon .prayer-name {
    color: #dc2626;
}

@keyframes pulse-countdown {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.reminder-section {
    text-align: center;
    width: 100%;
    padding: 4px 6px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    margin-top: 2px;
}

.reminder-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    font-style: italic;
    font-weight: 600;
    min-height: 22px;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

/* Prayer Section */
.prayer-section {
    flex: 1;
    min-width: 0;
}

.prayer-items-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.prayer-items-wrapper::-webkit-scrollbar {
    height: 4px;
}

.prayer-items-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.prayer-items-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.prayer-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.prayer-item {
    min-width: 75px;
    flex: 0 0 auto;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 9px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.prayer-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.prayer-item.next-prayer {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.prayer-item.next-prayer-soon {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
    animation: pulse-prayer 2s ease-in-out infinite;
}

@keyframes pulse-prayer {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
        transform: scale(1.02);
    }
}

.prayer-icon {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 2px;
}

.prayer-item.next-prayer .prayer-icon {
    color: #3b82f6;
}

.prayer-item.next-prayer-soon .prayer-icon {
    color: #ef4444;
}

.prayer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.prayer-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
    line-height: 1.3;
}

.prayer-item.next-prayer .prayer-name {
    color: #1e40af;
}

.prayer-item.next-prayer-soon .prayer-name {
    color: #dc2626;
    font-weight: 700;
}

.prayer-time {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.4px;
}

.prayer-item.next-prayer .prayer-time {
    color: #1e40af;
}

.prayer-item.next-prayer-soon .prayer-time {
    color: #dc2626;
}

/* RTL Support */
[dir="rtl"] .prayer-widget-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .prayer-items-wrapper {
    direction: rtl;
}

[dir="rtl"] .center-block-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .center-left {
    text-align: right;
}

[dir="rtl"] .center-right {
    text-align: left;
}

[dir="rtl"] .reminder-section {
    border-left: none;
    border-right: 3px solid #3b82f6;
}

[dir="rtl"] .countdown-text .prayer-name {
    margin-right: 0;
    margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clock-time {
        font-size: 24px;
    }
    
    .center-block {
        min-width: 160px;
        padding: 5px 8px;
    }
    
    .clock-date {
        font-size: 11px;
    }
    
    .countdown-text {
        font-size: 13px;
    }
    
    .prayer-item {
        min-width: 70px;
        padding: 6px 8px;
    }
    
    .prayer-icon {
        font-size: 16px;
    }
    
    .prayer-name {
        font-size: 10px;
    }
    
    .prayer-time {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .prayer-widget-card {
        padding: 10px 12px;
    }

    .prayer-widget-content {
        flex-direction: column;
        gap: 12px;
    }

    .center-block {
        width: 100%;
        min-width: auto;
    }

    .prayer-section {
        display: none; /* Hide prayer times on mobile */
    }

    .clock-time {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .prayer-widget-content {
        flex-direction: column;
        align-items: stretch;
    }

    .center-block {
        width: 100%;
    }

    .prayer-section {
        display: none; /* Hide prayer times on mobile */
    }
}

@media (max-width: 480px) {
    .prayer-widget-card {
        padding: 8px 10px;
    }

    .clock-time {
        font-size: 20px;
    }

    .prayer-section {
        display: none; /* Hide prayer times on mobile */
    }
}

