/* ═══════════════════════════════════════════════════════════
   ZL LFG Board – Steam-Theme CSS
   Passt nahtlos ins bestehende Zocker-Loge Theme
═══════════════════════════════════════════════════════════ */

/* ─── Page Wrapper ─── */
.lfg-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ─── Hero ─── */
.lfg-hero {
    text-align: center;
    padding: 50px 20px 40px;
    margin-bottom: 20px;
    border-radius: 3px;
    background: linear-gradient(135deg, #1b2838 0%, #0d1117 60%, #1a2332 100%);
    border: 1px solid #2a475e;
    position: relative;
    overflow: hidden;
}

.lfg-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a9fff, #66c0f4, #a3cf06);
}

.lfg-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #e1e1e1;
    margin: 0 0 10px 0;
}

.lfg-hero-sub {
    font-size: 16px;
    margin: 0;
}

/* ─── Stats Bar ─── */
.lfg-stats-bar {
    display: flex;
    gap: 1px;
    margin-bottom: 20px;
    background: #2a475e;
    border: 1px solid #2a475e;
    border-radius: 3px;
    overflow: hidden;
}

.lfg-stat {
    flex: 1;
    padding: 15px 20px;
    background: #1b2838;
    text-align: center;
    transition: background 0.2s;
}

.lfg-stat:hover {
    background: #223345;
}

.lfg-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #66c0f4;
    line-height: 1;
}

.lfg-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #556772;
    margin-top: 4px;
}

/* ─── Filter Bar ─── */
.lfg-filter-bar {
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lfg-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.lfg-tab-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2a475e;
    border-radius: 2px;
    color: #8f98a0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.lfg-tab-btn:hover {
    background: rgba(102, 192, 244, 0.1);
    border-color: #66c0f4;
    color: #66c0f4;
}

.lfg-tab-btn.active {
    background: rgba(102, 192, 244, 0.15);
    border-color: #66c0f4;
    color: #66c0f4;
}

.lfg-game-filter select {
    min-width: 200px;
}

/* ─── Cards Grid ─── */
.lfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

/* ─── Single Card ─── */
.lfg-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    background: #1b2838;
    border: 1px solid #2a475e;
}

.lfg-card:hover {
    transform: translateY(-3px);
    border-color: #66c0f4;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.lfg-card-game-bg {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background-size: cover;
    background-position: center top;
    opacity: 0.15;
    filter: blur(4px);
}

.lfg-card-inner {
    position: relative;
    z-index: 1;
    padding: 18px;
}

.lfg-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 2px;
    border: 1px solid;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.lfg-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.lfg-card-title a {
    color: #e1e1e1;
    text-decoration: none;
    transition: color 0.2s;
}

.lfg-card-title a:hover {
    color: #66c0f4;
}

.lfg-clan-name {
    color: #e1ca28;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.lfg-game-tag {
    color: #66c0f4;
    font-size: 12px;
    margin-bottom: 8px;
}

.lfg-card-desc {
    color: #8f98a0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.lfg-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.lfg-meta-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid #2a475e;
    color: #8f98a0;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    white-space: nowrap;
}

.lfg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.lfg-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lfg-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lfg-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 3px;
    object-fit: cover;
    border: 2px solid #2a475e;
    flex-shrink: 0;
}

/* ─── Load More ─── */
.lfg-load-more-wrap {
    text-align: center;
    margin: 20px 0 40px;
}

/* ─── Empty State ─── */
.lfg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #556772;
    font-size: 16px;
}

