/* ============================
   food.me — Social Features
   Social Hub, Discussions, Comments, Likes, Profile
   ============================ */

/* ============================
   Profile Page
   ============================ */

.profile-page {
    padding: 6rem 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-avatar__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    color: var(--warm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-info {
    flex: 1;
}

.profile-info__name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.profile-info__username {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profile-info__bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-info__fav {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.profile-info__joined {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-edit-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.profile-edit-btn:hover {
    background: var(--accent-gold);
    color: var(--warm-bg);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-stat {
    text-align: center;
}

.profile-stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.profile-stat__label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-section {
    margin-bottom: 3rem;
}

.profile-section__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.profile-ratings {
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-rating-item:last-child {
    border-bottom: none;
}

.profile-rating-item__link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-rating-item__name {
    color: var(--text-primary);
    font-weight: 500;
}

.profile-rating-item__cuisine {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-rating-item__score {
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.dish-hero__submitted-by {
    color: var(--accent-gold);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .profile-header__inner {
        flex-direction: column;
        text-align: center;
    }

    .profile-edit-btn {
        width: 100%;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-rating-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* ============================
   Phase 4: Social Features
   ============================ */

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--warm-surface-2);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast--success { border-color: var(--accent-gold); }
.toast--error { border-color: #e74c3c; }

/* --- Bookmark Button --- */
.bookmark-btn {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 44px;
    height: 44px;
}
.bookmark-btn:hover {
    background: rgba(212, 168, 83, 0.2);
    transform: scale(1.1);
}
.bookmark-btn--active {
    background: rgba(212, 168, 83, 0.25);
}
.bookmark-btn--active .bookmark-btn__icon path {
    fill: var(--accent-gold);
}

/* --- Share Button --- */
.share-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cream);
    font-family: var(--font-body);
    font-size: 0.8rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    text-decoration: none;
}
.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
}
.share-btn svg {
    stroke: currentColor;
}

/* --- Dish Hero Actions --- */
.dish-hero__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* --- View Count in Info Bar --- */
/* already styled by .info-bar__item */

/* --- Comments Section --- */
.comments-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.comments-section__inner {
    background: var(--warm-surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}
.comments-section__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-cream);
    margin-bottom: 1.5rem;
}
.comments-section__count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
}
.comments-section__login-prompt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.comments-section__login-prompt a {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.comment-form__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--warm-surface-2);
}
.comment-form__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-form__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1rem;
}
.comment-form__body {
    flex: 1;
}
.comment-form__textarea {
    width: 100%;
    background: var(--warm-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--transition);
}
.comment-form__textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.comment-form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.comment-form__counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.comment-form__submit {
    background: var(--accent-gold);
    color: var(--warm-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.comment-form__submit:hover {
    background: var(--accent-amber);
}

/* Comment Item */
.comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}
.comment:last-child {
    border-bottom: none;
}
.comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--warm-surface-2);
}
.comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
}
.comment__body {
    flex: 1;
}
.comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.comment__author {
    font-weight: 600;
    color: var(--accent-cream);
    font-size: 0.9rem;
}
.comment__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.comment__delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 0.25rem;
    margin-left: auto;
    transition: color var(--transition);
}
.comment__delete:hover {
    color: #e74c3c;
}
.comment__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.comment__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    align-items: center;
}
.comment__upvote {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s;
    min-height: 32px;
}
.comment__upvote:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.comment__upvote--active {
    background: rgba(212, 168, 83, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.comment__upvote-display {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.comment__reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
.comment__reply-btn:hover {
    color: var(--accent-gold);
}
.comments-list__empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* --- Collection Adder (on dish pages) --- */
.collection-adder {
    max-width: 900px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}
.collection-adder__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.collection-adder__label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}
.collection-adder__select {
    flex: 1;
    background: var(--warm-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.collection-adder__select:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.collection-adder__btn {
    background: var(--accent-gold);
    color: var(--warm-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.collection-adder__btn:hover {
    background: var(--accent-amber);
}



/* --- Profile Tabs --- */
.profile-tabs {
    display: flex;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.profile-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.profile-tab:hover {
    color: var(--text-secondary);
}
.profile-tab--active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}
.profile-tab__count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* Tab Content */
.profile-tab-content {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.profile-tab-content--active {
    display: block;
}

/* Profile Empty State */
.profile-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.profile-empty__link {
    display: inline-block;
    color: var(--accent-gold);
    margin-top: 0.75rem;
    text-decoration: underline;
}
.profile-empty__text {
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem 0;
}

/* Profile Section Footer */
.profile-section__footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
}
.profile-section__view-all {
    color: var(--accent-gold);
    font-weight: 500;
    transition: color var(--transition);
}
.profile-section__view-all:hover {
    color: var(--accent-amber);
}

/* --- Create Collection --- */
.create-collection {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.create-collection__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-cream);
    margin-bottom: 1rem;
}
.create-collection__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.create-collection__input {
    background: var(--warm-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    flex: 1;
    min-width: 150px;
}
.create-collection__input:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.create-collection__input--desc {
    flex: 2;
}
.create-collection__public {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}
.create-collection__public input[type="checkbox"] {
    accent-color: var(--accent-gold);
}
.create-collection__btn {
    background: var(--accent-gold);
    color: var(--warm-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.create-collection__btn:hover {
    background: var(--accent-amber);
}


/* ============================
   Social Hub
   ============================ */

.social-feed {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.social-card {
    background: var(--warm-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.social-card:hover {
    border-color: rgba(212, 168, 83, 0.3);
}

.social-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.social-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--warm-bg);
    flex-shrink: 0;
}

.social-card__avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.social-card__author-info {
    display: flex;
    flex-direction: column;
}

.social-card__author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.social-card__date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent-gold);
    white-space: nowrap;
}

.social-card__content {
    display: block;
    margin-bottom: 1rem;
}

.social-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition);
}

.social-card__content:hover .social-card__title {
    color: var(--accent-gold);
}

.social-card__body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-card__footer {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.social-card__action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.social-card__action:hover {
    color: var(--accent-gold);
}

.social-like-btn--active {
    color: var(--accent-gold);
}

/* Social Form */
.social-form-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.social-form {
    background: var(--warm-surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.social-form__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cream);
}

.social-form__group {
    margin-bottom: 1.25rem;
}

.social-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.social-form__input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.social-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.social-form__textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.social-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-form__cancel {
    padding: 0.65rem 1.25rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.social-form__cancel:hover {
    border-color: var(--text-secondary);
}

.social-form__submit {
    padding: 0.65rem 1.5rem;
    background: var(--accent-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--warm-bg);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.social-form__submit:hover {
    background: var(--accent-amber);
}

.social-form__submit--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Social Detail */
.social-detail {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.social-detail__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-detail__back {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

.social-detail__back:hover {
    opacity: 0.7;
}

.social-detail__post {
    background: var(--warm-surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.social-detail__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-cream);
}

.social-detail__body {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Comments */
.social-comments {
    margin-top: 2rem;
}

.social-comments__heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cream);
}

.social-comments__login {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-comments__login a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.social-comments__empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem 0;
}

.social-comment {
    background: var(--warm-surface);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.social-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.social-comment__body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 2.75rem;
}

.social-comment-form {
    background: var(--warm-surface);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.social-comment-form__row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.social-comment-form__input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 60px;
}

.social-comment-form__input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.social-comment-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}



/* ============================
   Social Hub — Enhanced
   ============================ */

/* Auth bar in hero */
.social-hero__auth-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.social-hero__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--warm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.social-hero__greeting {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-hero__greeting strong {
    color: var(--accent-cream);
}

.social-hero__new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* Login banner for unauthenticated users */
.social-hero__login-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-hero__login-banner span {
    color: var(--text-secondary);
}

.social-hero__login-link {
    color: var(--accent-gold) !important;
    font-weight: 600;
    text-decoration: underline;
}

.social-hero__login-link:hover {
    color: var(--accent-amber) !important;
}

/* Form header with avatar */
.social-form__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-form__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.social-form__subtitle strong {
    color: var(--text-secondary);
}

/* Sort + Filter controls bar */
.social-controls {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-sort__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-sort__btn {
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.social-sort__btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.social-sort__btn--active {
    background: var(--accent-gold);
    color: var(--warm-bg);
    border-color: var(--accent-gold);
    font-weight: 600;
}

/* Clickable card wrapper */
.social-card__clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
}

.social-card__clickable:hover .social-card__title {
    color: var(--accent-gold);
}

/* Category color variants */
.social-card__category--tips {
    background: rgba(45, 138, 78, 0.15);
    color: #4caf50;
}

.social-card__category--recipe {
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent-gold);
}

.social-card__category--ingredient {
    background: rgba(232, 146, 62, 0.15);
    color: var(--accent-amber);
}

.social-card__category--equipment {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
}

.social-card__category--stories {
    background: rgba(186, 104, 200, 0.15);
    color: #ba68c8;
}

.social-card__category--help {
    background: rgba(229, 57, 53, 0.15);
    color: #ef5350;
}

/* Category filter pills with colors */
.category-filter__btn--tips { border-color: rgba(45, 138, 78, 0.3); }
.category-filter__btn--tips:hover, .category-filter__btn--tips.category-filter__btn--active { background: #4caf50; border-color: #4caf50; color: white; }
.category-filter__btn--recipe { border-color: rgba(212, 168, 83, 0.3); }
.category-filter__btn--recipe:hover, .category-filter__btn--recipe.category-filter__btn--active { background: var(--accent-gold); border-color: var(--accent-gold); }
.category-filter__btn--ingredient { border-color: rgba(232, 146, 62, 0.3); }
.category-filter__btn--ingredient:hover, .category-filter__btn--ingredient.category-filter__btn--active { background: var(--accent-amber); border-color: var(--accent-amber); }
.category-filter__btn--equipment { border-color: rgba(100, 181, 246, 0.3); }
.category-filter__btn--equipment:hover, .category-filter__btn--equipment.category-filter__btn--active { background: #64b5f6; border-color: #64b5f6; color: var(--warm-bg); }
.category-filter__btn--stories { border-color: rgba(186, 104, 200, 0.3); }
.category-filter__btn--stories:hover, .category-filter__btn--stories.category-filter__btn--active { background: #ba68c8; border-color: #ba68c8; color: white; }
.category-filter__btn--help { border-color: rgba(229, 57, 53, 0.3); }
.category-filter__btn--help:hover, .category-filter__btn--help.category-filter__btn--active { background: #ef5350; border-color: #ef5350; color: white; }

/* Social empty state */
.social-empty-state {
    background: var(--warm-surface);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    border: 1px dashed var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.social-empty-state .empty-state__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-cream);
    margin-bottom: 0.75rem;
}

/* Social detail auth indicator */
.social-detail__auth-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(212, 168, 83, 0.05);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.social-detail__auth-indicator strong {
    color: var(--text-secondary);
}

/* Social detail login banner */
.social-comments__login-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-comments__login-banner a {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 600;
}

/* Social comment empty state */
.social-comments__empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--warm-surface);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

