/* 
 * INXAVOTE Premium Stylesheet
 * Dark mode, glassmorphism, dynamic animations and responsive layout
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #080B11;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --primary-hover-gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --accent-error: #EF4444;
    --shartify-gold: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header & Footer */
header {
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Main Container Layout */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.app-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Token Upload Widget */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.05);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.upload-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-text span {
    color: #3B82F6;
    font-weight: 600;
}

.upload-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.token-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.token-status.success {
    color: var(--accent-success);
}

.token-status.error {
    color: var(--accent-error);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn:hover {
    background: var(--primary-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

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

.btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Navigation tabs/links */
.nav-link {
    display: inline-block;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #60A5FA;
    text-decoration: underline;
}

/* Star Rating / Rating Slider Widget */
.rating-container {
    margin: 2rem 0;
}

.rating-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.rating-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
}

.rating-btn {
    flex: 1;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    border-color: #3B82F6;
    color: white;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.08);
}

.rating-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    border: 1px solid transparent;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* Owner Link Generator UI */
.shartify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--shartify-gold);
    color: #080B11;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.result-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    display: none;
}

.result-box.show {
    display: block;
}

.result-link-wrapper {
    display: flex;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.result-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

.loading .spinner {
    display: inline-block;
}
.loading .btn-text {
    display: none;
}

/* XCircle Redirection Section */
.xcircle-info-box {
    margin-top: 1.5rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.xcircle-info-box a {
    color: #A78BFA;
    font-weight: 600;
    text-decoration: none;
}

.xcircle-info-box a:hover {
    text-decoration: underline;
}

/* VCard lock status header */
.vcard-lock-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #93C5FD;
}
