:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --success: #238636;
    --badge-bg: rgba(88, 166, 255, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(88, 166, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.08), transparent 25%);
    z-index: -1;
}

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

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #8b949e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: #ff7b72;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    min-width: 200px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-out;
}

input[type="text"], select {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

input[type="text"] {
    flex: 1;
}

input[type="text"]:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(88, 166, 255, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

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

.top-match-badge {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.details {
    margin-bottom: 24px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-icon {
    opacity: 0.7;
}

.note {
    font-size: 0.85rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-top: 16px;
}

.apply-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #0d1117;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: var(--accent-hover);
}

.loader {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    .stats-row {
        flex-direction: column;
    }
}
