/* ==========================================================
   BIRDIENET - FIL D'ACTUALITÉ, PUBLICATIONS & AMIS
   ========================================================== */

/* Factorisation des blocs de type "carte" (posts, création, amis) */
.create-post, .post, .friend-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

/* ZONE DE CRÉation DE POST */
.create-post-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.create-post textarea {
    width: 100%;
    min-height: 90px;
    border: none;
    resize: none;
    font-size: 16px;
    background: #f4f5f7;
    padding: 18px;
    border-radius: 15px;
    margin-left: 15px;
}

.create-post textarea:focus {
    outline: none;
}

.create-post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.create-post-options button {
    background: #eef2f4;
    padding: 10px 18px;
    border-radius: 25px;
    transition: var(--transition);
}

.create-post-options button:hover {
    background: #dfe6ea;
}

.publish-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* STRUCTURE DES POSTS */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user h4 {
    margin: 0;
    color: var(--green-dark);
}

.post-user span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.post-menu {
    position: relative;
}

.post-options {
    position: absolute;
    right: 0;
    top: 35px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 50;
}

.post-options button {
    display: block;
    width: 150px;
    padding: 10px;
    background: var(--card-bg);
    text-align: left;
}

.post-options button:hover {
    background: #f0f2f5;
}

.post-content {
    font-size: 15px;
    margin: 15px 0;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
}

.post-video {
    height: 350px;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 50px;
}

.post-video iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: none;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    padding: 12px 0;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.post-actions button {
    flex: 1;
    background: transparent;
    color: #65676b;
    font-size: 15px;
    transition: var(--transition);
}

.post-actions button:hover {
    background: #f0f2f5;
    border-radius: 10px;
    color: var(--blue);
}

/* COMMENTAIRES */
.comments {
    margin-top: 20px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-box {
    background: #f0f2f5;
    border-radius: 18px;
    padding: 10px 15px;
}

.comment-box h5 {
    color: var(--green-dark);
    margin-bottom: 5px;
}

.comment-box p {
    font-size: 14px;
}

.comment-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.comment-input input {
    flex: 1;
    border: none;
    background: #f0f2f5;
    border-radius: 25px;
    padding: 12px 18px;
}

.comment-input input:focus {
    outline: none;
}

.golf-tag, .post-tag {
    display: inline-block;
    background: #e8f5e9;
    color: var(--green-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 10px;
}

.location-tag {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 10px;
}

/* CARTES AMIS */
.friend-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.friend-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green);
}

.friend-info {
    flex: 1;
}

.friend-info h3 {
    margin: 0;
    font-size: 20px;
}

.friend-info p {
    margin: 5px 0;
    color: var(--text-light);
}

.friend-info span {
    font-size: 14px;
    color: var(--green);
}

/* NOTIFICATIONS AMIS */
.notification-link {
    position: relative;
}

#friends-notification-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}