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

:root {
    --bg-color: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --primary: #10b981;
    --primary-hover: #059669;
    --accent: #6366f1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(152,100%,74%,0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(242,100%,70%,0.3) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.5px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-ai {
    background: linear-gradient(135deg, var(--accent), #a855f7);
}
.btn-ai:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

/* Utils */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.text-muted { color: var(--text-muted); }

/* Layout & Spacing */
.w-full { width: 100%; box-sizing: border-box; }
.m-auto { margin-left: auto; margin-right: auto; }
.v-center { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    min-height: 80vh; 
    width: 100%; 
}
.gap-1 { gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.flex-col { display: flex; flex-direction: column; }

/* Auth Specific */
.github-btn {
    background: #24292e !important;
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 1rem !important;
    transition: all 0.2s ease !important;
    min-height: 44px !important;
    text-decoration: none !important;
}
.github-btn:hover {
    background: #1b1f23 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.login-card {
    max-width: 420px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close:hover {
    color: var(--text-main);
}

.progress-bar {
    width: 100%;
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-color);
}

.search-item:hover {
    background: var(--bg-color);
}