/* ─── Alerts ─── */
.lfg-alert {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.lfg-alert-success {
    background: rgba(163, 207, 6, 0.1);
    color: #a3cf06;
    border-left: 3px solid #a3cf06;
}

.lfg-alert-error {
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    border-left: 3px solid #ff4b4b;
}

.lfg-alert-warning {
    background: rgba(225, 202, 40, 0.1);
    color: #e1ca28;
    border-left: 3px solid #e1ca28;
}

/* ─── Submit Form ─── */
.lfg-submit-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.lfg-submit-header {
    padding: 20px;
    margin-bottom: 15px;
}

.lfg-form {
    padding: 25px;
}

.lfg-form-section {
    margin-bottom: 22px;
}

.lfg-form-label {
    display: block;
    color: #afafaf;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.lfg-form-label .req {
    color: #ff4b4b;
}

.lfg-input,
.lfg-select,
.lfg-textarea {
    width: 100%;
    background: #101822;
    border: 1px solid #2a475e;
    color: #e1e1e1;
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.lfg-input:focus,
.lfg-select:focus,
.lfg-textarea:focus {
    border-color: #66c0f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.1);
}

.lfg-textarea {
    resize: vertical;
    min-height: 100px;
}

.lfg-char-hint {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #556772;
    margin-top: 4px;
}

/* Type Selector */
.lfg-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lfg-type-option {
    cursor: pointer;
}

.lfg-type-option input[type="radio"] {
    display: none;
}

.lfg-type-card {
    padding: 18px;
    border: 2px solid #2a475e;
    border-radius: 3px;
    background: #101822;
    text-align: center;
    transition: all 0.2s;
}

.lfg-type-card:hover {
    border-color: #66c0f4;
    background: rgba(102, 192, 244, 0.05);
}

.lfg-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.lfg-type-title {
    font-size: 13px;
    font-weight: 700;
    color: #e1e1e1;
    margin-bottom: 6px;
}

.lfg-type-desc {
    font-size: 11px;
    line-height: 1.4;
}

.lfg-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.lfg-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #8f98a0;
}

.lfg-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #2a475e;
    margin-top: 10px;
}

/* ─── Single Listing ─── */
.lfg-single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.lfg-single-header {
    padding: 20px;
}

.lfg-author-card {
    padding: 18px;
}

.lfg-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lfg-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lfg-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}

.lfg-detail-key {
    color: #556772;
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 10px;
}

.lfg-content-body {
    color: #acb2b8;
    line-height: 1.8;
    font-size: 14px;
}

/* ─── Requests List ─── */
.lfg-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lfg-request-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lfg-request-row:last-child {
    border-bottom: none;
}

.lfg-request-info {
    flex: 1;
}

.lfg-request-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.lfg-status-badge {
    font-size: 11px;
    display: block;
    margin-bottom: 5px;
    text-align: right;
}

/* ─── Inbox ─── */
.lfg-inbox-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.lfg-inbox-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #2a475e;
}

.lfg-inbox-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #8f98a0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lfg-inbox-tab:hover {
    color: #66c0f4;
}

.lfg-inbox-tab.active {
    color: #66c0f4;
    border-bottom-color: #66c0f4;
}

.lfg-tab-content {
    padding: 20px;
}

.lfg-mylist-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lfg-mylist-row:last-child {
    border-bottom: none;
}

/* ─── Nav Badge ─── */
.lfg-nav-badge {
    background: #ff4b4b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

/* ─── Fade In Animation ─── */
@keyframes lfgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lfg-card.fade-in {
    animation: lfgFadeIn 0.3s ease both;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .lfg-single-grid {
        grid-template-columns: 1fr;
    }

    .lfg-type-selector {
        grid-template-columns: 1fr;
    }

    .lfg-form-row {
        grid-template-columns: 1fr;
    }

    .lfg-hero-title {
        font-size: 28px;
    }

    .lfg-stats-bar {
        flex-wrap: wrap;
    }

    .lfg-stat {
        min-width: 50%;
    }
}

@media (max-width: 600px) {
    .lfg-grid {
        grid-template-columns: 1fr;
    }

    .lfg-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lfg-type-tabs {
        flex-direction: column;
    }

    .lfg-mylist-row {
        flex-direction: column;
        align-items: stretch;
    }

    .lfg-request-row {
        flex-wrap: wrap;
    }
}
