/* ══════════════════════════════════════════════════════════════════
   feed.css — Social feed page styles
   Uses CSS variables from base.css exclusively. Dark mode via vars.
   ══════════════════════════════════════════════════════════════════ */

/* ── Page Layout ─────────────────────────────────────────────── */

.feed-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

/* ── Header ──────────────────────────────────────────────────── */

.feed-header {
    margin-bottom: var(--space-6);
}

.feed-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 var(--space-4);
    line-height: var(--leading-tight);
}

/* ── Tabs ────────────────────────────────────────────────────── */

.feed-tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.feed-tab {
    padding: var(--space-2) var(--space-5);
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
}

.feed-tab:hover {
    color: var(--text-color);
}

.feed-tab--active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

/* ── Tab Panels ──────────────────────────────────────────────── */

.feed-tab-panel {
    display: none;
}

.feed-tab-panel--active {
    display: block;
}

/* ── Feed Grid ───────────────────────────────────────────────── */

.feed-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ── Feed Card ───────────────────────────────────────────────── */

.feed-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.feed-card--featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), var(--shadow-sm);
}

/* ── Featured Badge ──────────────────────────────────────────── */

.feed-card__badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--accent-color);
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    line-height: 1;
    z-index: 1;
}

/* ── Card Header ─────────────────────────────────────────────── */

.feed-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    padding-bottom: 0;
}

.feed-card__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.feed-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-card__avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    border-radius: var(--radius-full);
}

.feed-card__author {
    flex: 1;
    min-width: 0;
}

.feed-card__name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card__name:hover {
    color: var(--accent-color);
}

.feed-card__meta {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}

/* ── Card Body ───────────────────────────────────────────────── */

.feed-card__body {
    padding: var(--space-3) var(--space-4) var(--space-2);
}

.feed-card__caption {
    margin: 0 0 var(--space-3);
    color: var(--text-color);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    white-space: pre-line;
}

/* ── Recipe Preview ──────────────────────────────────────────── */

.feed-card__recipe-preview {
    display: flex;
    gap: var(--space-3);
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-speed);
}

.feed-card__recipe-preview:hover {
    background: var(--surface-tertiary);
}

.feed-card__recipe-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-card__recipe-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-3);
    min-width: 0;
}

.feed-card__recipe-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card__recipe-meta {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ── Photo ───────────────────────────────────────────────────── */

.feed-card__photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* ── Card Actions ────────────────────────────────────────────── */

.feed-card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* ── Like Button ─────────────────────────────────────────────── */

.feed-like-btn,
.feed-save-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.feed-like-btn:hover {
    color: var(--color-error);
    background: rgba(220, 38, 38, 0.08);
}

.feed-like-btn--active {
    color: var(--color-error);
}

.feed-save-btn:hover {
    color: var(--accent-color);
    background: var(--accent-muted);
}

.feed-save-btn--active {
    color: var(--accent-color);
}

.feed-like-btn__count,
.feed-save-btn__count {
    font-weight: 500;
}

/* ── Load More ───────────────────────────────────────────────── */

.feed-load-more {
    display: block;
    margin: var(--space-6) auto;
    min-width: 140px;
}

/* ── End Message ─────────────────────────────────────────────── */

.feed-end-message {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-8) 0;
    margin: 0;
}

/* ── Loading Spinner ─────────────────────────────────────────── */

.feed-loading {
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0;
}

.feed-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: var(--radius-full);
    animation: feed-spin 0.7s linear infinite;
}

@keyframes feed-spin {
    to { transform: rotate(360deg); }
}

/* ── Empty State ─────────────────────────────────────────────── */

.feed-empty {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.feed-empty__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 var(--space-2);
}

.feed-empty__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 0 var(--space-4);
}

