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

:root {
    --primary: #FF2B2B;
    --dark: #111111;
    --light: #F7F7F7;
    --blue: #2D8CFF;
    --gray: #E3E3E3;
    --text: #1F1F1F;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text);
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name {
    line-height: 1;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.nav-user {
    font-size: 0.95rem;
    color: #555;
}

.hero {
    background: var(--dark);
    color: #fff;
    padding: 70px 0;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 10px;
}

.subtitle {
    font-size: 1.1rem;
    margin: 0 0 20px;
    color: #d8d8d8;
}

.search {
    display: flex;
    gap: 10px;
    max-width: 650px;
}

.search input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid var(--gray);
    font-size: 1rem;
}

.section {
    padding: 50px 0;
}

.section-header h2 {
    margin: 0 0 6px;
}

.section-subtitle {
    margin: 0 0 16px;
    color: #666;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.avatar.large {
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 1.6rem;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--primary);
}

.btn.danger {
    background: #e53935;
    color: #fff;
}

.btn.ghost.danger {
    color: #e53935;
    border-color: #e53935;
}

.btn.icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn .icon {
    display: inline-flex;
    align-items: center;
}

.btn.ghost {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--gray);
}

.btn.full-width {
    width: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.card p {
    margin: 4px 0;
}

.muted {
    color: #6f6f6f;
}

.small {
    font-size: 0.9rem;
}

.page {
    padding-bottom: 60px;
}

.creator-hero {
    background: linear-gradient(135deg, #fff, #f4f7fb);
    border-bottom: 1px solid var(--gray);
}

.creator-header {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 30px 0;
}

.creator-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creator-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.creator-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.creator-name {
    margin: 4px 0 12px;
    font-size: 2rem;
}

.creator-stats {
    margin-top: 8px;
}

.stat-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    background: linear-gradient(135deg, #fff, #f9fbff);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid #eef0f4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.stat-card__item {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #f1f2f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-card__item.grade {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.08), rgba(67, 215, 104, 0.08));
}

.stat-label {
    display: block;
    color: #6f6f6f;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: hsl(var(--grade-hue), 70%, 25%);
}

.grade-icon {
    width: 24px;
    height: 24px;
}

.grade-value {
    font-size: 1rem;
    color: hsl(var(--grade-hue), 70%, 25%);
}

.reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.review {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.review-card__creator {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-card__creator-name {
    margin: 0;
}

.review-card__title {
    margin: 8px 0 6px;
}

.review-card__text {
    margin: 0 0 12px;
    color: #333;
}

.review-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.rating {
    background: var(--primary);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--gray);
    font-size: 1rem;
    margin-top: 6px;
}

.form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}

.section.narrow .card,
.section.narrow .form,
.section.narrow .container {
    max-width: 640px;
    margin: 0 auto;
}

.profile-section > .card,
.profile-section > .form {
    margin-top: 24px;
}

.profile-section > :first-child {
    margin-top: 0;
}

.display-examples {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 18px;
    display: grid;
    gap: 6px;
}

.display-examples .example {
    display: block;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--gray);
    padding: 18px 0;
    text-align: center;
    color: #6f6f6f;
}

@media (max-width: 700px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .creator-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search {
        flex-direction: column;
    }
}
