:root {
    --primary: #1e40af;
    --accent: #22c55e;
    --text-light: #475569;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 560px;
    width: 100%;
    overflow: hidden;
}

/* Header with background image */
.card-header {
    position: relative;
    height: 220px;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-wrapper {
    position: absolute;
    bottom: -52px;
    left: 30px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.avatar-container {
    border: 6px solid white;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    display: block;
}

.availability-badge {
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Body */
.card-body {
    padding: 70px 30px 30px;
}

.user-name {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e2937;
    margin-bottom: 2px;
}

.user-title {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 14px;
}

.bio {
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
}

.time {
    font-family: monospace;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 28px;
    display: inline-block;
}

@media (min-width: 640px) {
    .content-grid {
        grid-template-columns: 160px 1fr;
        gap: 40px;
    }
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-section {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    padding: 10px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 14px;
    color: #1e2937;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover, .social-link:focus {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lists-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .lists-container {
        grid-template-columns: 1fr 1fr;
    }
}

.list-section {
    background: #eaecef;
    padding: 20px;
    border-radius: 12px;
}

.hobbies-list li, .dislikes-list li {
    padding: 6px 0;
    color: #334155;
}

.hobbies-list li::before { content: "✓"; color: #22c55e; margin-right: 10px; }
.dislikes-list li::before { content: "✕"; color: #ef4444; margin-right: 10px; }

/* Focus styles */
a:focus {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .card-body { padding: 68px 20px 30px; }
    .avatar-wrapper { left: 20px; }
}