/* ************************************************************* */
/* FOREN-ANSICHTEN (Themenliste, Foren-Header & Tabellen-Styles) */
/* ************************************************************* */

/* Container & Header */
.sc-forum-container {
    width: 100%;
}

.sc-forum-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
}

.sc-forum-subtitle {
    font-size: 0.85rem;
    color: var(--light-color);
}

/* Filterleiste & Suche */
.sc-forum-filterbar {
    background-color: var(--box-secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
}

.sc-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 250px;
}

.sc-search-input-wrapper .search-icon {
    position: absolute;
    left: 10px;
    font-size: 0.8rem;
    color: var(--light-color);
    pointer-events: none;
}

.sc-search-input-wrapper input {
    padding-left: 30px !important;
}

/* Forentabelle - Layout & Spaltenbreiten */
.table-forum thead th {
    border-bottom: 2px solid var(--primary-color);
}

/* Spalte 'Thema' flexibel, der Rest schrumpft auf Minimalbreite */
.table-forum .sct-forum-topic-title {
    width: auto;
}

.table-forum .sct-forum-col-stats,
.table-forum .sct-forum-col-last-post,
.table-forum .sct-forum-col-admin {
    width: 1%;
    white-space: nowrap;
}

.table-forum th, 
.table-forum td {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Status-Icons & Indikatoren */
.sc-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.sc-status-icon.pin {
    color: var(--secondary-color);
}

.sc-status-icon.lock {
    color: var(--secondary-color);
}

.sc-topic-row.is-invisible {
    opacity: 0.3;
}

.topic-link {
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.topic-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.sc-topic-meta {
    font-size: 0.78rem;
    color: var(--light-color);
    margin-top: 2px;
}

/* Mini-Paginierung in Themenzeilen */
.sc-mini-pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

.mini-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.7rem;
    color: var(--text-main);
    text-decoration: none !important;
}

.mini-page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* User-Badges (Einheitliche Breite & Text-Cutoff) */
.user-badge-compact.mini {
    width: 160px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.user-badge-compact.mini .user-badge-info {
    min-width: 0;
    flex: 1;
}

.user-badge-compact.mini .user-badge-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


.fab-create-topic {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
	text-decoration: none !important;
}
.fab-create-topic:hover, .fab-create-topic:hover i {
	text-decoration: none !important;
}
/* Wird getriggert, sobald das Seitenende erreicht ist */
.fab-create-topic.is-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none; /* Macht ihn unklickbar solange er unsichtbar ist */
}

.sc-end-of-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px 0;
    color: var(--light-color);
    font-size: 0.82rem;
}

.sc-end-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color, rgba(255,255,255,0.1)), transparent);
    max-width: 150px;
}

.sc-end-text {
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.user-badge-link,
.user-badge-link:hover,
.user-badge-link:focus {
    text-decoration: none !important;
    color: inherit; /* Verhindert auch ungewollte Farbänderungen */
}

.scroll-page-badge {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: rgba(20, 20, 20, 0.85);
    color: var(--light-color, #fff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Klicks gehen durch */
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Lade-Indikator / Spinner */
.sc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    gap: 10px;
}

.sc-loader-text {
    font-size: 0.82rem;
    color: var(--light-color);
    font-weight: 500;
}

.sc-loader-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.sc-loader-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: sc-loader-bounce 1.4s infinite ease-in-out both;
}

.sc-loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.sc-loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes sc-loader-bounce {
    0%, 80%, 100% { 
        transform: scale(0); 
    } 
    40% { 
        transform: scale(1.0); 
    }
}

.d-none {
    display: none !important;
}

/* ************************************************************* */
/* RESPONSIVE DESIGN (FORUM)                                     */
/* ************************************************************* */

@media (max-width: 768px) {
    .sc-forum-container {
        overflow-x: hidden;
    }

    /* Forentabelle für kleine Bildschirme anpassen */
    .table-forum th, 
    .table-forum td {
        padding: 8px 6px !important;
    }

    /* Das User-Badge mobil kompakt & ohne Avatar rendern */
    .sc-topic-row .user-badge-compact.mini {
        width: fit-content !important;
        min-width: auto !important;
        padding: 3px 6px !important;
    }

    .sc-topic-row .user-badge-compact.mini .user-badge-avatar {
        display: none !important;
    }

    .sc-topic-row .user-badge-compact.mini .user-badge-info {
        padding-left: 0 !important;
    }

    .sc-topic-row .user-badge-compact.mini .user-badge-name {
        font-size: 0.75rem;
    }

    .sct-forum-col-last-post {
        width: auto !important;
        min-width: auto !important;
    }

    /* Titel & Meta-Zeilen anpassen */
    .topic-link {
        font-size: 0.88rem;
        word-break: break-word;
    }

    .sc-topic-meta {
        font-size: 0.72rem;
    }

    /* Paginierung mobil umbrechen */
    .sc-mini-pagination {
        display: flex;
        flex-wrap: wrap;
        margin-top: 4px;
        margin-left: 0;
    }
	
	.d-md-table-cell {
		display:none;
	}
}