/* Push Notification System Styles */

/* Follow Store Button */
.follow-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #ed174f;
    color: #ed174f;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.follow-store-btn:hover {
    background: #ed174f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.3);
}

.follow-store-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.follow-store-btn.following {
    background: #ed174f;
    color: #fff;
    border-color: #ed174f;
}

.follow-store-btn.following:hover {
    background: #c01340;
    border-color: #c01340;
}

.follow-store-btn i {
    font-size: 16px;
}

/* Follower Count */
.follower-count {
    display: none; /* Hidden */
}

/* Store Follow Section */
.store-follow-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

/* Notification Toast */
.push-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

.push-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-notification-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.push-notification-success {
    border-left: 4px solid #28a745;
}

.push-notification-success i {
    color: #28a745;
}

.push-notification-error {
    border-left: 4px solid #dc3545;
}

.push-notification-error i {
    color: #dc3545;
}

.push-notification-warning {
    border-left: 4px solid #ffc107;
}

.push-notification-warning i {
    color: #ffc107;
}

.push-notification-info {
    border-left: 4px solid #17a2b8;
}

.push-notification-info i {
    color: #17a2b8;
}

/* Bell Icon Animation */
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.follow-store-btn:hover i {
    animation: bellRing 0.5s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .follow-store-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .store-follow-section {
        flex-direction: column;
        gap: 10px;
    }

    .push-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .push-notification.show {
        transform: translateY(0);
    }

    .push-notification {
        transform: translateY(-100px);
    }
}

/* Store Card Follow Button (for store listings) */
.store-card-follow {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
    z-index: 10;
}

/* Follow Button in Store Header */
.store-header-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Pulse animation for new followers */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(237, 23, 79, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(237, 23, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(237, 23, 79, 0); }
}

.follow-store-btn.just-followed {
    animation: pulse 1s;
}

/* Loading state */
.follow-store-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tooltip for follow button */
.follow-store-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

/* OneSignal custom styling */
#onesignal-slidedown-container {
    z-index: 999998 !important;
}

.onesignal-slidedown-dialog {
    border-radius: 10px !important;
}

.onesignal-slidedown-allow-button {
    background-color: #ed174f !important;
    border-radius: 25px !important;
}

.onesignal-slidedown-allow-button:hover {
    background-color: #c01340 !important;
}
