/**
 * Balto Forum - Frontend CSS
 */

/* Allgemeine Stile */
.balto-forum {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    margin-bottom: 2rem;
    background-color: #F0E2D1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-header h2 {
    font-family: 'Roboto Black', 'Roboto', sans-serif;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    font-size: 24px;
}

.balto-forum a {
    color: #672A2B;
    text-decoration: none;
    transition: color 0.2s;
}

.balto-forum a:hover {
    color: #B24B48;
    text-decoration: underline;
}

.balto-forum-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.balto-forum-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.balto-forum-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.balto-forum-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

/* Buttons */
.balto-forum-button,
.balto-forum a.balto-forum-button,
.balto-forum-category a.balto-forum-button,
.balto-forum-form button.balto-forum-button,
.balto-forum-actions a.balto-forum-button,
.balto-forum-more-topics a.balto-forum-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000;
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
    width: auto;
}

.balto-forum-button:hover,
.balto-forum a.balto-forum-button:hover,
.balto-forum-category a.balto-forum-button:hover,
.balto-forum-form button.balto-forum-button:hover,
.balto-forum-actions a.balto-forum-button:hover,
.balto-forum-more-topics a.balto-forum-button:hover {
    background-color: #333;
    color: #FFFFFF !important;
    text-decoration: none;
}

.balto-forum-button.secondary {
    background-color: #555;
    color: #fff;
    border: 1px solid #444;
}

/* Breadcrumbs */
.balto-forum-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.balto-forum-breadcrumbs a {
    color: #672A2B;
}

.balto-forum-breadcrumbs span {
    margin: 0 5px;
}

.balto-forum-breadcrumbs a:hover {
    color: #B24B48;
}

