/**
 * BMMM Prayer Times - Extended Styles
 * Version: 3.1.0
 * New display modes, shortcodes, and styling options
 */

/* ========================================
   TIMELINE DISPLAY MODE
   ======================================== */

.prtimes-mode-timeline .prtimes-cards-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px 0;
}

.prtimes-mode-timeline .prtimes-prayer-card {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.prtimes-mode-timeline .prtimes-prayer-card:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.prtimes-mode-timeline .prtimes-prayer-card::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 25px;
    bottom: -30px;
    width: 3px;
    background: linear-gradient(180deg, var(--prtimes-accent-color) 0%, #cbd5e0 100%);
    z-index: 0;
}

.prtimes-mode-timeline .prtimes-prayer-card:last-child::before {
    display: none;
}

.prtimes-mode-timeline .prtimes-prayer-card::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 22px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--prtimes-accent-color);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
}

.prtimes-mode-timeline .prtimes-prayer-card.prtimes-upcoming::after {
    background: #10b981;
    animation: pulse-timeline 2s infinite;
}

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

/* ========================================
   CIRCULAR/CLOCK DISPLAY MODE
   ======================================== */

.prtimes-mode-circular .prtimes-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
}

.prtimes-circular-clock {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
}

.prtimes-circular-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prtimes-circular-center .prtimes-next-prayer-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.prtimes-circular-center .prtimes-next-prayer-time {
    font-size: 18px;
    color: #4a5568;
}

.prtimes-circular-prayer {
    position: absolute;
    transform-origin: center;
}

