@tailwind base;
@tailwind components;
@tailwind utilities;

/* Neon 30% OFF Badge */
.neon-badge-container {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float-badge 6s ease-in-out infinite;
    text-decoration: none;
    /* Reset anchor styles */
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.neon-badge-glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(13, 18, 30, 0.4);
    /* Darker glass tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neon-badge-container:hover .neon-badge-glass {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(234, 179, 8, 0.1);
    transform: scale(1.05);
    background: rgba(13, 18, 30, 0.6);
}

.neon-badge-text {
    font-family: inherit;
    /* Use site font */
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px #22d3ee;
    /* Cyan-400 */
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
    position: relative;
    letter-spacing: -2px;
    filter: drop-shadow(0 0 2px rgba(34, 211, 238, 0.8));
}

.neon-badge-text span {
    font-size: 1.5rem;
    display: block;
    text-align: center;
    color: #fbbf24;
    /* Amber-400 */
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 700;
}

/* Shine Effect */
.neon-badge-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}