/* ============================================
   FLOATING DEVOTION TAB STYLES
   For: devotion/templates/devotion/floating_tab.html
   ============================================ */

/* Main Floating Tab Container */
.devotion-tab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    background: linear-gradient(135deg, #8E2800 0%, #B64926 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Very high to ensure it's on top */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    animation: devotionSlideInUp 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

/* Header Section */
.devotion-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.devotion-header h4 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.devotion-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devotion-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Content Section */
.devotion-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.devotion-content h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.devotion-message {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: justify;
}

/* Bible Verse and Prayer Point */
.bible-verse, .prayer-point {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9rem;
    border-left: 4px solid rgba(255, 240, 165, 0.5);
}

.bible-verse strong, .prayer-point strong {
    color: #FFF0A5;
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Time Display */
.devotion-time {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
}

.devotion-time small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Footer with WhatsApp Button */
.devotion-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .devotion-tab {
        width: 300px;
        bottom: 20px;
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .devotion-tab {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
    
    .devotion-header h4 {
        font-size: 1.1rem;
    }
    
    .devotion-content h5 {
        font-size: 1.2rem;
    }
}

/* Print styles - hide devotion tab when printing */
@media print {
    .devotion-tab {
        display: none !important;
    }
}

/* ============================================
   OLD STYLES (KEPT FOR BACKWARD COMPATIBILITY)
   ============================================ */

/* Floating Devotion Widget - Old version */
.floating-devotion {
    display: none; /* Hide old version */
}

/* All other old styles remain but won't interfere */
