/* Subscription Tier Badges and Visual Indicators */

/* Base badge styles */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.subscription-badge i {
    font-size: 0.7rem;
}

.badge-text {
    font-size: 0.7rem;
}

/* Basic tier badge */
.badge-basic {
    background: #6c757d;
    color: white;
    border: 1px solid #5a6268;
}

.badge-basic:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Premium tier badge */
.badge-premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 1px solid #e6c200;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.badge-premium:hover {
    background: linear-gradient(135deg, #e6c200, #ffd700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Premium Plus tier badge */
.badge-premium-plus {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 1px solid #0056b3;
    position: relative;
    overflow: hidden;
}

.badge-premium-plus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.badge-premium-plus:hover::before {
    left: 100%;
}

.badge-premium-plus:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Featured Ribbons */
.featured-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ribbon-premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 1px solid #e6c200;
}

.ribbon-premium-plus {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 1px solid #0056b3;
    animation: premiumPlusGlow 2s ease-in-out infinite alternate;
}

/* Premium Plus Glow Animation */
@keyframes premiumPlusGlow {
    0% {
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    100% {
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.6);
    }
}

/* Business Card Enhancements for Premium Tiers */
.business-card.premium-tier {
    border: 2px solid #ffd700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.business-card.premium-plus-tier {
    border: 2px solid #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    animation: premiumPlusCardGlow 3s ease-in-out infinite alternate;
}

@keyframes premiumPlusCardGlow {
    0% {
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    }
}

/* Subscription Tier Info Cards */
.tier-info-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tier-info-card.basic {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
}

.tier-info-card.premium {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffd700;
}

.tier-info-card.premium-plus {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #007bff;
}

.tier-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Tier Upgrade Buttons */
.tier-upgrade-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.tier-upgrade-btn.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 1px solid #e6c200;
}

.tier-upgrade-btn.premium:hover {
    background: linear-gradient(135deg, #e6c200, #ffd700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.tier-upgrade-btn.premium-plus {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 1px solid #0056b3;
}

.tier-upgrade-btn.premium-plus:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Tier Feature Lists */
.tier-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    padding-left: 25px;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.tier-features li.unavailable::before {
    content: '✗';
    color: #dc3545;
}

.tier-features li.unavailable {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-badge {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
    
    .featured-ribbon {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
    
    .tier-info-card {
        padding: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tier-info-card.basic {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .badge-basic {
        background: #718096;
        border-color: #4a5568;
    }
}

/* ELITE Badge (Pill Style) */
.elite-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.elite-badge .fa-crown {
    color: #FFD700;
    margin-right: 4px;
}

.elite-badge.glow {
    animation: glowPulse 1.8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 1);
    }
}

/* ELITE Ribbon (Corner Style) */
.elite-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-right-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elite-ribbon .fa-crown {
    color: #FFD700;
    margin-right: 4px;
}

/* Pinned Businesses Section */
.pinned-businesses-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.section-title i {
    margin-right: 8px;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Animated Glow Effect for Premium+ */
.animated-glow {
    animation: premiumPlusGlow 3s ease-in-out infinite alternate;
}

@keyframes premiumPlusGlow {
    0% {
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    }
}

/* Enhanced Premium Tier Cards */
.business-card.premium-tier {
    border: 2px solid #ffd700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.business-card.premium-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.business-card.premium-plus-tier {
    border: 2px solid #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
}

.business-card.premium-plus-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.business-card.premium-plus-tier::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #0056b3, #007bff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card.premium-plus-tier:hover::before {
    opacity: 1;
}

/* Pinned Business Special Styling */
.business-card.pinned-business {
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    position: relative;
}

.business-card.pinned-business::after {
    content: '⭐ PINNED';
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 15;
}

/* Enhanced Badge Styling */
.subscription-badge.badge-premium-plus {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 1px solid #0056b3;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    }
}

/* Beta Features Indicator */
.beta-features-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 10;
}

/* Responsive Design for Premium Features */
@media (max-width: 768px) {
    .pinned-grid {
        grid-template-columns: 1fr;
    }
    
    .elite-ribbon {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .business-card.premium-plus-tier::after {
        font-size: 0.5rem;
        padding: 3px 6px;
    }
}

/* Premium Features Tooltip */
.premium-feature-tooltip {
    position: relative;
    display: inline-block;
}

.premium-feature-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.premium-feature-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Unlimited Features Indicator */
.unlimited-indicator {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    margin-left: 4px;
}

/* Premium Business Content Enhancement */
.business-card.premium-tier .business-content,
.business-card.premium-plus-tier .business-content {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
}

.business-card.premium-plus-tier .business-content {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

/* Enhanced Business Title for Premium Tiers */
.business-card.premium-tier .business-title,
.business-card.premium-plus-tier .business-title {
    font-weight: 600;
    color: #333;
}

.business-card.premium-plus-tier .business-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 