/* --- LAYOUT & CENTROWANIE --- */
.lfg-page {
    background-color: #050506;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
}

.article-container {
    width: calc(100% - 250px);
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkuje wszystko w pionie */
    padding-bottom: 50px;
}

/* --- NAGŁÓWEK I FILTRY --- */
.lfg-hero {
    text-align: center;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lfg-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.filter-btn {
    background: #16161a;
    border: 1px solid #2d2d35;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rajdhani';
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* --- SIATKA OGŁOSZEŃ --- */
.lfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px;
    width: 90%;
    max-width: 1400px;
    justify-content: center;
}

/* --- KARTA OGŁOSZENIA --- */
.lfg-card {
    background: linear-gradient(145deg, #111114 0%, #09090b 100%);
    border: 2px solid #1e1e22; /* Kolor podmieniany przez JS */
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lfg-card:hover {
    transform: translateY(-8px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tag {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
}

.card-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-rank img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card-rank span {
    font-weight: 700;
    font-size: 18px;
}

/* Fix dla tekstu wiadomości */
.card-body {
    flex-grow: 1;
}

.card-body p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Wymusza łamanie długich słów */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Max 4 linie tekstu */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.footer-links {
    display: flex;
    gap: 10px;
}

.btn-copy-dc, .btn-steam-icon {
    background: #1e1e22;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-copy-dc:hover { background: #5865F2; }
.btn-steam-icon:hover { background: #171a21; }

.card-time {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* --- MODAL (FORMULARZ) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0d0d0f;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #2d2d35;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 32px;
    color: #475569;
    cursor: pointer;
    transition: 0.3s ease;
}

.close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    background: #16161a;
    border: 1px solid #2d2d35;
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Rajdhani';
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: #8b5cf6;
    outline: none;
    background: #1c1c21;
}

.btn-submit {
    width: 100%;
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}





/* --- STYLIZACJA GŁÓWNEGO PRZYCISKU DODAWANIA --- */
.btn-main-add {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

/* Efekt błysku przelatującego przez przycisk */
.btn-main-add::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.btn-main-add:hover::after {
    left: 120%;
}

.btn-main-add:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.btn-main-add:active {
    transform: translateY(0);
}

.btn-main-add i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-main-add:hover i {
    transform: rotate(90deg);
}

/* Stylizacja kontenera przycisku w Hero, żeby był wyśrodkowany */
.lfg-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}
















/* RWD - Responsywność */
@media (max-width: 900px) {
    .article-container {
        width: 100%;
        margin-left: 0;
    }
    .lfg-grid { padding: 10px; }
    .modal-content { width: 90%; padding: 25px; }
}


