:root {
    --primary: #4facfe;
    --bg-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: var(--text-main);
}

.profile-header {
    background: var(--bg-gradient);
    padding: 40px 20px 60px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.profile-header .back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.profile-header .back-link:hover {
    color: white;
}

.profile-hero {
    margin-top: 16px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.profile-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-hero p {
    opacity: 0.9;
    font-size: 15px;
}

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

.profile-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-title-link {
    color: inherit;
    text-decoration: none;
}

.section-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.subcategory {
    margin-top: 32px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.subcategory-title .section-title-link {
    color: var(--text-muted);
}

.subcategory-title .section-title-link:hover {
    color: var(--primary);
}

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

.bookmark-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.bookmark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bookmark-card .preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    position: relative;
}

.bookmark-card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookmark-card .placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.bookmark-card .content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bookmark-card .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bookmark-card .description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.bookmark-card .footer-info {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.profile-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.profile-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
