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

/* CSS Variables for consistent theming */
:root {
    --primary-color: #00d4aa;
    --primary-dark: #00b894;
    --primary-light: #00e5c0;
    --secondary-color: #6c5ce7;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #e84393;
    
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --bg-hover: #30363d;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    
    --border-primary: #30363d;
    --border-secondary: #21262d;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.2);
    
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* General styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0a0e14 100%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.875rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Header styles */
header {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header a {
    text-decoration: none;
    transition: transform var(--transition-fast);
}

header a:hover {
    transform: translateY(-1px);
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-fast);
}

header a:hover h1 {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main styles */
main {
    padding: 3rem 2rem 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Search form styles */
form {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

form label {
    font-weight: 600;
    color: var(--text-primary);
    align-self: center;
    min-width: fit-content;
}

form input[type="text"] {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-md);
    flex-grow: 1;
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: var(--bg-secondary);
}

form input[type="text"]::placeholder {
    color: var(--text-muted);
}

form button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    min-width: fit-content;
    font-family: inherit;
}

form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

form button[type="submit"]:active {
    transform: translateY(0);
}

/* User list styles */
main ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin: 0;
}

main li {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Special styling for cards with admin badges */
main li:has(.siteadmin) {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(102, 126, 234, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        var(--shadow-md),
        0 0 20px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

main li:has(.siteadmin)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

main li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

main > ul li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-secondary);
}

main > ul li:has(.siteadmin):hover {
    transform: translateY(-6px);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

main > ul li:hover::after {
    transform: scaleX(1);
}

main li a {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

main li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

main li p {
    margin: 0.75rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

main li p:first-of-type {
    margin-top: 1rem;
}

/* Footer styles */
footer {
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
    padding: 1.5rem 2rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Button styles */
.scambans-button {
    background: #007bff;
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.scambans-button:hover {
    background: #0056b3;
    color: white !important;
    text-decoration: none;
}

.scambans-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}
/* User profile styles */
.user-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Special styling for profile headers with admin badges */
.user-header:has(.siteadmin) {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(102, 126, 234, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        var(--shadow-lg),
        0 0 25px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-header:has(.siteadmin)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.08) 50%, transparent 100%);
    pointer-events: none;
}

.user-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 1;
}

.user-header:has(.siteadmin)::before {
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    height: 5px;
}

.user-miniheader {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-name-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.user-miniheader a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    word-break: break-word;
    line-height: 1.2;
}

.user-miniheader a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.user-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    line-height: 1.2;
}

/* Badge styles */
.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.badges div {
    margin: 0;
}

.siteadmin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    width: 100%;
    max-width: fit-content;
}

.siteadmin::before {
    content: '👑';
    font-size: 0.85rem;
    margin-right: 0;
}

.siteadmin::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.siteadmin:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4), 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #7c8ff0 0%, #8a5cb8 100%);
}

.siteadmin:hover::after {
    left: 100%;
}

/* Additional badge styles for future use */
.moderator {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.moderator::before {
    content: '🛡️';
    font-size: 0.9rem;
    margin-right: -0.2rem;
}

.vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vip::before {
    content: '⭐';
    font-size: 0.9rem;
    margin-right: -0.2rem;
}

.premium {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: none;
    color: #8b4513;
    padding: 0.6rem 1.2rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(252, 182, 159, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium::before {
    content: '💎';
    font-size: 0.9rem;
    margin-right: -0.2rem;
}

/* User page specific styles */
.user-page {
    max-width: 800px;
    margin: 0 auto;
}

.user-profile {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Special styling for admin user profiles */
.user-profile:has(.siteadmin) {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(102, 126, 234, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-profile:has(.siteadmin)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.user-profile > * {
    position: relative;
    z-index: 1;
}

.user-profile p {
    margin: 1rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-profile p:first-of-type {
    margin-top: 1.5rem;
}

.user-profile a {
    color: var(--primary-color);
    font-weight: 500;
}

.user-previousNames {
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 2rem 0 1rem 0 !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-previousNames::before {
    content: '📝';
    font-size: 1rem;
}

.user-profile ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem 0;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-secondary);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    gap: 0.5rem;
}

.user-prevName {
    padding: 0.4rem 1rem;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: transparent;
}

.user-prevName:hover,
.user-prevName:focus {
    background: transparent !important;
    color: var(--text-secondary) !important;
    outline: none !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-secondary) !important;
}

.user-prevName:last-child {
    border-bottom: none;
}


/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem 6rem 1rem;
    }
    
    header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    form {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    main ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    main li {
        padding: 1.5rem;
    }
    
    .user-profile {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .user-name {
        font-size: 1.75rem;
    }
    
    .user-miniheader {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .user-name {
        font-size: 1.5rem;
    }
    
    form {
        padding: 1rem;
    }
    
    main li {
        padding: 1rem;
    }
    
    .user-profile {
        padding: 1rem;
    }
}

/* Loading and animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}