.msn-feed{
    max-width:680px;
    margin:auto;
}

.msn-create-post{
    max-width:680px;
    margin:0 auto 20px auto;
    display:flex;
    flex-direction:column;
    gap:8px;
    background:white;
    padding:15px;
    border-radius:12px;
    box-shadow:0 6px 20px rgb(114 114 114);
}

.msn-create-post textarea{
    width:100%;
    border:none;
    resize:none;
    padding:10px;
    font-size:15px;
    outline:none;
    min-height:60px;
}

.msn-create-post button{
    align-self:flex-end;
    background:#1877f2;
    color:white;
    border:none;
    padding:8px 15px;
    border-radius:6px;
    cursor:pointer;
}

.msn-post{
    background:white;
    border-radius:12px;
    margin-bottom:20px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
    overflow:hidden;
}

.msn-header{
    display:flex;
    justify-content:space-between;
    padding:12px;
}

.msn-user{
    display:flex;
    align-items:center;
    gap:10px;
}

.msn-user img{
    border-radius:50%;
}

.msn-title{
    padding:0 15px;
}

.msn-content{
    padding:0 15px 10px;
    color:#444;
}

.msn-actions{
    display:flex;
    justify-content:space-around;
    padding:10px;
    border-top:1px solid #eee;
    font-weight:600;
	align-items:center;
    gap:5px;
}

.msn-actions span{
    cursor:pointer;
    transition:0.2s;
}

.msn-actions span:hover{
    color:#1877f2;
    transform:scale(1.05);
}

.msn-video{
    position:relative;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    margin:10px 0;
}

.msn-video iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

.msn-comments{
    padding:10px;
    border-top:1px solid #eee;
}

.msn-comment{
    padding:5px 0;
    border-bottom:1px solid #eee;
}

.msn-add-comment{
    display:flex;
    gap:5px;
    margin-top:5px;
}

.msn-add-comment input{
    flex:1;
    padding:5px;
    border-radius:5px;
    border:1px solid #ccc;
}

.msn-add-comment button{
    padding:5px 10px;
    border:none;
    background:#1877f2;
    color:white;
    border-radius:5px;
    cursor:pointer;
}

.msn-load-more-wrap{
    text-align:center;
    margin:30px 0;
}

#msn_load_more{
    background:#ffffff;
    border:1px solid #ddd;
    padding:10px 25px;
    border-radius:25px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.2s ease;
    display:inline-flex;
    align-items:center;
    gap:10px;
}

#msn_load_more:hover{
    background:#f5f5f5;
    transform:translateY(-1px);
}

#msn_load_more:disabled{
    opacity:0.6;
    cursor:default;
}

.msn-spinner{
    width:16px;
    height:16px;
    border:2px solid #ddd;
    border-top:2px solid #444;
    border-radius:50%;
    animation:msn-spin 0.8s linear infinite;
}

@keyframes msn-spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

p {
    font-size: 14px;
    font-family: 'Manrope';
    font-weight: 600;
    line-height: 17px;
    color: #000000;
    margin-bottom: 20px;
}

.msn-image{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    overflow:hidden;
}

.msn-image img{
    max-width:100%;
    height:auto;
    display:block;
    cursor:pointer;
    transition: transform 0.3s ease;
}

.msn-image img:hover{
    transform:scale(1.03);
}

/* LIGHTBOX */
#msn-lightbox{
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

#msn-lightbox img{
    max-width:90%;
    max-height:90%;
    object-fit:contain;
    border-radius:10px;
}

.msn-close{
    position:absolute;
    top:20px; right:25px;
    font-size:30px;
    color:#fff;
    cursor:pointer;
    z-index:100000;
}

.msn-more-btn:hover{
    text-decoration:underline;
}

