/**
 * Healthy heart quiz shortcode styles.
 */

.healthy-heart-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.healthy-heart-wrapper {
    max-width: 480px;
    margin: auto;
    padding: 16px 14px 100px;
    font-family: Arial, sans-serif;
    color: #222;
}

/* BIG HEART */

.center-heart-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #f7f2f4;
    padding: 10px 0 20px;
}

.center-heart {
    width: 220px;
    height: 220px;
    position: relative;
    margin: auto;
    animation: pulse 2.5s infinite;
}

.big-heart-svg {
    width: 100%;
    height: 100%;
}

.big-heart-svg path {
    fill: #ff3147;
    filter: drop-shadow(0 10px 20px rgba(255, 49, 71, 0.3));
}

.center-heart-wrap,
.center-heart,
.big-heart-svg {
    overflow: visible !important;
}

.heart-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 5;
    padding: 28px;
    line-height: 1.5;
    font-size: 13px;
    font-weight: bold;
}

/* HABITS */

.habits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.habit {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.habit.active {
    border: 2px solid #ff3147;
    background: #fff5f6;
}

.habit-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* MINI HEART SVG */

.mini-heart {
    width: 28px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.heart-svg path {
    fill: #d8d8d8;
    transition: 0.25s ease;
}

.mini-heart.active {
    transform: scale(1.15);
}

.mini-heart.active .heart-svg path {
    fill: #ff3147;
    filter: drop-shadow(0 0 8px rgba(255, 49, 71, 0.4));
}

/* FLOATING STATUS */

.floating-status {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 18px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: bold;
    z-index: 100;
    white-space: nowrap;
}

/* ANIMATION */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
