/* Points Popup Styles - Modern Design */

/* Utility class for hiding elements */
.points-popup .d-none {
    display: none !important;
}

.points-popup {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Hero Section - Total Points */
.points-popup-hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, #a855f7 100%);
    border-radius: var(--border-radius-xl);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.points-popup-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.points-popup-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.points-popup-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.points-popup-hero-icon .ui-icon {
    width: 28px;
    height: 28px;
    color: #fff;
}

.points-popup-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.points-popup-hero-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
}

.points-popup-hero-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Section Title */
.points-popup-section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
}

.points-popup-section-title span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* List of stores */
.points-popup-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Single store item - Now clickable */
.points-popup-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    text-decoration: none;
}

.points-popup-item:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-secondary);
    transform: translateX(4px);
}

.points-popup-item:active {
    transform: translateX(2px) scale(0.99);
}

/* Store logo */
.points-popup-item-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.points-popup-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Store info */
.points-popup-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.points-popup-item-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.points-popup-item-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-base);
}

.points-popup-item:hover .points-popup-item-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Points Badge */
.points-popup-item-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #f59e0b 100%);
    border-radius: var(--border-radius-full);
    box-shadow: 0 2px 8px rgba(227, 183, 89, 0.3);
}

.points-popup-item-badge-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Loading and Empty States */
.points-popup-loading,
.points-popup-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
}

.points-popup-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .points-popup {
        gap: var(--spacing-md);
    }

    .points-popup-hero {
        padding: var(--spacing-md);
    }

    .points-popup-hero-icon {
        width: 48px;
        height: 48px;
    }

    .points-popup-hero-icon .ui-icon {
        width: 24px;
        height: 24px;
    }

    .points-popup-hero-value {
        font-size: 1.75rem;
    }

    .points-popup-item-logo {
        width: 40px;
        height: 40px;
    }

    .points-popup-item {
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .points-popup-item-badge {
        min-width: 44px;
        height: 28px;
        padding: 0 var(--spacing-sm);
    }

    .points-popup-item-hint {
        display: none;
    }
}
