/* EiFaStars - Deals Screen Styles */
/* Beautiful empty state and deal items */

/* Empty State Container */
.deals-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 60vh;
}

/* Star Emoji Icon */
.deals-empty .empty-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Star emoji image */
.deals-empty .empty-icon .star-emoji {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(251, 191, 36, 0.5));
    animation: starFloat 3s ease-in-out infinite;
}

@keyframes starFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
    }
}

/* Title */
.deals-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* Description */
.deals-empty p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 32px;
    max-width: 260px;
    line-height: 1.5;
}

/* Action Button */
.deals-empty .deals-empty-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    padding: 16px 32px;
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #FDE68A 100%);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.deals-empty .deals-empty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent
    );
    transition: left 0.5s ease;
}

.deals-empty .deals-empty-btn:hover::before {
    left: 100%;
}

.deals-empty .deals-empty-btn:active {
    transform: scale(0.97);
    box-shadow: 
        0 3px 12px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}



/* Decorative stars around empty state */
.deals-empty-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deals-empty-decoration .deco-star {
    position: absolute;
    opacity: 0.15;
    fill: var(--star-color);
}

.deals-empty-decoration .deco-star:nth-child(1) {
    top: 15%;
    left: 10%;
    width: 16px;
    animation: twinkle 3s ease-in-out infinite;
}

.deals-empty-decoration .deco-star:nth-child(2) {
    top: 25%;
    right: 15%;
    width: 12px;
    animation: twinkle 2.5s ease-in-out infinite 0.5s;
}

.deals-empty-decoration .deco-star:nth-child(3) {
    bottom: 30%;
    left: 8%;
    width: 10px;
    animation: twinkle 4s ease-in-out infinite 1s;
}

.deals-empty-decoration .deco-star:nth-child(4) {
    bottom: 25%;
    right: 12%;
    width: 14px;
    animation: twinkle 3.5s ease-in-out infinite 0.3s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

/* Deal List improvements */
.deals-list {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: 100px;
}

/* Deal Item Card */
.deal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, 
        rgba(30, 27, 75, 0.7) 0%, 
        rgba(20, 18, 50, 0.8) 100%
    );
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.deal-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.deal-item:active {
    transform: scale(0.98);
}

.deal-item:hover {
    background: linear-gradient(145deg, 
        rgba(45, 40, 100, 0.8) 0%, 
        rgba(30, 27, 75, 0.9) 100%
    );
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Status colors for deal items */
.deal-item.pending::before,
.deal-item.payment_pending::before {
    background: linear-gradient(180deg, #F59E0B, #FBBF24);
}

.deal-item.paid::before,
.deal-item.processing::before,
.deal-item.stars_sent::before {
    background: linear-gradient(180deg, #3B82F6, #60A5FA);
}

.deal-item.completed::before {
    background: linear-gradient(180deg, #10B981, #34D399);
}

.deal-item.failed::before,
.deal-item.cancelled::before,
.deal-item.refunded::before {
    background: linear-gradient(180deg, #EF4444, #F87171);
}

/* Deal Icon */
.deal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.deal-icon.pending,
.deal-icon.payment_pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.deal-icon.paid,
.deal-icon.processing,
.deal-icon.stars_sent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.deal-icon.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.deal-icon.failed,
.deal-icon.cancelled,
.deal-icon.refunded {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Deal Info */
.deal-info {
    flex: 1;
    min-width: 0;
}

.deal-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* Deal Amount */
.deal-amount {
    text-align: right;
    flex-shrink: 0;
}

.deal-stars {
    font-weight: 700;
    font-size: 17px;
    color: #FBBF24;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.deal-stars svg {
    width: 18px;
    height: 18px;
    fill: #FBBF24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.deal-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* Deal Status Badge */
.deal-status {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deal-status.pending,
.deal-status.payment_pending {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.deal-status.paid,
.deal-status.processing,
.deal-status.stars_sent {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.deal-status.completed {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.deal-status.failed,
.deal-status.cancelled,
.deal-status.refunded {
    background: rgba(248, 113, 113, 0.15);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Payment method badge */
.deal-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}
