/**
 * Premium Features - Styles
 *
 * @package DATAsoft_Escort_Core
 * @since 3.4.24
 */

/* ========================================
   Premium Badges
   ======================================== */

.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ds-badge-vip {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #fff;
}

.ds-badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
}

.ds-badge-top {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

/* ========================================
   VIP Profile Card Styling
   ======================================== */

.ds-profile-card.vip-profile {
    border: 3px solid #9c27b0 !important;
    box-shadow: 0 8px 30px rgba(156, 39, 176, 0.3) !important;
    position: relative;
    overflow: visible;
}

.ds-profile-card.vip-profile::before {
    content: '👑';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 3rem;
    z-index: 10;
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.ds-profile-card.vip-profile .profile-image {
    border: 4px solid #9c27b0;
}

.ds-profile-card.vip-profile h3 {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Featured Profile Card Styling
   ======================================== */

.ds-profile-card.featured-profile {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3) !important;
    background: linear-gradient(to bottom, #fffbf0 0%, #fff 100%);
}

.ds-profile-card.featured-profile::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ========================================
   Top Placement Indicator
   ======================================== */

.ds-profile-card.top-placement {
    border-top: 5px solid #28a745 !important;
}

.ds-profile-card.top-placement::before {
    content: '🔝 TOP';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    z-index: 10;
}

/* ========================================
   Combined Premium Styles
   ======================================== */

/* VIP + Featured */
.ds-profile-card.vip-profile.featured-profile {
    border: 3px solid;
    border-image: linear-gradient(135deg, #9c27b0 0%, #ffc107 100%) 1;
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.4), 0 10px 40px rgba(255, 193, 7, 0.4);
}

/* VIP + Top Placement */
.ds-profile-card.vip-profile.top-placement {
    border-top: 5px solid #28a745 !important;
}

/* ========================================
   Badge Container
   ======================================== */

.ds-premium-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

/* ========================================
   Single Profile Page Premium Styling
   ======================================== */

.single-escort_profile.vip-profile .ds-setcard-container {
    border: 4px solid #9c27b0;
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.3);
}

.single-escort_profile.vip-profile .profile-header {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #fff;
}

.single-escort_profile.featured-profile .ds-setcard-container {
    border: 3px solid #ffc107;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

/* ========================================
   Premium Ribbon
   ======================================== */

.ds-premium-ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
    z-index: 10;
}

.ds-premium-ribbon::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #6a1b9a transparent transparent transparent;
}

/* ========================================
   Hover Effects
   ======================================== */

.ds-profile-card.vip-profile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.5) !important;
}

.ds-profile-card.featured-profile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5) !important;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .ds-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .ds-profile-card.vip-profile::before {
        font-size: 2rem;
        top: -10px;
        right: -10px;
    }

    .ds-profile-card.featured-profile::after {
        font-size: 1.5rem;
        top: 5px;
        left: 5px;
    }

    .ds-profile-card.top-placement::before {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .ds-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .ds-premium-ribbon {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

/* ========================================
   Admin Meta Box Styling
   ======================================== */

.ds-premium-meta-box label {
    cursor: pointer;
}

.ds-premium-meta-box input[type="checkbox"]:checked + strong {
    color: #28a745;
}

.ds-premium-meta-box input[type="date"] {
    font-family: inherit;
}

/* ========================================
   Loading Animation for Premium Features
   ======================================== */

.ds-premium-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(156, 39, 176, 0.3);
    border-radius: 50%;
    border-top-color: #9c27b0;
    animation: premiumSpin 1s ease-in-out infinite;
}

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

/* ========================================
   Premium Glow Effect
   ======================================== */

.ds-premium-glow {
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

@keyframes premiumGlow {
    from {
        box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(156, 39, 176, 0.8), 0 0 30px rgba(156, 39, 176, 0.6);
    }
}


