/* styles.css - Atom Registry Unified Styling */

:root {
    --bg-primary: #0a0015;
    --text-primary: #e0d0ff;
    --text-secondary: #9CA3AF;
    --text-accent: #a78bfa;
    --glass-bg: rgba(10, 0, 21, 0.7);
    --glass-border: rgba(167, 139, 250, 0.15);
    --btn-primary-bg: linear-gradient(135deg, #a78bfa 0%, #7dd3fc 100%);
    --shadow-primary: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition-all: all 0.3s ease;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(120, 60, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-primary);
}

.glass-card {
    background: rgba(167, 139, 250, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.08);
    transition: var(--transition-all);
}

.glass-card:hover {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.2);
}

.btn-primary {
    background: var(--btn-primary-bg);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    transition: var(--transition-all);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.6);
    transform: translateY(-2px);
}

.tab-btn {
    position: relative;
    color: #9CA3AF;
    transition: var(--transition-all);
    cursor: pointer;
    background: none;
    border: none;
}

.tab-btn:hover { 
    color: white; 
}

.tab-btn.active { 
    color: white; 
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #7dd3fc);
    border-radius: 2px;
    box-shadow: 0 0 10px #a78bfa;
}

.page { 
    display: none; 
}

.page.active { 
    display: block; 
    animation: fadeIn 0.4s ease-out; 
}

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

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-item:hover {
    background: rgba(167, 139, 250, 0.1);
}

/* Stars animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px;
    opacity: 0.07;
    animation: drift 120s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-30px, -30px);
    }
}

/* Form inputs */
.input-field {
    background-color: #0B0E14;
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Registration steps */
.step {
    transition: all 0.3s ease;
}

.step.active .w-10 {
    background: linear-gradient(135deg, #a78bfa, #7dd3fc);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

.step.active span {
    color: #a78bfa;
}

/* Success/Error messages */
.success-message {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: #22c55e;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: #ef4444;
}

/* Domain cards */
.domain-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(125, 211, 252, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(167, 139, 250, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1.25rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }

    .nav-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .tab-btn.active::after {
        bottom: -6px;
        width: 15px;
        height: 2px;
    }
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.fa-circle-notch.fa-spin {
    animation: spin 0.8s linear infinite;
}

/* Pulse animation for glow effects */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.animate-pulse-slow {
    animation: pulse-glow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}