.msn-like{
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.msn-like-icon{
    font-size:16px;
    filter: grayscale(100%);
    opacity:0.6;
    transition:0.2s;
}

.msn-like.liked .msn-like-icon{
    filter: grayscale(0%);
    opacity:1;
    transform:scale(1.15);
}

.msn-edit-textarea{
    width:100%;
    min-height:80px;
    background:#3a3b3c;
    color:#e4e6eb;
    border:none;
    padding:10px;
    border-radius:8px;
    margin-bottom:5px;
}

.msn-save-edit{
    background:#1877f2;
    color:white;
    border:none;
    padding:5px 10px;
    border-radius:6px;
    cursor:pointer;
}

.msn-link-preview{
    margin-top:10px;
    border-radius:10px;
    overflow:hidden;
    background:#242526;
    border:1px solid #3a3b3c;
    cursor:pointer;
}

.msn-link-preview img{
    width:100%;
    max-height:220px;
    object-fit:cover;
}

.msn-link-info{
    padding:10px;
}

.msn-link-info strong{
    color:#e4e6eb;
    display:block;
    margin-bottom:5px;
}

.msn-link-info p{
    font-size:13px;
    color:#b0b3b8;
    margin-bottom:5px;
}

.msn-link-info span{
    font-size:12px;
    color:#8a8d91;
}

.msn-content a{
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
}
.msn-content a:hover{
    text-decoration: underline;
}

.msn-content {
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
}

/* <100 chars */
.msn-content.msn-big-text {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}

/* <50 chars */
.msn-content.msn-big-text-xl {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
}

.msn-content.msn-text-post {
    background-color: #000; /* μαύρο φόντο */
    color: #fff;            /* λευκό κείμενο */
    padding: 20px;
    border-radius: 12px;
    display: grid;  /* για να μην γεμίζει όλο το πλάτος */
    max-width: 100%;
    word-break: break-word;
    text-align: center;
}

.msn-content.msn-text-post.msn-big-text {
    font-size: 28px;
}

.msn-content.msn-text-post.msn-big-text-xl {
    font-size: 36px;
}

/* WRAPPER */
.msn-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* SIDEBAR */
.msn-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 15px;
    border-radius: 10px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.msn-sidebar img {
    width: 60px;
    border-radius: 50%;
}

.msn-sidebar h3 {
    margin: 10px 0 5px 0;
}

.msn-sidebar p {
    font-size: 14px;
    color: #555;
}

.msn-sidebar h4 {
    margin-top: 20px;
    font-size: 16px;
}

.msn-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.msn-sidebar ul li {
    padding: 5px 0;
    cursor: pointer;
    color: #007bff;
}

.msn-sidebar a {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
}

.msn-sidebar a:hover {
    text-decoration: underline;
}

/* MAIN FEED */
.msn-main-feed {
    flex-grow: 1;
}

@media screen and (max-width: 768px){
    .msn-wrapper {
        flex-direction: column;
    }
    .msn-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }
}

/* Κουμπί toggle - εμφανίζεται μόνο σε mobile */
#msn-sidebar-toggle {
    display: none;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Mobile responsive */
@media screen and (max-width: 768px){
    #msn-sidebar-toggle {
        display: block;
    }
    .msn-sidebar {
        display: none; /* κρύβεται από προεπιλογή */
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px){
    .msn-sidebar {
        display: none; /* κρυφό στην αρχή */
    }
    #msn-sidebar-toggle {
        display: block;
        background: #007bff;
        color: #fff;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
        border-radius: 5px;
        margin-bottom: 10px;
        cursor: pointer;
    }
}

/* WRAPPER */
.msn-wrapper {
    display: flex;
    gap: 20px;
}

/* SIDEBAR */
.msn-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 15px;
    border-radius: 10px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Toggle button mobile */
#msn-sidebar-toggle {
    display: none;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* MAIN FEED */
.msn-main-feed {
    flex-grow: 1;
}

/* Mobile responsive */
@media screen and (max-width: 768px){
    #msn-sidebar-toggle {
        display: block;
    }
    .msn-sidebar {
        display: none; /* κρύβεται αρχικά */
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }
    .msn-wrapper {
        flex-direction: column;
    }
}

/* Text-only posts με μαύρο φόντο */
.msn-text-post {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 15px;
}
.msn-big-text {
    font-size: 1.5em;
    font-weight: bold;
}
.msn-big-text-xl {
    font-size: 2em;
    font-weight: bold;
}

.msn-content{
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.msn-content p{
    margin: 0 0 12px;
}

.msn-content p:last-child{
    margin-bottom: 0;
}

.msn-text-post{
    background:#000;
    color:#fff;
    border-radius:15px;
    padding:30px;
    text-align:center;
}

.msn-big-text{
    font-size:32px;
    line-height:1.4;
    font-weight:600;
}

.msn-big-text p{
    font-size:32px;
    line-height:1.4;
    font-weight:600;
}

.msn-big-text-xl{
    font-size:48px;
    line-height:1.3;
    font-weight:700;
}

.msn-big-text-xl p{
    font-size:48px;
    line-height:1.3;
    font-weight:700;
}

.msn-text-post p{
    margin:0;
}

.msn-text-post *{
    color:#fff !important;
}

.msn-text-post{
    background:#000;
    color:#fff;
    border-radius:15px;
    padding:40px;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:220px;
}


#msn-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#msn-lightbox img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    position: relative;
}

#msn-lightbox {
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}

.msn-latest-box{
    background:#fff;
    border-radius:12px;
    padding:15px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.msn-latest-header{
    display:flex;
    justify-content:space-between;
    font-weight:bold;
    margin-bottom:10px;
}

.msn-latest-item{
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.msn-latest-user{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:600;
}

.msn-latest-text{
    font-size:14px;
    margin-top:5px;
}

.msn-view-all-btn{
    display:block;
    text-align:center;
    padding:10px;
    margin-top:10px;
    background:#1877f2;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
}

.msn-latest-item{
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* time πάνω δεξιά */
.msn-latest-time{
    position: absolute;
    top: 8px;
    right: 0;
    font-size: 11px;
    color: #888;
}

.msn-char-counter{
    text-align:right;
    font-size:11px;
    color:#666;
    margin-top:6px;
    transition:.2s;
}

.msn-char-counter.warning{
    color:#e53935;
    font-weight:700;
}

#msn_content{
    resize:vertical;
}