/* Futuristic Glassmorphism UI */
:root {
    --wa-neon: #a29bfe;
    --wa-glass: rgba(255, 255, 255, 0.05);
    --wa-border: rgba(255, 255, 255, 0.1);
    --wa-glow: 0 0 20px rgba(162, 155, 254, 0.5);
    --wa-text: #ffffff;
}

.walkart-public-wrapper {
    max-width: 500px;
    margin: 40px auto;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    /* Rajdhani is a futuristic font, fallbacks to Inter */
    perspective: 1000px;
}

.walkart-glass-panel {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(40, 40, 60, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wa-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.walkart-glass-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--wa-neon) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.walkart-title {
    color: var(--wa-text);
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.5);
    position: relative;
    z-index: 1;
}

.walkart-input-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.walkart-input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.walkart-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wa-border);
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.walkart-input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--wa-neon);
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.2);
    outline: none;
}

.walkart-slug-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--wa-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.walkart-slug-wrapper:focus-within {
    border-color: var(--wa-neon);
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.2);
}

.walkart-prefix {
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: monospace;
    white-space: nowrap;
}

.walkart-slug-wrapper input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
}

.walkart-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.walkart-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.walkart-submit-btn:hover .btn-glow {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.walkart-result {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 12px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.walkart-result p {
    color: #55efc4;
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 600;
}

.walkart-result-box {
    display: flex;
    gap: 10px;
}

.walkart-result-box input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(85, 239, 196, 0.5) !important;
    color: #55efc4 !important;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.walkart-result-box button {
    background: rgba(85, 239, 196, 0.2);
    border: 1px solid rgba(85, 239, 196, 0.5);
    color: #55efc4;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.walkart-result-box button:hover {
    background: rgba(85, 239, 196, 0.4);
    box-shadow: 0 0 10px rgba(85, 239, 196, 0.3);
}

.walkart-error {
    margin-top: 15px;
    background: rgba(255, 118, 117, 0.1);
    border: 1px solid rgba(255, 118, 117, 0.3);
    color: #ff7675;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Response for mobile */
@media (max-width: 480px) {
    .walkart-glass-panel {
        padding: 20px;
    }

    .walkart-result-box {
        flex-direction: column;
    }

    .walkart-result-box button {
        width: 100%;
        padding: 12px;
    }
}