/* ============================================
   Feed / Fil d'actualités — Modern Dark Theme
   ============================================ */

/* Layout principal */
.feed-layout {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}

.feed-main {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

.feed-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .feed-sidebar { display: none; }
    .feed-main { max-width: 100%; }
}

/* ---- Composer (publier un post) ---- */
.feed-composer {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.feed-composer .composer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-composer .composer-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #eb5a3a;
    object-fit: cover;
}

.feed-composer .composer-header span {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.feed-composer textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    color: #fff !important;
    padding: 14px;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.feed-composer textarea:focus {
    border-color: #eb5a3a !important;
    outline: none;
}

.feed-composer .composer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.feed-composer .btn-publish {
    background: #eb5a3a;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-composer .btn-publish:hover {
    background: #d44d30;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 90, 58, 0.3);
}

/* ---- Feed Card (post générique) ---- */
.feed-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Card header (auteur + date) */
.feed-card .card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
}

.feed-card .card-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.feed-card .card-head .card-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(235, 90, 58, 0.15);
    border: 2px solid rgba(235, 90, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-card .card-head .card-head-icon i {
    color: #eb5a3a;
    font-size: 1rem;
}

.feed-card .card-head-info {
    flex: 1;
    min-width: 0;
}

.feed-card .card-head-info .author {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card .card-head-info .meta {
    color: #8899aa;
    font-size: 0.78rem;
    margin-top: 1px;
}

.feed-card .card-head .card-type-badge {
    background: rgba(235, 90, 58, 0.15);
    color: #eb5a3a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Card body */
.feed-card .card-body-content {
    padding: 0 20px 16px;
}

.feed-card .card-body-content p {
    color: #d0d8e0;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.feed-card .card-body-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

/* Card image */
.feed-card .card-image {
    width: 100%;
    max-height: 360px;
    overflow: hidden;
}

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

/* Card footer (date + actions) */
.feed-card .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-card .card-foot .card-date {
    color: #6b7f8e;
    font-size: 0.78rem;
}

.feed-card .card-foot .card-date i {
    margin-right: 4px;
}

.feed-card .card-foot .btn-read-more {
    color: #eb5a3a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(235, 90, 58, 0.3);
    transition: all 0.2s;
}

.feed-card .card-foot .btn-read-more:hover {
    background: rgba(235, 90, 58, 0.1);
    border-color: #eb5a3a;
    text-decoration: none;
}

/* ---- Match Card ---- */
.feed-card.feed-card--match .match-versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px 20px;
}

.feed-card.feed-card--match .match-team {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.feed-card.feed-card--match .match-team img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    object-fit: contain;
    margin-bottom: 8px;
}

.feed-card.feed-card--match .match-team .team-name {
    color: #d0d8e0;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card.feed-card--match .match-center {
    text-align: center;
    flex-shrink: 0;
    min-width: 80px;
}

.feed-card.feed-card--match .match-score {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.feed-card.feed-card--match .match-time {
    color: #eb5a3a;
    font-size: 1rem;
    font-weight: 700;
}

.feed-card.feed-card--match .match-vs {
    color: #5a6f80;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.feed-card.feed-card--match .match-info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px 4px;
    color: #6b7f8e;
    font-size: 0.78rem;
}

.feed-card.feed-card--match .match-info-line i {
    color: #eb5a3a;
    font-size: 0.7rem;
}

/* Challenge button */
.feed-card .btn-challenge {
    display: inline-block;
    background: transparent;
    color: #eb5a3a;
    border: 1px solid #eb5a3a;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.feed-card .btn-challenge:hover {
    background: #eb5a3a;
    color: #fff;
    text-decoration: none;
}

/* ---- Tournoi Card ---- */
.feed-card.feed-card--tournoi .tournoi-info {
    padding: 4px 20px 12px;
    color: #8899aa;
    font-size: 0.85rem;
}

/* ---- Transfert Card ---- */
.feed-card.feed-card--transfert .transfert-body {
    padding: 0 20px 16px;
}

.feed-card.feed-card--transfert .transfert-body p {
    color: #d0d8e0;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ---- Don Card ---- */
.feed-card.feed-card--don .don-body {
    padding: 0 20px 16px;
}

/* ---- Sidebar ---- */
.feed-sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.feed-sidebar-card h5 {
    color: #eb5a3a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Suggestion item */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.suggestion-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-item .suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-item .suggestion-info .suggestion-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item .suggestion-info .suggestion-type {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.suggestion-type--user { color: #e74c3c; }
.suggestion-type--club { color: #2ecc71; }
.suggestion-type--equipe { color: #3498db; }

.suggestion-item .btn-follow {
    background: transparent;
    color: #eb5a3a;
    border: 1px solid rgba(235, 90, 58, 0.4);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.suggestion-item .btn-follow:hover {
    background: #eb5a3a;
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.feed-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.feed-empty i {
    font-size: 3rem;
    color: #3a4f60;
    margin-bottom: 16px;
}

.feed-empty h4 {
    color: #8899aa;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feed-empty p {
    color: #5a6f80;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Coach alert */
.feed-alert {
    background: rgba(235, 90, 58, 0.08);
    border: 1px solid rgba(235, 90, 58, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-alert i {
    color: #eb5a3a;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feed-alert p {
    color: #d0d8e0;
    font-size: 0.9rem;
    margin: 0;
}

.feed-alert a {
    color: #eb5a3a;
    font-weight: 600;
}
