/* =========================================================
   FLANGO USER PROFIL - user.inc.css
   ========================================================= */

.profile-page{
    width:100%;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

.profile-layout{
    display:flex;
    gap:12px;
    align-items:flex-start;
    width:100%;
    box-sizing:border-box;
}

.profile-card-left{
    width:170px;
    min-width:170px;
    max-width:170px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    padding:8px;
    text-align:center;
    overflow:hidden;
}

.profile-main{
    flex:1;
    min-width:0;
    box-sizing:border-box;
}

/* Profilbild */
.profile-card-avatar,
.profile-avatar{
    width:130px;
    height:130px;
    max-width:100%;
    object-fit:cover;
    border-radius:10px;
    border:4px solid #ff4bb8;
    background:#fff;
}

.profile-card-name{
    margin-top:8px;
    font-size:14px;
    font-weight:bold;
    color:#2f7fd0;
}

.profile-card-meta,
.profile-status{
    margin-top:8px;
    padding:7px;
    font-size:12px;
    line-height:1.45;
    text-align:left;
    background:#eef8ff;
    border:1px solid #d7eafd;
    border-radius:8px;
}

.profile-card-online,
.user-online{
    color:green;
    font-weight:bold;
}

.profile-card-offline,
.user-offline{
    color:#888;
    font-weight:bold;
}

/* Folgen Boxen */
.profile-follow-stats{
    display:flex;
    gap:6px;
    justify-content:center;
    margin-top:8px;
}

.profile-follow-stat{
    flex:1;
    display:block;
    box-sizing:border-box;
    padding:7px 4px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    color:#666;
    text-decoration:none;
    font-size:11px;
    font-weight:normal;
}

.profile-follow-stat span{
    display:block;
    color:#2f7fd0;
    font-size:20px;
    font-weight:bold;
    line-height:1;
    margin-bottom:3px;
}

.profile-follow-click{
    cursor:pointer;
}

.profile-follow-click:hover{
    background:#eef8ff;
}

/* Alle Buttons wie Chat starten */
.profile-card-actions,
.profile-actions{
    margin-top:8px;
}

.profile-card-actions a,
.profile-actions a,
.profile-follow-button{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin-bottom:7px;
    padding:9px 6px;
    font-size:12px;
    font-weight:bold;
    text-align:center;
    text-decoration:none;
    color:#fff !important;
    background:linear-gradient(135deg,#39a7ff,#2f6fff);
    border:0;
    border-radius:8px;
    line-height:1.25;
    box-shadow:0 2px 5px rgba(0,0,0,0.15);
}

.profile-card-actions a:hover,
.profile-actions a:hover,
.profile-follow-button:hover{
    filter:brightness(1.08);
}

/* Werbung */
.profile-card-ad,
.profile-ad{
    margin-top:8px;
    width:100%;
    min-height:80px;
    box-sizing:border-box;
    border:1px dashed #ffb5d8;
    border-radius:8px;
    background:#fff;
    overflow:hidden;
    font-size:12px;
    color:#666;
}

.profile-card-ad img,
.profile-ad img{
    max-width:100%;
    height:auto;
    display:block;
    border-radius:8px;
}

.profile-ad-placeholder{
    padding:16px 5px;
    font-size:13px;
    font-weight:bold;
    line-height:1.35;
}

/* Tabs */
.profile-tabs{
    display:flex;
    align-items:flex-end;
    gap:3px;
    width:100%;
    margin:0 0 10px;
    padding:0;
    overflow-x:auto;
    white-space:nowrap;
    border-bottom:1px solid #d8d8d8;
    box-sizing:border-box;
}

.profile-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:70px;
    min-height:28px;
    padding:5px 9px;
    font-size:12px;
    font-weight:bold;
    color:#444;
    text-decoration:none;
    background:#fafafa;
    border:1px solid #d7d7d7;
    border-bottom:none;
    border-radius:7px 7px 0 0;
    box-sizing:border-box;
}

.profile-tabs a:hover,
.profile-tabs a.active{
    background:#2f7fd0;
    color:#fff;
    border-color:#2f7fd0;
}

/* Inhalte */
.profile-content{
    width:100%;
    box-sizing:border-box;
}

.profile-section{
    display:none;
}

.profile-section.active{
    display:block;
}

.wall-box,
.wall-post{
    width:100%;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    padding:12px;
    margin-bottom:12px;
    font-size:14px;
    line-height:1.45;
}

.wall-box h3,
.wall-post h3{
    margin:0 0 10px;
    font-size:17px;
    color:#2f7fd0;
}

.wall-form textarea{
    width:100%;
    min-height:90px;
    box-sizing:border-box;
    padding:9px;
    font-size:14px;
    border:1px solid #ccc;
    border-radius:8px;
}

.wall-form input[type=text],
.wall-comment-form input[name=kommentar]{
    width:100%;
    box-sizing:border-box;
    padding:8px;
    font-size:14px;
    border:1px solid #ccc;
    border-radius:8px;
}

.file-row{
    margin:8px 0;
}

.file-row input[type=file]{
    display:none;
}

.file-label{
    display:inline-block;
    padding:8px 12px;
    color:#fff;
    background:#2f7fd0;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
}

.file-name{
    display:inline-block;
    margin-left:6px;
    font-size:12px;
    color:#666;
}

.formbutton,
input[type=submit]{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:10px;
    border:0;
    border-radius:8px;
    background:#2f7fd0;
    color:#fff;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.wall-post-head{
    display:flex;
    justify-content:space-between;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:8px;
}

.wall-post-author{
    font-size:15px;
    font-weight:bold;
    color:#2f7fd0;
}

.wall-post-date{
    font-size:12px;
    color:#888;
    margin-left:5px;
}

.wall-image{
    max-width:100%;
    height:auto;
    border-radius:8px;
    margin:8px 0;
}

.wall-video{
    width:100%;
    aspect-ratio:16/9;
    margin:8px 0;
}

.wall-video iframe{
    width:100%;
    height:100%;
    border:0;
    border-radius:8px;
}

.wall-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    border-top:1px solid #eee;
    padding-top:8px;
    margin-top:8px;
}

