/* ============================================
   COUPON & DEALS STYLING
   ============================================ */

/* ===== Coupon Badge (on Tool Cards) ===== */

.coupon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.6);
}

.coupon-icon {
    font-size: 1rem;
    line-height: 1;
}

.coupon-value {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Make sure tool cards have position relative */
.tool-card {
    position: relative;
}

/* ===== Coupon Section (Tool Detail Page) ===== */

.coupon-section {
    margin: 30px 0;
    padding: 0 20px;
}

.coupon-card-large {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    border: 2px solid #f093fb;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.2);
    transition: all 0.3s ease;
}

.coupon-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.3);
}

.coupon-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.coupon-value-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.coupon-body {
    padding: 30px;
}

.coupon-description {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.coupon-code-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: stretch;
}

.coupon-code-display {
    flex: 1;
    background: white;
    border: 2px dashed #f093fb;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #f5576c;
    text-align: center;
    letter-spacing: 2px;
    user-select: all;
}

.btn-copy-coupon {
    background: #f093fb;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-coupon:hover {
    background: #f5576c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.btn-copy-coupon.copied {
    background: #48bb78;
}

.coupon-expiry {
    margin: 16px 0 0 0;
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
}

.coupon-expiry strong {
    color: #f5576c;
}

/* ===== Notification Toast ===== */

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 400px;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.notification-success {
    border-left: 4px solid #48bb78;
}

.notification-toast.notification-error {
    border-left: 4px solid #f56565;
}

.notification-toast.notification-info {
    border-left: 4px solid #4299e1;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .coupon-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .coupon-section {
        padding: 0 16px;
    }

    .coupon-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .coupon-header h3 {
        font-size: 1.2rem;
    }

    .coupon-body {
        padding: 20px;
    }

    .coupon-code-container {
        flex-direction: column;
    }

    .coupon-code-display {
        padding: 14px 16px;
        font-size: 1.2rem;
    }

    .btn-copy-coupon {
        width: 100%;
        justify-content: center;
    }

    .notification-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .coupon-code-display {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .coupon-description {
        font-size: 1rem;
    }
}

/* ===== Filter Badge (if has coupon) ===== */

.filter-deals-active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.filter-deals-active:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* ===== Coupon Counter (optional - for catalog header) ===== */

.deals-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

.deals-counter-icon {
    font-size: 1rem;
}

/* ===== Coupon Expiring Soon Badge ===== */

.coupon-expiring-soon {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    animation: pulse 2s infinite;
}

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

/* ===== Deal Ribbon (alternative style) ===== */

.deal-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: #f5576c;
    color: white;
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg) translate(30%, -50%);
    transform-origin: top right;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
    z-index: 2;
}

/* Make sure parent card has overflow hidden for ribbon */
.tool-card.has-ribbon {
    overflow: hidden;
}
