/* ============================================================
   MuGeBa Mitgliederbereich – Frontend Styles
   ============================================================ */

.mugeba-mb-wrap {
    font-family: -apple-system, 'Segoe UI', sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Header ── */
.mugeba-mb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border-radius: 16px 16px 0 0;
    padding: 20px 28px;
    gap: 16px;
}

.mugeba-mb-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mugeba-mb-logo {
    font-size: 28px;
    width: 48px; height: 48px;
    background: #ffffff18;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.mugeba-mb-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0 0 2px;
}

.mugeba-mb-user {
    font-size: 13px;
    color: #888;
    margin: 0;
    display: flex; align-items: center; gap: 8px;
}

.mugeba-mb-user strong { color: #ddd; }

.mugeba-mb-badge {
    background: #F9C623;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 2px 9px;
    border-radius: 99px;
    text-transform: uppercase;
}

.mugeba-mb-logout {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all .15s;
    white-space: nowrap;
}
.mugeba-mb-logout:hover { color: white; border-color: #666; }

/* ── Tabs ── */
.mugeba-mb-tabs {
    display: flex;
    background: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding: 0 20px;
    gap: 4px;
}

.mugeba-mb-tab {
    display: inline-block;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.mugeba-mb-tab:hover { color: #ddd; }
.mugeba-mb-tab.active { color: #F9C623; border-bottom-color: #F9C623; }

/* ── Content area ── */
.mugeba-mb-content {
    background: white;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e8e8e8;
    border-top: none;
    min-height: 400px;
    padding: 28px;
}

/* ── Breadcrumb ── */
.mugeba-mb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f8f7f4;
    border-radius: 8px;
}

.mugeba-mb-breadcrumb a { color: #1B6FD8; text-decoration: none; }
.mugeba-mb-breadcrumb a:hover { text-decoration: underline; }
.mugeba-mb-sep { color: #ccc; }
.mugeba-mb-current { color: #555; font-weight: 600; }

/* ── Folder cards ── */
.mugeba-mb-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.mugeba-mb-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px 16px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .18s;
    cursor: pointer;
}

.mugeba-mb-folder-card:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, .2);
}

.mugeba-mb-folder-icon { font-size: 32px; }
.mugeba-mb-folder-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.3;
}
.mugeba-mb-folder-count {
    font-size: 11px;
    color: #aaa;
}

/* ── File list ── */
.mugeba-mb-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mugeba-mb-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1.5px solid #ebebeb;
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}

.mugeba-mb-file-item:hover {
    border-color: #1B6FD8;
    box-shadow: 0 4px 16px rgba(27, 111, 216, .08);
    background: white;
}

.mugeba-mb-file-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.mugeba-mb-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mugeba-mb-file-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mugeba-mb-file-desc {
    font-size: 13px;
    color: #666;
}

.mugeba-mb-file-meta {
    font-size: 11px;
    color: #aaa;
}

.mugeba-mb-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1B6FD8;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, transform .15s;
}

.mugeba-mb-download-btn:hover {
    background: #1558b0;
    transform: translateY(-1px);
    color: white;
}

/* ── Empty state ── */
.mugeba-mb-empty {
    text-align: center;
    padding: 56px 24px;
    color: #aaa;
}
.mugeba-mb-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.mugeba-mb-empty p { font-size: 15px; }

/* ── News ── */
.mugeba-mb-news {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mugeba-mb-news-item {
    border: 1.5px solid #ebebeb;
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.mugeba-mb-news-thumb img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.mugeba-mb-news-body {
    padding: 20px 24px 24px;
}

.mugeba-mb-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mugeba-mb-news-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.3;
}

.mugeba-mb-news-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}
.mugeba-mb-news-content p { margin-bottom: 12px; }
.mugeba-mb-news-content p:last-child { margin-bottom: 0; }

/* ── Login wall ── */
.mugeba-mb-login-wall {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}

.mugeba-mb-login-box {
    background: white;
    border-radius: 20px;
    border: 1.5px solid #e8e8e8;
    padding: 40px 40px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 32px rgba(0,0,0,.06);
    text-align: center;
}

.mugeba-mb-login-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.mugeba-mb-login-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}

.mugeba-mb-login-box > p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

/* Style WP login form inside our box */
.mugeba-mb-login-box .login-username,
.mugeba-mb-login-box .login-password {
    margin-bottom: 14px;
    text-align: left;
}

.mugeba-mb-login-box label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    margin-bottom: 5px;
}

.mugeba-mb-login-box input[type="text"],
.mugeba-mb-login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s;
}

.mugeba-mb-login-box input:focus {
    border-color: #1B6FD8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 111, 216, .12);
}

.mugeba-mb-login-box input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1B6FD8;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: background .15s, transform .15s;
}

.mugeba-mb-login-box input[type="submit"]:hover {
    background: #1558b0;
    transform: translateY(-1px);
}

.mugeba-mb-login-box .login-remember label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 13px;
    color: #888;
    display: inline;
}

.mugeba-mb-login-hint {
    font-size: 13px;
    color: #aaa;
    margin-top: 16px !important;
}
.mugeba-mb-login-hint a { color: #1B6FD8; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .mugeba-mb-header { padding: 16px 18px; flex-wrap: wrap; }
    .mugeba-mb-content { padding: 18px 16px; }
    .mugeba-mb-folders { grid-template-columns: repeat(2, 1fr); }
    .mugeba-mb-download-btn { padding: 7px 12px; font-size: 12px; }
    .mugeba-mb-file-item { flex-wrap: wrap; }
    .mugeba-mb-login-box { padding: 28px 20px; }
}


/* ── Login: Dropdown & extras ── */

.mugeba-select-wrap {
    position: relative;
}

.mugeba-select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s;
    color: #111;
}

.mugeba-select:focus {
    border-color: #1B6FD8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27,111,216,.12);
}

.mugeba-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #aaa;
    font-size: 14px;
}

.mugeba-role-hint {
    font-size: 12px;
    color: #aaa;
    margin: 5px 0 0 2px;
    font-style: italic;
    text-align: left;
}

.mugeba-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mugeba-pw-wrap input {
    flex: 1;
    padding-right: 44px !important;
}

.mugeba-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: .5;
    transition: opacity .15s;
    padding: 0;
    line-height: 1;
}

.mugeba-pw-toggle:hover { opacity: 1; }

.mugeba-mb-login-error {
    background: #fff0f0;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #E8352A;
    margin-bottom: 18px;
    text-align: left;
}
