/* =============================================
   Daily Verse & Previous Verses Styles
   ============================================= */

/* Base Styles */
:root {
    --primary-color: #6a3093;
    --secondary-color: #9c64c0;
    --light-purple: #e6d5f5;
    --dark-text: #333;
    --light-text: #fff;
    --shadow: 0 4px 12px rgba(106, 48, 147, 0.15);
    --shadow-hover: 0 6px 16px rgba(106, 48, 147, 0.25);
    --transition: all 0.3s ease;
}

/* Wrapper & Card */
.pv-wrapper {
    font-family: 'Georgia', serif;
    text-align: center;
    padding: 20px 10px;
    max-width: 800px;
    margin: 0 auto;
}

.pv-card {
    max-width: 700px;
    min-height: 450px;
    margin: 20px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: var(--light-text);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.pv-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pv-card blockquote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.6;
    font-weight: 400;
    margin: 0 0 25px 0;
    padding: 0;
    border-left: none;
    quotes: "“" "”" "‘" "’";
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.pv-card blockquote::before {
    content: open-quote;
    font-size: 1.5em;
    color: rgba(255,255,255,0.7);
    line-height: 0;
    margin-right: 5px;
    vertical-align: -0.4em;
}

.pv-card blockquote::after {
    content: close-quote;
    font-size: 1.5em;
    color: rgba(255,255,255,0.7);
    line-height: 0;
    margin-left: 5px;
    vertical-align: -0.4em;
}

.verse-ref {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.source {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9em;
    opacity: 0.8;
    font-family: 'Arial', sans-serif;
}

/* Title and Date */
.pv-title {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    flex-wrap: wrap;
}

.pv-title img {
    width: 28px;
    height: 28px;
    align-self: flex-start;
    margin-top: 0.2em;
}

.verse-date {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Tools */
.pv-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pv-tool-btn {
    background: var(--light-purple);
    color: var(--primary-color);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.pv-tool-btn:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pv-tool-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(1000%) hue-rotate(250deg);
    transition: var(--transition);
}

.pv-tool-btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg);
}

.arrow {
    font-size: 0.9em;
    transition: var(--transition);
}

/* Dropdowns */
.pv-dropdown {
    display: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 20px;
    background: #fff;
    border: 2px dotted var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
}

.pv-dropdown-title {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.pv-dropdown.pv-share-dropdown,
.pv-dropdown.pv-customize-dropdown {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.pv-share-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pv-dropdown button {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.pv-dropdown button:hover {
    background: var(--light-purple);
    transform: scale(1.1);
}

.pv-dropdown button:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.pv-dropdown img {
    width: 28px;
    height: 28px;
}

/* Customization */
.pv-gradient-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pv-gradient-box {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pv-gradient-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.pv-upload-area {
    border: 2px dashed var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(230, 213, 245, 0.3);
    text-align: center;
}

.pv-upload-area span {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95em;
    display: block;
    margin-bottom: 10px;
}

/* Hidden file input */
.hidden-input {
    display: none;
}

/* Subscribe Section */
.pv-subscribe {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-purple);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.pv-subscribe p {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.pv-subscribe-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.pv-subscribe-btn:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Overlay for image background */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pv-verse-content {
    position: relative;
    z-index: 1;
}

/* =============================================
   Previous Verses Section Styles
   ============================================= */
.pv-previous-verses {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--light-purple);
}

.pv-previous-verses h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.pv-previous-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.pv-previous-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pv-previous-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pv-previous-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pv-previous-date {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.pv-previous-text {
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.pv-previous-ref {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.pv-previous-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pv-previous-btn {
    background: var(--light-purple);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.pv-previous-btn:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-hover);
}

.pv-previous-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(1000%) hue-rotate(250deg);
    transition: var(--transition);
}

.pv-previous-btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pv-card {
        min-height: 400px;
        padding: 30px 20px;
    }
    
    .pv-tools {
        gap: 8px;
    }
    
    .pv-tool-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .pv-dropdown {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .pv-title {
        flex-direction: column;
        gap: 5px;
    }
    
    .pv-title img {
        align-self: center;
    }
    
    .pv-card {
        min-height: 350px;
        padding: 25px 15px;
    }
    
    .pv-tools {
        flex-direction: column;
        align-items: center;
    }
    
    .pv-tool-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pv-previous-actions {
        flex-direction: column;
    }
    
    .pv-previous-btn {
        width: 100%;
        justify-content: center;
    }
}