/* Forumübersicht - Grid Layout */
.balto-forum-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.balto-forum-category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.balto-forum-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.balto-forum-category-link {
    display: block;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.balto-forum-category-link:hover {
    text-decoration: none !important;
}

.balto-forum-category-header {
    padding: 12px 15px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.balto-forum-category-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #672B2B;
    font-size: 130%;
}

.balto-forum-category-description {
    margin-top: 5px;
    color: #777;
    font-size: 14px;
}

.balto-forum-category-content {
    padding: 15px;
    background-color: #F9F5F0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.balto-forum-topics-count {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

/* Vorhandene Kategorie-Stile - für Abwärtskompatibilität */
.balto-forum-categories {
    margin-bottom: 30px;
}

.balto-forum-category {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-category-title a {
    color: #672B2B;
    font-size: 130%;
}

.balto-forum-category-title a:hover {
    color: #B24B48;
}

.balto-forum-category-description {
    margin-top: 5px;
    color: #777;
    font-size: 14px;
}

.balto-forum-category-content {
    padding: 15px;
    background-color: #F9F5F0;
}

.balto-forum-subcategories {
    margin-bottom: 15px;
}

.balto-forum-subcategory {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.balto-forum-subcategory:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.balto-forum-subcategory-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.balto-forum-subcategory-description {
    color: #777;
    font-size: 13px;
}

.balto-forum-topics-count {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

/* Themenübersicht */
.balto-forum-topics {
    margin-top: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-topics-header {
    display: flex;
    padding: 10px 15px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
}

.balto-forum-topics-header-title {
    flex: 3;
    font-size: 16px;
    font-weight: bold;
}

.balto-forum-topics-header-author {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.balto-forum-topics-header-replies {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.balto-forum-topics-header-views {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.balto-forum-topics-header-last-post {
    flex: 2;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.balto-forum-topic {
    display: flex;
    padding: 12px 15px;
    background-color: #F9F5F0;
    border-bottom: 1px solid #e0e0e0;
}

.balto-forum-topic:last-child {
    border-bottom: none;
}

.balto-forum-topic-title {
    flex: 3;
    font-weight: 600;
    font-size: 18px;
    color: #672B2B;
}

.balto-forum-topic-title a {
    font-weight: 600;
    font-size: 18px;
    color: #672B2B;
}

.balto-forum-topic-title a:hover {
    color: #B24B48;
}

.balto-forum-topic-author,
.balto-forum-reply-author {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 10px;
}

.balto-forum-topic-author {
    flex: 1;
    text-align: center;
    color: #777;
    font-size: 16px;
}

.balto-forum-topic-replies {
    flex: 1;
    text-align: center;
    color: #777;
    font-size: 16px;
}

.balto-forum-topic-views {
    flex: 1;
    text-align: center;
    color: #777;
    font-size: 16px;
}

.balto-forum-topic-last-post {
    flex: 2;
    text-align: center;
    color: #777;
    font-size: 16px;
}

.balto-forum-sticky-icon {
    margin-right: 5px;
    color: #672A2B;
}

/* Beitragsdetails */
.balto-forum-topic-detail {
    margin-bottom: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-topic-detail-header {
    padding: 10px 12px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.balto-forum-topic-detail-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #672B2B;
}

.balto-forum-topic-meta {
    color: #777;
    font-size: 13px;
}

.balto-forum-topic-detail-content {
    padding: 12px;
    background-color: #F9F5F0;
}

.balto-forum-author-avatar {
    margin-right: 15px;
}

.balto-forum-author-avatar img {
    border-radius: 50%;
}

.balto-forum-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    color: #777;
}

.balto-forum-author-name {
    font-weight: normal;
    color: #672B2B;
    margin-right: 0;
    margin-bottom: 0;
}

.balto-forum-post-date {
    color: #777;
    margin-top: 0;
}

.balto-forum-topic-content {
    line-height: 1.4;
    color: #333;
    margin-bottom: 5px;
    font-size: 17px;
}

.balto-forum-topic-content p {
    margin-top: 0;
    margin-bottom: 8px;
}

.balto-forum-topic-author {
    margin-top: 5px;
}

/* Antworten */
.balto-forum-replies {
    margin-top: 10px;
    background-color: #F9F5F0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.balto-forum-replies-header {
    margin: 0;
    padding: 6px 12px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    color: #672B2B;
}

.balto-forum-replies-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.balto-forum-reply-item {
    padding: 6px 12px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.balto-forum-reply-item:last-child {
    border-bottom: none;
}

.balto-forum-reply-content {
    line-height: 1.4;
    color: #333;
    margin-bottom: 3px;
    font-size: 17px;
}

.balto-forum-reply-content p {
    margin-top: 0;
    margin-bottom: 6px;
}

.balto-forum-reply-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    color: #777;
}

.balto-forum-reply-meta .balto-forum-author-name {
    font-weight: normal;
    color: #672B2B;
    margin-bottom: 0;
}

.balto-forum-reply-meta .balto-forum-post-date {
    color: #777;
    margin-top: 0;
}

/* Formular */
.balto-forum-form {
    margin-top: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    background-color: #F9F5F0;
}

.balto-forum-form-header {
    padding: 8px 12px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #672B2B;
}

.balto-forum-form form {
    padding: 12px;
    background-color: #F9F5F0;
}

.balto-forum-form-row {
    margin-bottom: 12px;
    width: 100%;
}

.balto-forum-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.balto-forum-form-input,
.balto-forum-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #E0C3A0;
}

.balto-forum-form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #E0C3A0;
    box-sizing: border-box;
}

.balto-forum-form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
}

.balto-forum-form-error {
    color: #a94442;
    margin-top: 5px;
    font-size: 13px;
}

/* Media Queries für Responsive Design */
@media (max-width: 768px) {
    .balto-forum-topics-header {
        display: none;
    }
    
    .balto-forum-topic {
        flex-direction: column;
        padding: 12px;
    }
    
    .balto-forum-topic-title,
    .balto-forum-topic-author,
    .balto-forum-topic-replies,
    .balto-forum-topic-views,
    .balto-forum-topic-last-post {
        width: 100%;
        padding: 5px 0;
    }
    
    .balto-forum-topic-title {
        font-size: 16px;
    }
    
    .balto-forum-topic-author:before {
        content: "";
        font-weight: 600;
    }
    
    .balto-forum-topic-replies:before {
        content: "Antworten: ";
        font-weight: 600;
    }
    
    .balto-forum-topic-views:before {
        content: "Aufrufe: ";
        font-weight: 600;
    }
    
    .balto-forum-topic-last-post:before {
        content: "Letzter Beitrag: ";
        font-weight: 600;
    }
    
    .balto-forum-topic-detail-title {
        font-size: 18px;
    }
    
    .balto-forum-topic-detail-content,
    .balto-forum-reply {
        padding: 10px;
    }
    
    .balto-forum-author-info {
        margin-left: 0;
    }
    
    .balto-forum-reply-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .balto-forum-reply-meta .balto-forum-post-date {
        margin-top: 0;
    }
    
    .balto-forum-author-name {
        margin-right: 0;
    }
    
    .balto-forum-form form {
        padding: 10px;
    }
    
    .balto-forum-form-textarea {
        min-height: 120px;
        border-radius: 0;
    }
    
    .balto-forum-button {
        width: 100%;
        padding: 10px;
    }
    
    .balto-forum {
        padding: 15px;
        border-radius: 10px;
    }
    
    .balto-forum-category-header,
    .balto-forum-topics-header,
    .balto-forum-topic-detail-header {
        padding: 10px;
    }
    
    .balto-forum-breadcrumbs {
        margin-bottom: 15px;
        font-size: 13px;
    }
    
    /* Einheitliches Erscheinungsbild für Replies und Form */
    .balto-forum-replies,
    .balto-forum-form {
        border-radius: 0;
        box-shadow: none;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .balto-forum-reply-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .balto-forum-reply-meta .balto-forum-post-date {
        margin-top: 0;
    }
    
    .balto-forum-author-name {
        margin-right: 0;
    }
    
    /* Reduzierte Abstände für mobile Ansicht */
    .balto-forum-reply-item {
        padding: 4px 10px;
    }
    
    .balto-forum-reply-content {
        margin-bottom: 2px;
    }
    
    .balto-forum-reply-content p {
        margin-bottom: 4px;
    }
    
    .balto-forum-topic-detail {
        margin-bottom: 8px;
    }
    
    .balto-forum-replies {
        margin-top: 8px;
    }
    
    .balto-forum-form {
        margin-top: 8px;
    }
    
    .balto-forum-replies-header {
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    /* Noch weitere Optimierungen für sehr kleine Displays */
    .balto-forum-topic-detail-header {
        padding: 12px;
    }
    
    .balto-forum-category-header {
        padding: 10px;
    }
    
    .balto-forum-category-content {
        padding: 10px;
    }
    
    .balto-forum-topic-meta {
        font-size: 12px;
    }
    
    .balto-forum-replies-header {
        font-size: 16px;
    }
    
    .balto-forum-author-name {
        font-size: 14px;
    }
    
    .balto-forum-post-date {
        font-size: 12px;
    }
}

/* Kategorienseite Header-Styling */
.balto-forum-header h2 {
    color: #000;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Button auf der Kategorienseite */
.balto-forum-actions {
    margin-bottom: 20px;
}

/* Breadcrumbs für Kategorienseite */
.balto-forum-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.balto-forum-breadcrumbs a {
    color: #672A2B;
}

/* Button-Styling für "Neues Thema erstellen" */
.balto-forum-button {
    padding: 10px 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Neueste Themen Stil */
.balto-forum h3.neueste-themen {
    font-size: 16px;
    color: #672B2B;
    margin-top: 14px;
    margin-bottom: 7px;
    font-weight: normal;
}

.balto-forum h3.neueste-themen a:hover {
    color: #B24B48;
}

/* Themenliste */
.balto-forum .themen-liste {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    padding-left: 20px;
}

.balto-forum .themen-liste li {
    margin-bottom: 6px;
}

.balto-forum .themen-liste a:hover {
    color: #B24B48;
}

/* Kacheldarstellung der Themen in der Kategorie-Ansicht */
.balto-forum-topics-container {
    margin-top: 20px;
}

.balto-forum-topic-card {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-topic-card-header {
    padding: 15px;
    background-color: #F8F1E8;
    border-bottom: 1px solid #e5e5e5;
}

.balto-forum-topic-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.balto-forum-topic-card-title a {
    color: #672B2B;
}

.balto-forum-topic-card-title a:hover {
    color: #B24B48;
}

.balto-forum-topic-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

.balto-forum-topic-card-footer {
    padding: 10px 15px;
    background-color: #F9F5F0;
    font-size: 14px;
    color: #777;
}

/* Media Queries für Responsive Design */
@media (max-width: 768px) {
    .balto-forum-topic-card-meta {
        flex-direction: column;
    }
    
    .balto-forum-topic-card-stats {
        margin-top: 5px;
    }
    
    .balto-forum-reply-meta {
        flex-direction: column;
    }
    
    .balto-forum-reply-meta .balto-forum-post-date {
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .balto-forum-reply-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .balto-forum-reply-meta .balto-forum-post-date {
        margin-top: 2px;
    }
    
    .balto-forum-author-name {
        margin-right: 0;
    }
    
    .balto-forum-form {
        border-radius: 0;
        box-shadow: none;
    }
    
    .balto-forum-form-textarea {
        border-radius: 0;
    }
}

/* Statusmeldung nach dem Button nur anzeigen, wenn nicht leer */
.balto-forum-submit-status:empty {
    display: none;
}

/* Media Queries für Grid-Layout */
@media (max-width: 992px) {
    .balto-forum-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .balto-forum-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Suchfunktion */
.balto-forum-search {
    margin-bottom: 20px;
}

.balto-forum-search-form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.balto-forum-search-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
}

.balto-forum-search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #E0C3A0;
}

.balto-forum-search-button {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 16px;
    padding: 10px 12px;
    cursor: pointer;
    color: #672A2B;
}

.balto-forum-search-icon {
    display: inline-block;
}

/* Suchergebnisse */
.balto-forum-search-results-header {
    margin-bottom: 15px;
}

.balto-forum-search-results-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.balto-forum-search-results-count {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.balto-forum-search-result-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.balto-forum-search-result-type {
    display: inline-block;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.balto-forum-search-result-type-topic {
    background-color: #E8F4F8;
    color: #2980b9;
}

.balto-forum-search-result-type-reply {
    background-color: #F8F4E8;
    color: #e67e22;
}

.balto-forum-search-result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.balto-forum-search-result-title a {
    color: #672B2B;
}

.balto-forum-search-result-title a:hover {
    color: #B24B48;
}

.balto-forum-search-result-excerpt {
    margin-bottom: 10px;
    line-height: 1.5;
}

.balto-forum-search-highlight {
    background-color: #ffffcc;
    font-weight: bold;
    padding: 0 2px;
}

.balto-forum-search-result-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.balto-forum-search-result-category {
    color: #672B2B;
}

.balto-forum-search-result-author {
    margin-right: 10px;
}

.balto-forum-search-no-results {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* Responsive Anpassungen für Suchfunktion */
@media (max-width: 576px) {
    .balto-forum-search-input {
        font-size: 14px;
        padding: 8px 36px 8px 10px;
    }
    
    .balto-forum-search-button {
        padding: 8px 10px;
    }
    
    .balto-forum-search-result-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Benutzersuche-Styles */
.balto-forum-user-search-info {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #F0F7FF;
    border: 1px solid #B0D4FF;
    border-radius: 6px;
}

.balto-forum-user-badge {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 4px;
    background-color: #672A2B;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.balto-forum-author-highlight {
    color: #672A2B;
    font-weight: bold;
    background-color: #FFE8C8;
    padding: 1px 4px;
    border-radius: 3px;
} 