/* Stender VIP Loyalty Banner - Compact One-Line Design */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

.stender-vip-banner {
    background: #2d3339;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.vip-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.vip-banner-content {
    padding: 10px 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.vip-banner-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #7c9a6d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Banner States */
.vip-content-wrapper {
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Common Elements */
.vip-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #e8e8e8;
    margin: 0;
    line-height: 1.4;
}

.vip-cta {
    display: inline-block;
    padding: 6px 18px;
    background: #7c9a6d;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vip-cta:hover {
    background: #8aab7a;
    transform: translateY(-1px);
}

/* Logged Out State - One Line */
.vip-logged-out {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.vip-logged-out .vip-icon {
    font-size: 20px;
    line-height: 1;
}

/* Active/New User State - One Line with Inline Progress */
.vip-active,
.vip-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vip-info-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(124, 154, 109, 0.15);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #9fb892;
    white-space: nowrap;
}

.vip-status-badge .badge-icon {
    font-size: 12px;
    line-height: 1;
}

/* Inline Progress Bar */
.vip-progress-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.vip-progress-bar-inline {
    width: 180px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.vip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c9a6d, #9fb892);
    border-radius: 3px;
    transition: width 1s ease;
}

.vip-progress-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9fb892;
    white-space: nowrap;
}

/* VIP State - One Line */
.vip-vip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vip-vip .vip-crown {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(124, 154, 109, 0.4));
}

.vip-vip .vip-message {
    color: #9fb892;
    font-weight: 600;
}

.vip-link {
    display: inline-block;
    margin-left: 12px;
    color: #9fb892;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vip-link:hover {
    color: #b0c9a3;
    border-bottom-color: #9fb892;
}

.vip-link::after {
    content: ' →';
}

/* Responsive */
@media (max-width: 1024px) {
    .vip-progress-bar-inline {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .vip-banner-content {
        padding: 8px 0;
    }
    
    .vip-active,
    .vip-new {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .vip-info-inline {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .vip-progress-inline {
        justify-content: center;
    }
    
    .vip-message {
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vip-logged-out {
        flex-direction: column;
        gap: 8px;
    }
    
    .vip-message {
        font-size: 12px;
    }
    
    .vip-cta {
        padding: 6px 16px;
        font-size: 11px;
    }
    
    .vip-progress-bar-inline {
        width: 100%;
        max-width: 200px;
    }
    
    .vip-vip {
        flex-direction: column;
        gap: 6px;
    }
}
