/* 
 * VOTD (Verse of the Day) Page Styles
 * "Mana zilei" - Devotional Page Styling
 */

/* Body adjustments for VOTD page */
body.votd-page {
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

/* Main Container */
.votd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Buttons */
.votd-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #ddd;
    font-size: 0.95em;
}

.nav-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-1px);
}

.nav-btn.today {
    background: #337ab7;
    color: white;
    border-color: #337ab7;
}

.nav-btn.today:hover {
    background: #2868a8;
}

/* Devotional Content Card */
.votd-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Header Section */
/* VOTD Date Display */
#votdDateSelector {
    transition: opacity 0.2s;
}

#votdDateSelector:hover {
    opacity: 0.9;
}

/* Old votd-header styles removed - navigation now in sticky header */

.votd-theme {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
    font-style: italic;
}

/* Content Sections */
.votd-verse,
.votd-commentary,
.votd-teaching,
.votd-meditation,
.votd-prayer,
.votd-related,
.votd-music,
.votd-video-meditation,
.votd-calendar {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.votd-calendar {
    border-bottom: none;
}

.votd-content section h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.votd-content section h3 {
    color: #555;
    margin: 20px 0 15px 0;
    font-size: 1.1em;
}

.votd-content section p {
    line-height: 1.7;
    color: #444;
    margin: 15px 0;
}

/* Verse Text */
.verse-text {
    font-size: 1.35em;
    line-height: 1.8;
    font-style: italic;
    color: #2c3e50;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(to right, #f9f9f9 0%, #ffffff 100%);
    border-left: 5px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.verse-reference {
    text-align: right;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin: 20px 0;
}

.verse-reference a {
    color: #337ab7;
    text-decoration: none;
    transition: color 0.2s;
}

.verse-reference a:hover {
    color: #2868a8;
    text-decoration: underline;
}

.btn-read-chapter {
    display: inline-block;
    padding: 14px 32px;
    background: #337ab7;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(51,122,183,0.25);
}

.btn-read-chapter:hover {
    background: #2868a8;
    box-shadow: 0 6px 16px rgba(51,122,183,0.35);
    transform: translateY(-2px);
}

/* Greek Text - Clickable Button */
.verse-greek-link {
    display: block;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.verse-greek-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.35);
}

.verse-greek-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

.verse-greek-clickable {
    position: relative;
    padding: 18px 24px;
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border-radius: 12px;
    border: 3px solid #64b5f6;
    border-bottom: 5px solid #42a5f5;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 
        0 4px 12px rgba(33, 150, 243, 0.25),
        0 2px 4px rgba(33, 150, 243, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: subtle-pulse 3s ease-in-out infinite;
}

.verse-greek-link:hover .verse-greek-clickable {
    background: linear-gradient(145deg, #bbdefb 0%, #90caf9 50%, #64b5f6 100%);
    border-color: #42a5f5;
    border-bottom-color: #2196f3;
    animation: none;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(33, 150, 243, 0.25),
            0 2px 4px rgba(33, 150, 243, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 4px 16px rgba(33, 150, 243, 0.35),
            0 2px 6px rgba(33, 150, 243, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.greek-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.greek-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #0d47a1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.greek-click-icon {
    font-size: 2em;
    color: #1565c0;
    font-weight: bold;
    transition: transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

.verse-greek-link:hover .greek-click-icon {
    transform: translateX(8px) scale(1.1);
    animation: none;
    color: #0d47a1;
}

.greek-hint {
    font-size: 0.85em;
    color: #1976d2;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.verse-greek-link:hover .greek-hint {
    opacity: 1;
}

.greek-text {
    font-family: 'GFS Neohellenic', 'Gentium Plus', 'Noto Serif', serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #37474f;
    margin: 0;
}

/* Commentary, Meditation, Prayer */
.votd-commentary p {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

/* Teaching Section - Elaborate formatted content */
.votd-teaching .teaching-content {
    background: #fff8e1;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
}

.votd-teaching .teaching-content h4 {
    color: #e65100;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.votd-teaching .teaching-content p {
    margin: 15px 0;
    line-height: 1.8;
    color: #333;
}

.votd-teaching .teaching-content strong {
    color: #d84315;
    font-weight: 600;
}

.votd-teaching .teaching-content em {
    color: #666;
    font-style: italic;
}

.votd-meditation p {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.votd-prayer p {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #9c27b0;
    font-style: italic;
}

/* Christian Quote */
.votd-quote blockquote {
    background: #fff3e0;
    padding: 20px 25px;
    margin: 0;
    border-radius: 6px;
    border-left: 4px solid #ff6f00;
    font-style: italic;
    color: #4a4a4a;
    position: relative;
}

.votd-quote blockquote::before {
    content: '"';
    font-size: 3em;
    position: absolute;
    top: -10px;
    left: 10px;
    color: #ff6f00;
    opacity: 0.3;
}

/* Related Verses */
.related-verses-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-verses-list li {
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.2s;
}

.related-verses-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-verse {
    color: #337ab7;
    font-weight: 500;
}

/* YouTube Embeds */
.youtube-embed {
    margin-top: 15px;
}

.youtube-embed iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-info {
    color: #666;
    margin-top: 10px;
}

/* Video Meta Row - Channel/Duration + Copy Button */
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

.video-meta .video-info {
    margin: 0;
    flex: 1;
}

/* Copy Video Button - Compact */
.btn-copy-video {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy-video:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-copy-video:active {
    transform: translateY(0);
}

/* Calendar Link */
.calendar-link {
    padding: 20px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.calendar-link a {
    color: #e65100;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1em;
}

.calendar-link a:hover {
    text-decoration: underline;
}

.calendar-link p {
    margin: 10px 0 0 0;
    color: #666;
}

/* Share Section */
.votd-share {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.votd-share h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1em;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #145dbf;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.email {
    background: #666;
    color: white;
}

.share-btn.email:hover {
    background: #555;
}

.share-btn.copy {
    background: #28a745;
    color: white;
}

.share-btn.copy:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 600px) {
    .votd-container {
        padding: 10px;
    }
    
    .votd-navigation {
        justify-content: center;
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        flex: 0 1 auto;
    }
    
    /* Show compact date on mobile */
    .votd-full-date {
        display: none;
    }
    
    .votd-short-date {
        display: inline !important;
    }
    
    .votd-verse,
    .votd-commentary,
    .votd-teaching,
    .votd-meditation,
    .votd-prayer,
    .votd-related,
    .votd-music,
    .votd-video-meditation,
    .votd-calendar {
        padding: 20px 15px;
    }
    
    .verse-text {
        font-size: 1.15em;
        padding: 20px 15px;
    }
    
    .verse-reference {
        font-size: 1em;
    }
    
    .btn-read-chapter {
        width: 100%;
        text-align: center;
    }
    
    .share-buttons {
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .votd-navigation,
    .btn-read-chapter,
    .votd-share,
    #menuBtn,
    .sticky-header,
    .hamburger-modal {
        display: none !important;
    }
    
    .votd-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body.votd-page {
        background: white;
    }
}

/* Loading Animation (optional) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.votd-content {
    animation: fadeIn 0.5s ease-out;
}
/* Section Share Button - Right side of title */
.section-share-btn {
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    opacity: 0.7;
}

.section-share-btn:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.section-share-btn:active {
    transform: scale(0.95);
}

.section-share-btn svg {
    display: block;
}

/* Adjust h2 to be flex container for share button */
.votd-commentary h2,
.votd-teaching h2,
.votd-meditation h2,
.votd-prayer h2,
.votd-quote h2,
.votd-greek-word h2 {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

/* Mobile adjustments for share button */
@media (max-width: 600px) {
    .section-share-btn {
        padding: 6px 10px;
    }
    
    .section-share-btn svg {
        width: 20px;
        height: 20px;
    }
}