/* ===============================
  FORUM - MODERN DESIGN
================================*/
.forum-wrapper {
    min-height: calc(100vh - var(--navbar-height));
    padding: calc(var(--navbar-height) + 2rem) 20px 2rem;
    background: var(--background);
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.forum-left,
.forum-right {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.forum-left h3,
.forum-right h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-200);
}

.group-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
    background: var(--surface);
    color: var(--text-color);
}

.group-search:focus {
    outline: none;
    border-color: var(--accent-600);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.group-list {
    list-style: none;
}

.group-list li {
    margin-bottom: 0.75rem;
}

.group-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.group-list a:hover,
.group-list a.active {
    background: var(--primary-100);
    color: var(--primary-700);
    transform: translateX(5px);
}

.group-list i {
    color: var(--primary-500);
    width: 20px;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    color: var(--text-light);
    text-align: center;
}

.show-comments-btn {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding: 10px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-count {
    font-size: 1rem;
}

/* --- TÖBB / KEVESEBB ÉS SZÖVEG TÖRDELÉS --- */
.text-container {
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.more-content {
    display: none;
}

.text-container.expanded .more-content {
    display: inline; 
}

.read-more-link {
    display: inline;
    margin-left: 4px;
    white-space: nowrap;
}

/* --- META ADATOK --- */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    color: var(--text-light);
    font-size: .9rem;
    margin-bottom: .6rem;
}

.article-badge {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: .25rem .55rem;
    border-radius: 999px;
    font-weight: 600;
}

.article-meta i {
    margin-right: .35rem;
    color: var(--text-light);
}

.new_group {
    display: flex;
    align-items: center;        
    justify-content: center;
    gap: 10px;                  
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.new_group:hover {
    background: var(--primary-100);
    color: var(--accent-600);
}

.login-warning {
    margin-top: 1rem;
}

/* ===== KÉP NAGYÍTÓ MODAL ===== */
.img-modal {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    max-width: none;
    max-height: none;
}

.img-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.img-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.img-modal-image {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.45);
    background: #111;
}

.img-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.img-modal-close:hover {
    background: rgba(0,0,0,0.6);
}

/* A teljes sor konténere */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;      /* Távolság a név és a dátum között */
}


.user-info {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.profile-avatar-image {
    display: block; 
    height: 30px;
    width: 30px;
    min-width: 30px; 
    border-radius: 50%;
    /*border: 1px solid grey;*/
    object-fit: cover;
    margin-right: 8px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px; 
    color: var(--text-color); 
}