/* Custom Styles - Uizard Inspired */

/* Gradient Background */
.bg-gradient-radial {
    background: radial-gradient(circle at center, currentColor 0%, transparent 70%);
}

/* Feature Cards */
.feature-card {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #A881FE 0%, #6419FF 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    border-color: #A881FE;
    box-shadow: 0 8px 32px rgba(168, 129, 254, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

/* QR Card */
.qr-card {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    border-radius: 1.75rem;
    padding: 2.5rem;
    box-shadow: 0px 2px 8px 0px rgba(3,3,3,0.16);
    transition: all 0.3s;
}

.qr-card:hover {
    border-color: #3E3E3E;
}

/* Tabs */
.tab-button {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #B8B8B8;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.5rem 0.5rem 0 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile responsive tabs - horizontal scroll */
@media (max-width: 640px) {
    #tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    /* Hide scrollbar for Chrome/Safari/Opera */
    #tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-button span {
        font-size: 1.1rem;
        margin-right: 0.25rem;
    }
}

.tab-button:hover {
    color: #FFFFFF;
    background: rgba(168, 129, 254, 0.05);
}

.tab-button.active {
    color: #FFFFFF;
    border-bottom-color: #A881FE;
    font-weight: 700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Primary Button - Purple Gradient */
.btn-primary {
    background: radial-gradient(59.46% 220% at 50% 100%, #A881FE 0%, #6419FF 100%);
    color: #FFFFFF;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(100, 25, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 8px 24px rgba(100, 25, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-0.25rem);
}

/* Secondary Button - Outline Style */
.btn-secondary {
    background: transparent;
    border: 1px solid #2E2E2E;
    color: #B8B8B8;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #0A0A0A;
    border-color: #A881FE;
    color: #A881FE;
    transform: translateY(-0.25rem);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Example Button */
.example-btn {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    color: #A881FE;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: #A881FE;
    color: #FFFFFF;
    border-color: #A881FE;
    transform: scale(1.05);
}

/* Download Button */
.btn-download {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #E8E8E8;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.btn-download:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #A881FE;
}

/* Input Fields */
.input-field {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #E8E8E8;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #A881FE;
    box-shadow: 0 0 0 3px rgba(168, 129, 254, 0.1);
}

.input-field::placeholder {
    color: #999999;
    opacity: 0.5;
}

/* QR Result */
.qr-result {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    border-radius: 1.75rem;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.qr-result:hover {
    transform: scale(1.02);
    border-color: #A881FE;
    box-shadow: 0 8px 32px rgba(168, 129, 254, 0.2);
}

.qr-result img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

/* History Item */
.history-item {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: #A881FE;
    transform: translateX(0.5rem);
}

/* Ad Container */
.ad-container {
    background: #0A0A0A;
    border: 1px solid #2E2E2E;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    max-width: 728px;
    margin: 0 auto;
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #2E2E2E;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #A881FE;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #6419FF;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #A881FE;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #6419FF;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #2E2E2E;
    border-top: 3px solid #A881FE;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}