/**
 * HP BOGO Plugin Styles
 * Mobile-first design
 */

.hp-bogo-notice {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f7ed 100%);
    border: 2px solid #48bb78;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
    animation: hp-bogo-slide-in 0.4s ease-out;
}

@keyframes hp-bogo-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hp-bogo-notice p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #2d3748;
    font-size: 15px;
}

.hp-bogo-notice p:last-child {
    margin-bottom: 0;
}

/* First paragraph is usually the heading */
.hp-bogo-notice p:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #22543d;
    margin-bottom: 14px;
}

/* Checkout notice - more urgent styling */
.hp-bogo-notice-checkout {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.hp-bogo-notice-checkout p:first-child {
    color: #92400e;
}

.hp-bogo-notice-checkout p {
    color: #78350f;
}

/* Gift badge in cart */
.hp-bogo-gift-badge {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

/* Tablet and up */
@media (min-width: 768px) {
    .hp-bogo-notice {
        padding: 24px 28px;
        margin: 28px 0;
    }

    .hp-bogo-notice p {
        font-size: 16px;
    }

    .hp-bogo-notice p:first-child {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .hp-bogo-gift-badge {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .hp-bogo-notice {
        padding: 28px 32px;
    }

    .hp-bogo-notice p {
        font-size: 17px;
    }

    .hp-bogo-notice p:first-child {
        font-size: 22px;
    }
}

/* Ensure readability on mobile */
@media (max-width: 767px) {
    .hp-bogo-notice {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Larger tap targets for mobile */
    .hp-bogo-notice a {
        padding: 4px;
        margin: -4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hp-bogo-notice {
        background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
        border-color: #48bb78;
    }

    .hp-bogo-notice p {
        color: #e6f7ed;
    }

    .hp-bogo-notice p:first-child {
        color: #f0fff4;
    }

    .hp-bogo-notice-checkout {
        background: linear-gradient(135deg, #4a3d14 0%, #5c4d1a 100%);
        border-color: #f59e0b;
    }

    .hp-bogo-notice-checkout p {
        color: #fef3c7;
    }

    .hp-bogo-notice-checkout p:first-child {
        color: #fffbeb;
    }
}