.wall-action{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:6px 9px;
    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:20px;
    text-decoration:none;
    color:#555;
    font-size:13px;
    font-weight:bold;
}

.wall-action.like-on{
    color:#d40000;
    border-color:#ffb3b3;
    background:#fff5f5;
}

.comments-list{
    margin-top:10px;
}

.wall-comment{
    background:#f7f7f7;
    padding:8px;
    margin-bottom:7px;
    border-radius:8px;
    font-size:13px;
    line-height:1.35;
    border-left:4px solid #2f7fd0;
}

.wall-comment-form{
    margin-top:10px;
}

.wall-comment-form input[type=submit]{
    margin-top:7px;
}

/* Mobil */
@media(max-width:700px){
    .profile-layout{
        gap:8px;
    }

    .profile-card-left{
        width:130px;
        min-width:130px;
        max-width:130px;
        padding:6px;
    }

    .profile-card-avatar,
    .profile-avatar{
        width:100px;
        height:100px;
    }

    .profile-card-meta,
    .profile-status{
        font-size:11px;
        padding:6px;
    }

    .profile-card-actions a,
    .profile-actions a,
    .profile-follow-button{
        font-size:11px;
        padding:8px 4px;
    }

    .profile-tabs a{
        min-width:58px;
        font-size:10px;
        padding:5px 6px;
    }

    .wall-box,
    .wall-post{
        padding:10px;
        font-size:13px;
    }
}

@media(max-width:430px){
    .profile-layout{
        gap:6px;
    }

    .profile-card-left{
    width:95px;
    min-width:95px;
    max-width:95px;
    padding:4px;
}

    .profile-card-avatar,
.profile-avatar{
    width:78px;
    height:78px;
}

    .profile-card-name{
        font-size:12px;
    }

    .profile-card-meta,
    .profile-status{
        font-size:10px;
        padding:5px;
    }

    .profile-follow-stat{
        font-size:10px;
        padding:6px 3px;
    }

    .profile-follow-stat span{
        font-size:18px;
    }

    .profile-card-actions a,
    .profile-actions a,
    .profile-follow-button{
        font-size:10px;
        padding:7px 3px;
        margin-bottom:6px;
    }

    .profile-ad-placeholder{
        font-size:10px;
        padding:12px 3px;
    }

    .profile-tabs a{
    min-width:46px;
    font-size:8px;
    padding:4px 4px;
}

    .wall-box h3,
    .wall-post h3{
        font-size:15px;
    }

    .file-label{
        width:100%;
        box-sizing:border-box;
        text-align:center;
    }

    .file-name{
        display:block;
        margin:5px 0 0;
    }
    .profile-button{
    display:block;
    width:100%;
    margin-bottom:8px;
    padding:10px;
    box-sizing:border-box;
    text-align:center;
    text-decoration:none;
    font-size:13px;
    font-weight:bold;
    color:#fff !important;
    background:#2f7fd0;
    border-radius:10px;
}

.profile-button:hover{
    background:#2468ac;
}
.profile-card-actions a,
.profile-card-actions a:nth-child(1),
.profile-card-actions a:nth-child(2),
.profile-card-actions a:nth-child(3),
.profile-card-actions a:nth-child(4),
.profile-actions a,
.profile-actions a:nth-child(1),
.profile-actions a:nth-child(2),
.profile-actions a:nth-child(3),
.profile-actions a:nth-child(4){
    background:#2f7fd0 !important;
    color:#fff !important;
}
}