.prtimes-circular-prayer-item {
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.prtimes-circular-prayer-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.prtimes-circular-prayer.prtimes-upcoming .prtimes-circular-prayer-item {
    background: #10b981;
    color: white;
}

/* Position prayers around the clock */
.prtimes-circular-prayer:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.prtimes-circular-prayer:nth-child(2) { top: 15%; right: 8%; }
.prtimes-circular-prayer:nth-child(3) { right: 0; top: 50%; transform: translateY(-50%); }
.prtimes-circular-prayer:nth-child(4) { bottom: 15%; right: 8%; }
.prtimes-circular-prayer:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.prtimes-circular-prayer:nth-child(6) { bottom: 15%; left: 8%; }

/* ========================================
   SLIDER DISPLAY MODE
   ======================================== */

.prtimes-mode-slider {
    position: relative;
    overflow: hidden;
}

.prtimes-mode-slider .prtimes-cards-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.prtimes-mode-slider .prtimes-prayer-card {
    min-width: 100%;
    flex-shrink: 0;
}

.prtimes-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.prtimes-slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.prtimes-slider-nav-prev {
    left: 10px;
}

.prtimes-slider-nav-next {
    right: 10px;
}

.prtimes-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.prtimes-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prtimes-slider-dot.active {
    background: var(--prtimes-accent-color);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   COMPACT HORIZONTAL MODE
   ======================================== */

.prtimes-mode-compact .prtimes-cards-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.prtimes-mode-compact .prtimes-prayer-card {
    min-width: 100px;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
}

.prtimes-mode-compact .prtimes-prayer-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.prtimes-mode-compact .prtimes-prayer-time {
    font-size: 14px;
    font-weight: 700;
}

/* ========================================
   NEW SHORTCODES STYLES
   ======================================== */

/* Next Prayer Shortcode */
.prtimes-next-prayer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin: 20px 0;
}

.prtimes-next-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.prtimes-next-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.prtimes-next-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.prtimes-next-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.prtimes-next-time {
    font-size: 16px;
    opacity: 0.95;
}

.prtimes-next-countdown {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: inline-block;
}

/* Next Prayer - Minimal Style */
.prtimes-next-style-minimal {
    padding: 12px 18px;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.prtimes-next-style-minimal .prtimes-next-icon {
    font-size: 24px;
}

.prtimes-next-style-minimal .prtimes-next-name {
    font-size: 20px;
    color: #667eea;
}

.prtimes-next-style-minimal .prtimes-next-countdown {
    background: #667eea;
    color: white;
}

/* Next Prayer - Badge Style */
.prtimes-next-style-badge {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    gap: 10px;
}

.prtimes-next-style-badge .prtimes-next-icon {
    font-size: 20px;
}

.prtimes-next-style-badge .prtimes-next-content {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.prtimes-next-style-badge .prtimes-next-name {
    font-size: 16px;
}

.prtimes-next-style-badge .prtimes-next-countdown {
    margin: 0;
    padding: 4px 12px;
    font-size: 14px;
}

/* Single Prayer Shortcode */
.prtimes-single-prayer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 16px;
}

.prtimes-single-prayer strong {
    color: #2d3748;
}

.prtimes-prayer-time-value {
    color: #667eea;
    font-weight: 600;
}

/* Countdown Widget */
.prtimes-countdown-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.prtimes-countdown-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.prtimes-countdown-display {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.prtimes-countdown-short .prtimes-countdown-display {
    font-size: 36px;
}

.prtimes-countdown-minimal {
    padding: 10px 15px;
    background: transparent;
    border: 2px solid #f5576c;
    color: #f5576c;
}

.prtimes-countdown-minimal .prtimes-countdown-display {
    font-size: 24px;
    color: #f5576c;
    text-shadow: none;
}

/* Hijri Date Widget */
.prtimes-hijri-date-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

//.prtimes-hijri-date {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.prtimes-gregorian-date {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

.prtimes-dark-mode .prtimes-prayer-wrapper {
    background: #1a202c;
    color: #e2e8f0;
}

.prtimes-dark-mode .prtimes-prayer-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.prtimes-dark-mode .prtimes-prayer-name {
    color: #cbd5e0;
}

.prtimes-dark-mode .prtimes-prayer-time {
    color: #f7fafc;
}

.prtimes-dark-mode .prtimes-date {
    color: #a0aec0;
}

.prtimes-dark-mode .prtimes-countdown {
    background: #4a5568;
}

.prtimes-dark-mode .prtimes-header {
    border-bottom-color: #4a5568;
}

.prtimes-dark-mode .prtimes-upcoming {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-left-color: #10b981;
}

/* Dark mode for new shortcodes */
.prtimes-dark-mode .prtimes-single-prayer {
    background: #2d3748;
    color: #e2e8f0;
}

.prtimes-dark-mode .prtimes-single-prayer strong {
    color: #cbd5e0;
}

/* ========================================
   CUSTOM FONTS SUPPORT
   ======================================== */

.prtimes-font-roboto {
    font-family: 'Roboto', sans-serif;
}

.prtimes-font-opensans {
    font-family: 'Open Sans', sans-serif;
}

.prtimes-font-lato {
    font-family: 'Lato', sans-serif;
}

.prtimes-font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.prtimes-font-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
    .prtimes-mode-timeline .prtimes-prayer-card {
        padding-left: 40px;
    }
    
    .prtimes-mode-timeline .prtimes-prayer-card::before {
        left: 14px;
    }
    
    .prtimes-mode-timeline .prtimes-prayer-card::after {
        left: 8px;
        width: 12px;
        height: 12px;
    }
    
    .prtimes-circular-clock {
        width: 300px;
        height: 300px;
        padding: 30px;
    }
    
    .prtimes-circular-center {
        width: 140px;
        height: 140px;
        padding: 20px;
    }
    
    .prtimes-circular-center .prtimes-next-prayer-name {
        font-size: 20px;
    }
    
    .prtimes-circular-prayer-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .prtimes-next-prayer {
        flex-direction: column;
        text-align: center;
    }
    
    .prtimes-next-name {
        font-size: 24px;
    }
    
    .prtimes-countdown-display {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .prtimes-circular-clock {
        width: 280px;
        height: 280px;
    }
    
    .prtimes-mode-compact .prtimes-prayer-card {
        min-width: 80px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.prtimes-animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.prtimes-mode-timeline .prtimes-prayer-card {
    animation: slideInFromLeft 0.5s ease-out forwards;
}

.prtimes-mode-timeline .prtimes-prayer-card:nth-child(1) { animation-delay: 0.1s; }
.prtimes-mode-timeline .prtimes-prayer-card:nth-child(2) { animation-delay: 0.2s; }
.prtimes-mode-timeline .prtimes-prayer-card:nth-child(3) { animation-delay: 0.3s; }
.prtimes-mode-timeline .prtimes-prayer-card:nth-child(4) { animation-delay: 0.4s; }
.prtimes-mode-timeline .prtimes-prayer-card:nth-child(5) { animation-delay: 0.5s; }
.prtimes-mode-timeline .prtimes-prayer-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .prtimes-slider-nav,
    .prtimes-slider-dots,
    .prtimes-next-countdown,
    .prtimes-countdown-display {
        display: none;
    }
    
    .prtimes-mode-slider .prtimes-cards-container {
        display: block;
    }
    
    .prtimes-mode-slider .prtimes-prayer-card {
        page-break-inside: avoid;
        min-width: auto;
    }
}
