/* 
 * Daily Encouragement Popup Styles
 */

 :root {
    --dep-bg-color: #FDF1EA; /* Light peach from design */
    --dep-primary-color: #E86C48; /* Orange/Red accent */
    --dep-text-color: #333333;
    --dep-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --dep-border-radius: 12px;
    --dep-transition-speed: 0.4s;
    --dep-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#dep-popup-container {
    position: fixed;
    bottom: 15%;
    right: 30px;
    z-index: 999999;
    font-family: var(--dep-font-family);
    pointer-events: none; /* Let clicks pass through container */
}

/* Hidden state before delay or after closing */
.dep-popup-hidden .dep-popup-card,
.dep-popup-hidden .dep-minimize-btn {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden;
}

/* Minimized State */
.dep-popup-minimized .dep-popup-card {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    visibility: hidden;
}

.dep-popup-minimized .dep-minimize-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    position: absolute;
    bottom: 0px;
    right: 0px;
}

/* Active State */
.dep-popup-active .dep-popup-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* The Main Card */
.dep-popup-card {
    position: relative;
    width: 380px;
    max-width: calc(100vw - 40px);
    background-color: transparent;
    transition: opacity var(--dep-transition-speed) ease, transform var(--dep-transition-speed) ease, visibility var(--dep-transition-speed);
}

/* The speech bubble part */
.dep-popup-content {
    background-color: var(--dep-bg-color);
    border-radius: var(--dep-border-radius);
    padding: 30px;
    box-shadow: var(--dep-shadow);
    position: relative;
    margin-bottom: 20px;
}

/* Speech bubble arrow */
.dep-popup-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--dep-bg-color);
}

/* Close Button Floating Outside */
.dep-close-btn {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--dep-primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 108, 72, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}

.dep-close-btn:hover {
    transform: scale(1.1);
    background-color: #d15c3a;
}

.dep-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Minimize Button */
.dep-minimize-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dep-primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--dep-shadow);
    transition: opacity var(--dep-transition-speed) ease, transform var(--dep-transition-speed) ease, background-color 0.2s ease;
}

.dep-minimize-btn:hover {
    background-color: #d15c3a;
    transform: scale(1.05);
}

.dep-minimize-btn svg {
    width: 26px;
    height: 26px;
}

/* Quote Icon */
.dep-quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 44px;
}

/* Typography */
.dep-heading {
    color: var(--dep-primary-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 15px 0;
    text-align: center;
}

.dep-quote-text {
    color: var(--dep-text-color) !important;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
    text-align: center;
    min-width: unset;
    max-width: 100%;
    background: transparent;
}

.dep-quote-ref {
    color: var(--dep-text-color);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 25px;
}

/* CTA Button */
.dep-cta-button {
    display: block;
    width: calc(100% - 50px);
    background-color: var(--dep-primary-color);
    color: #ffffff !important;
    text-align: center;
    padding: 12px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(232, 108, 72, 0.3);
}

.dep-cta-button:hover,
.dep-cta-button:focus {
    background-color: #d15c3a;
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #dep-popup-container {
        bottom: 15%;
        right: 20px;
        left: 20px;
    }
    
    .dep-popup-card {
        width: 100%;
        max-width: 100%;
    }
    
    .dep-popup-content {
        padding: 25px 20px;
    }
    
    .dep-minimize-btn {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}
