/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* EHR Theme Colors */
    --primary-color: #00a5ff;
    --secondary-color: #00ffff;
    --accent-color: #00ffa5;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #00a5ff 0%, #00ffff 50%, #00ffa5 100%);
    --gradient-secondary: linear-gradient(135deg, #00ffff 0%, #00ffa5 100%);
    --gradient-accent: linear-gradient(135deg, #00a5ff 0%, #00ffa5 100%);
    --border-radius: 12px;
    --shadow-light: 0 4px 20px rgba(0, 165, 255, 0.15);
    --shadow-medium: 0 8px 40px rgba(0, 165, 255, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 165, 255, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 165, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: -2px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-discord {
    color: var(--accent-color) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 130px 20px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 165, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 165, 255, 0.1);
    border: 1px solid rgba(0, 165, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

.badge-icon {
    font-size: 1.2rem;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.title-line {
    color: var(--text-primary);
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Search Section */
.search-section {
    padding: 40px 20px 100px;
}

.search-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 165, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.6s ease 0.6s both;
}

.lookup-form {
    margin-bottom: 20px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
}

.role-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.1rem;
    background: var(--bg-tertiary);
    border: 2px solid rgba(0, 165, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.role-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 165, 255, 0.1);
}

.role-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.search-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Loading Bar */
.loading-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
}

.loading-bar.active {
    opacity: 1;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 50%;
        margin-left: 25%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Result Container */
.result-container {
    min-height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-container.show {
    opacity: 1;
}

.result-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    animation: slideInUp 0.4s ease;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.role-color-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.role-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.role-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.error-message {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    color: #ff6666;
    animation: slideInUp 0.4s ease;
}

.error-message a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.error-message a:hover {
    text-decoration: underline;
}

/* Quick Access */
.quick-access {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.quick-access-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.quick-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-role-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 165, 255, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.quick-role-btn:hover {
    background: rgba(0, 165, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Info Box */
.info-box {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: rgba(0, 165, 255, 0.05);
    border: 1px solid rgba(0, 165, 255, 0.2);
    border-radius: var(--border-radius);
    animation: fadeInUp 0.6s ease 1s both;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 165, 255, 0.1);
    padding: 60px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 165, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-card {
        padding: 25px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .role-name {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .info-box {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 15px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-card {
        padding: 20px;
    }

    .role-input,
    .search-button {
        font-size: 1rem;
        padding: 14px 20px;
    }
}
