/**
 * Compound Growth Reminder Widget - Footer Widget
 * Clean white design for blue footer backgrounds
 */

.compound-widget {
    width: 100%;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px;
    /* box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08); */
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.compound-widget:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); */
    border-color: rgba(0, 0, 0, 0.12);
}

.compound-widget::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.compound-widget:hover::before {
    transform: scale(1.3);
    opacity: 0.8;
}

.compound-widget-header {
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.compound-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
    color: #2c3e50;
}

.compound-widget-subtitle {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
    font-weight: 400;
    color: #5a6c7d;
}

.compound-widget-content {
    position: relative;
    z-index: 2;
}

.compound-example {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 12px;
    padding: 12px;
    /* margin: 12px 0; */
    color: white;
    transition: all 0.5s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.compound-example::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.compound-example:hover::before {
    left: 100%;
}

.compound-example.fade-out {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
}

.compound-example.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.compound-rate {
    font-size: 22px;
    font-weight: 800;
    /* color: #ffe066; */
    color: #ffff;
    margin: 0 0 6px 0;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.compound-description {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.3;
    font-weight: 500;
}

.compound-widget-footer {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.compound-footer-text {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    color: #5a6c7d;
    font-weight: 500;
}

.compound-widget-controls {
    display: flex;
    justify-content: center;
    /* margin-top: 14px; */
    /* margin-bottom: 14px; */
    gap: 8px;
}

.compound-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.compound-dot.active {
    background: #667eea;
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.compound-dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 480px) {
    .compound-widget {
        max-width: 280px;
        padding: 16px;
    }

    .compound-widget-title {
        font-size: 15px;
    }

    .compound-rate {
        font-size: 18px;
    }

    .compound-description {
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.compound-widget {
    animation: slideIn 0.6s ease-out;
}