.feed-empty__icon {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.feed-empty__cta {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background: var(--accent-color);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: opacity var(--transition-speed);
}

.feed-empty__cta:hover {
    opacity: 0.9;
}

/* ── Featured Badge Modifier ─────────────────────────────────── */

.feed-card__badge--featured {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-color);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ── Post Detail Page ───────────────────────────────────────── */

.post-detail {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.post-detail__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    transition: color var(--transition-speed);
}

.post-detail__back:hover {
    color: var(--text-color);
}

/* ══════════════════════════════════════════════════════════════════
   DISCOVER TAB — Editorial Sections
   ══════════════════════════════════════════════════════════════════ */

/* ── Elevation of the Week Spotlight ────────────────────────────── */

.discover-spotlight {
    margin-bottom: var(--space-8);
}

.discover-spotlight__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 var(--space-4);
}

.discover-spotlight__card {
    display: flex;
    gap: var(--space-6);
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.discover-spotlight__image {
    flex-shrink: 0;
    width: 280px;
}

.discover-spotlight__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discover-spotlight__content {
    flex: 1;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.discover-spotlight__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.discover-spotlight__caption {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    margin: 0;
    font-style: italic;
}

.discover-spotlight__desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.discover-spotlight__tiers {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.discover-spotlight__tier {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--surface-primary);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.discover-spotlight__tier:hover {
    box-shadow: var(--shadow-md);
}

.discover-spotlight__tier.tier--standard {
    border-color: var(--border-color);
}

.discover-spotlight__tier.tier--standard:hover {
    border-color: var(--text-muted);
}

.discover-spotlight__tier.tier--upgraded {
    border-color: #f59e0b;
}

.discover-spotlight__tier.tier--upgraded:hover {
    border-color: #d97706;
}

.discover-spotlight__tier.tier--elevated {
    border-color: #d4a843;
    background: linear-gradient(135deg, var(--surface-primary) 0%, #fdf8e8 100%);
}

.discover-spotlight__tier.tier--elevated:hover {
    border-color: #b8922f;
}

.discover-spotlight__tier-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.tier--upgraded .discover-spotlight__tier-label {
    color: #d97706;
}

.tier--elevated .discover-spotlight__tier-label {
    color: #b8922f;
}

.discover-spotlight__tier-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-spotlight__tier-meta {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ── Staff Picks ────────────────────────────────────────────────── */

.discover-picks {
    margin-bottom: var(--space-8);
}

.discover-picks__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 var(--space-4);
}

.discover-picks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.discover-picks__card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.discover-picks__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.discover-picks__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.discover-picks__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discover-picks__badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    background: var(--accent-color);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    line-height: 1;
}

.discover-picks__info {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.discover-picks__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-picks__cuisine {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ── Popular Right Now (Trending) ───────────────────────────────── */

.discover-trending {
    margin-bottom: var(--space-8);
}

.discover-trending__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 var(--space-4);
}

.discover-trending__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.discover-trending__card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-speed);
}

.discover-trending__card:hover {
    box-shadow: var(--shadow-md);
}

.discover-trending__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.discover-trending__info {
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.discover-trending__name {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-trending__badge-inline {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discover-trending__see-all {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.discover-trending__see-all:hover {
    text-decoration: underline;
}

/* ── Discover Editorial Responsive ──────────────────────────────── */

@media (max-width: 768px) {
    .discover-spotlight__card {
        flex-direction: column;
    }

    .discover-spotlight__image {
        width: 100%;
        height: 200px;
    }

    .discover-spotlight__tiers {
        flex-direction: column;
    }

    .discover-picks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover-trending__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .discover-picks__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-3);
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }

    .discover-picks__card {
        min-width: 200px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .discover-trending__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-3);
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }

    .discover-trending__card {
        min-width: 140px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* ── Compose Area ────────────────────────────────────────────── */

.feed-compose-area:empty {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .feed-page {
        padding: var(--space-4) var(--space-3);
    }

    .feed-header__title {
        font-size: var(--text-2xl);
    }

    .feed-card__header {
        padding: var(--space-3);
        padding-bottom: 0;
    }

    .feed-card__body {
        padding: var(--space-2) var(--space-3) var(--space-2);
    }

    .feed-card__actions {
        padding: var(--space-2) var(--space-3);
    }

    .feed-card__recipe-preview {
        flex-direction: column;
    }

    .feed-card__recipe-img {
        width: 100%;
        height: 160px;
    }

    .feed-card__badge {
        top: var(--space-2);
        right: var(--space-2);
    }
}

@media (max-width: 480px) {
    .feed-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    .feed-card__avatar {
        width: 36px;
        height: 36px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   COMPOSE BOX (added by 17-02)
   ══════════════════════════════════════════════════════════════════ */

/* ── Compose Container ───────────────────────────────────────────── */

.feed-compose {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

/* ── Collapsed Trigger ───────────────────────────────────────────── */

.feed-compose__trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-md);
    cursor: pointer;
    transition: background-color 0.15s;
}

.feed-compose__trigger:hover {
    background: var(--surface-secondary);
}

.feed-compose__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-compose__placeholder {
    color: var(--text-muted);
    flex: 1;
    font-size: var(--text-sm);
}

/* ── Expanded Form ───────────────────────────────────────────────── */

.feed-compose__expanded {
    padding: var(--space-md);
}

.feed-compose__tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-md);
    padding-bottom: 0;
}

.feed-compose__tab {
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.feed-compose__tab:hover {
    color: var(--text-color);
}

.feed-compose__tab--active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.feed-compose__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ── Recipe Search ───────────────────────────────────────────────── */

.feed-compose__recipe-search {
    position: relative;
}

.feed-compose__input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-primary);
    color: var(--text-color);
    font-size: var(--text-sm);
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.feed-compose__input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.feed-compose__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
}

.feed-compose__search-result {
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: background-color 0.1s;
}

.feed-compose__search-result:hover {
    background: var(--surface-secondary);
}

.feed-compose__result-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.feed-compose__result-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-compose__result-cuisine {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.feed-compose__search-empty {
    padding: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
}

.feed-compose__selected-recipe {
    margin-top: var(--space-2);
}

.feed-compose__selected-card {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.feed-compose__selected-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.feed-compose__selected-name {
    flex: 1;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-compose__selected-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 var(--space-1);
    line-height: 1;
    flex-shrink: 0;
}

.feed-compose__selected-remove:hover {
    color: var(--text-color);
}

/* ── Photo Upload ────────────────────────────────────────────────── */

.feed-compose__photo-upload {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.feed-compose__photo-btn {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.feed-compose__photo-label:hover .feed-compose__photo-btn {
    background: var(--surface-secondary);
    border-color: var(--accent-color);
}

.feed-compose__photo-preview {
    position: relative;
    display: inline-block;
}

.feed-compose__photo-preview img {
    display: block;
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feed-compose__photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.feed-compose__photo-remove:hover {
    color: var(--text-color);
    border-color: var(--text-color);
}

/* ── Caption + Footer ────────────────────────────────────────────── */

.feed-compose__textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-primary);
    color: var(--text-color);
    font-size: var(--text-sm);
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.feed-compose__textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.feed-compose__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feed-compose__char-count {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.feed-compose__actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.feed-compose__cancel {
    padding: var(--space-2) var(--space-3);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.feed-compose__cancel:hover {
    color: var(--text-color);
    border-color: var(--text-color);
}

.feed-compose__submit {
    padding: var(--space-2) var(--space-4);
    background: var(--accent-color);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.feed-compose__submit:hover:not(:disabled) {
    opacity: 0.9;
}

.feed-compose__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Success Toast ───────────────────────────────────────────────── */

.feed-compose__success {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #27ae60;
    color: #fff;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.feed-compose__success--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .feed-compose__trigger {
        padding: var(--space-3);
    }

    .feed-compose__expanded {
        padding: var(--space-3);
    }

    .feed-compose__selected-card {
        flex-wrap: wrap;
    }
}
