/* Packages & Colors Styling */

.package-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 5px;
}

.package-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.package-gamemenu {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    animation: glow-red 2s ease-in-out infinite;
}

.package-diamond {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    animation: glow-purple 2s ease-in-out infinite;
}

.package-top {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    animation: glow-orange 2s ease-in-out infinite;
}

.package-basic {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.package-free {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.color-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.color-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Glow animations */
@keyframes glow-red {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.8);
    }
}

@keyframes glow-purple {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(155, 89, 182, 0.8);
    }
}

@keyframes glow-orange {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(243, 156, 18, 0.8);
    }
}

/* Server card with color package styling */
.server-card[style*="gradient"] {
    position: relative;
    overflow: hidden;
}

.server-card[style*="gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.3;
    z-index: -1;
    filter: blur(20px);
}

/* Rainbow animation for rainbow color package */
@keyframes rainbow-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.color-badge[style*="rainbow"],
.server-card[style*="rainbow"] {
    animation: rainbow-shift 3s linear infinite;
}

/* Package info display in admin */
.package-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.package-info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.package-info-card:hover {
    border-color: rgba(231, 76, 60, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.package-info-card h6 {
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
}

.package-info-card p {
    color: #a0a5c0;
    margin-bottom: 5px;
    font-size: 14px;
}

.package-info-card strong {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .package-badge,
    .color-badge {
        padding: 6px 15px;
        font-size: 0.8rem;
        margin: 3px;
    }

    .package-info-grid {
        grid-template-columns: 1fr;
    }
}
