/* =========================================================
   PROFIL
   ========================================================= */

.profile-container {

    max-width: 1150px;

    margin: 25px auto 50px;

    padding: 0 20px;

}


/* =========================================================
   FŐ PROFIL KÁRTYA
   ========================================================= */

.profile-card {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 8px;

    box-shadow: var(--shadow);

    overflow: hidden;

}


/* =========================================================
   PROFIL FEJLÉC
   ========================================================= */

.profile-header {

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 25px 30px;

    background: var(--panel);

    border-bottom: 1px solid var(--border);

}


.profile-image-wrapper {

    flex-shrink: 0;

}


.profile-main-image {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid var(--border);

    background: var(--panel-soft);

}


.profile-header-info {

    min-width: 0;

}


.profile-name-row {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}


.profile-header-info h1 {

    margin: 0;

    color: #4da3ff;

    font-size: 1.55rem;

    font-weight: 500;

    line-height: 1.2;

    word-break: break-word;

}


.profile-header-info p {

    margin: 7px 0 0;

    color: var(--muted);

    font-size: 0.9rem;

}


/* =========================================================
   SZEREPKÖR
   ========================================================= */

.profile-role-badge {

    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 4px;

    background: rgba(245, 183, 0, 0.12);

    border: 1px solid rgba(245, 183, 0, 0.3);

    color: var(--primary-strong);

    font-size: 0.72rem;

    font-weight: 600;

}


/* =========================================================
   PUBLIKUS PROFIL GOMB
   ========================================================= */

.public-profile-actions {

    margin-top: 12px;

    display: flex;

}


.profile-action-btn {

    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--panel-soft);

    color: var(--text);

    font-size: 0.85rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;

}


.profile-action-btn:hover {

    background: var(--panel-alt);

    border-color: var(--primary);

}


/* =========================================================
   PROFIL TARTALOM
   ========================================================= */

.profile-body {

    padding: 28px 30px;

}


.profile-section {

    margin-bottom: 30px;

}


.profile-section:last-child {

    margin-bottom: 0;

}


/* =========================================================
   SZEKCIÓ FEJLÉC
   ========================================================= */

.section-heading {

    margin-bottom: 15px;

}


.section-heading > div {

    display: flex;

    align-items: center;

    gap: 10px;

}


.section-heading h2 {

    margin: 0;

    color: var(--text);

    font-size: 1.05rem;

    font-weight: 600;

}


.section-heading p {

    margin: 3px 0 0;

    color: var(--muted);

    font-size: 0.8rem;

}


.section-icon {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 6px;

    background: var(--panel-soft);

    border: 1px solid var(--border);

    font-size: 0.95rem;

}


/* =========================================================
   PROFILKÉP FELTÖLTÉS
   ========================================================= */

.profile-upload {

    padding: 16px;

    background: var(--panel-soft);

    border: 1px solid var(--border);

    border-radius: 6px;

}


.profile-upload input[type="file"] {

    width: 100%;

    box-sizing: border-box;

    padding: 9px;

    border: 1px dashed var(--border);

    border-radius: 5px;

    background: var(--panel);

    color: var(--text);

    cursor: pointer;

}


.profile-upload button {

    margin-top: 12px;

    padding: 9px 15px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--primary);

    color: var(--secondary);

    font-size: 0.85rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.profile-upload button:hover {

    transform: translateY(-1px);

    background: var(--primary-strong);

}


#profile-message {

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 0.82rem;

    font-weight: 600;

}


/* =========================================================
   PROFIL ADATOK
   ========================================================= */

.profile-info {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);

    border-radius: 6px;

    overflow: hidden;

}


.profile-info-item {

    padding: 14px 16px;

    background: var(--panel);

}


.profile-info-item:hover {

    background: var(--panel-soft);

}


.profile-info-item span {

    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 0.75rem;

}


.profile-info-item strong {

    display: block;

    color: var(--text);

    font-size: 0.9rem;

    font-weight: 600;

    word-break: break-word;

}


/* =========================================================
   TÉMÁK + HOZZÁSZÓLÁSOK
   ========================================================= */

.profile-content-columns {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

}


.profile-content-section {

    min-width: 0;

}


.profile-content-list {

    display: flex;

    flex-direction: column;

    gap: 0;

    border-top: 1px solid var(--border);

}


/* =========================================================
   FÓRUM TÉMA / HOZZÁSZÓLÁS
   ========================================================= */

.profile-content-item {

    display: block;

    padding: 14px 0;

    background: transparent;

    border: none;

    border-bottom: 1px solid var(--border);

    border-radius: 0;

    color: inherit;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        padding-left 0.15s ease,
        padding-right 0.15s ease;

}


.profile-content-item:hover {

    transform: none;

    background: var(--panel-soft);

    border-color: var(--border);

    box-shadow: none;

    padding-left: 10px;

    padding-right: 10px;

}


/* =========================================================
   TÉMA CÍME
   ========================================================= */

.profile-topic-title {

    margin: 0 0 7px;

    color: #4da3ff;

    font-size: 0.98rem;

    font-weight: 500;

    line-height: 1.35;

}


.profile-content-item:hover .profile-topic-title {

    color: #63b1ff;

}


/* =========================================================
   META ADATOK
   ========================================================= */

.profile-content-meta {

    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;

    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.4;

}


.profile-content-meta span {

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

}


.profile-content-meta span:not(:last-child)::after {

    content: " · ";

    margin-left: 5px;

}


/* =========================================================
   HOZZÁSZÓLÁS
   ========================================================= */

.profile-comment-title {

    margin: 0 0 7px;

    color: #4da3ff;

    font-size: 0.9rem;

    font-weight: 500;

}


.profile-comment-text {

    margin: 0 0 8px;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    color: var(--text);

    font-size: 0.84rem;

    line-height: 1.5;

    word-break: break-word;

}


.profile-comment-hint {

    margin-top: 7px;

    color: var(--muted);

    font-size: 0.74rem;

    font-weight: 500;

}


/* =========================================================
   ÜRES / BETÖLTÉS
   ========================================================= */

.profile-empty,
.profile-loading {

    padding: 18px;

    border: 1px dashed var(--border);

    border-radius: 6px;

    color: var(--muted);

    background: var(--panel-soft);

    text-align: center;

    font-size: 0.85rem;

}


/* =========================================================
   SÖTÉT MÓD
   ========================================================= */

body.dark-mode .profile-card {

    background:
        linear-gradient(
            180deg,
            rgba(17, 24, 39, 0.97),
            rgba(12, 20, 31, 0.98)
        );

    border-color:
        rgba(148, 163, 184, 0.16);

    box-shadow:
        0 18px 50px rgba(2, 6, 23, 0.42);

}


body.dark-mode .profile-header {

    background:
        rgba(15, 23, 42, 0.72);

    border-color:
        rgba(148, 163, 184, 0.14);

}


body.dark-mode .profile-main-image {

    border-color:
        rgba(148, 163, 184, 0.2);

    background:
        rgba(15, 23, 42, 0.9);

}

body.dark-mode .profile-header-info h1 {
    color: #eaf5ff;
}

body.dark-mode .profile-header-info p,
body.dark-mode .profile-role-badge,
body.dark-mode .profile-info-item span,
body.dark-mode .profile-info-item strong,
body.dark-mode .profile-content-meta,
body.dark-mode .profile-content-item,
body.dark-mode .profile-empty,
body.dark-mode .profile-loading {
    color: #dfeaf8;
}

body.dark-mode .profile-role-badge {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.24);
    color: #fef3c7;
}

body.dark-mode .profile-action-btn {
    background: rgba(15, 23, 42, 0.74);
    border-color: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

body.dark-mode .profile-action-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(125, 211, 252, 0.26);
}

body.dark-mode .profile-upload {

    background: rgba(15, 23, 42, 0.7);

    border-color: rgba(148, 163, 184, 0.12);

}


body.dark-mode .profile-upload input[type="file"] {

    color: #e2e8f0;

    background: rgba(8, 15, 25, 0.8);

}

body.dark-mode .profile-upload button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
}

body.dark-mode .profile-info-item,
body.dark-mode .profile-content-item,
body.dark-mode .profile-content-section,
body.dark-mode .profile-section {
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.3);
}

body.dark-mode .profile-content-item:hover {

    background: rgba(30, 41, 59, 0.82);

}

body.dark-mode .profile-empty,
body.dark-mode .profile-loading {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.12);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .profile-content-columns {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    .profile-container {

        margin: 15px auto;

        padding: 0 10px 35px;

    }


    .profile-card {

        border-radius: 6px;

    }


    .profile-header {

        padding: 22px 18px;

        gap: 15px;

    }


    .profile-main-image {

        width: 75px;

        height: 75px;

    }


    .profile-header-info h1 {

        font-size: 1.3rem;

    }


    .profile-header-info p {

        font-size: 0.82rem;

    }


    .profile-body {

        padding: 22px 18px;

    }


    .profile-info {

        grid-template-columns: 1fr;

    }


    .profile-content-columns {

        grid-template-columns: 1fr;

        gap: 25px;

    }


    .public-profile-actions {

        justify-content: flex-start;

    }


    .profile-action-btn {

        width: auto;

    }

}


/* =========================================================
   KIS MOBIL
   ========================================================= */

@media (max-width: 450px) {

    .profile-header {

        align-items: flex-start;

    }


    .profile-main-image {

        width: 65px;

        height: 65px;

    }


    .profile-header-info h1 {

        font-size: 1.15rem;

    }


    .profile-role-badge {

        font-size: 0.65rem;

    }


    .section-heading h2 {

        font-size: 0.95rem;

    }

}

.own-profile-actions {

    margin-top: 12px;

    display: flex;

}


.logout-profile-btn {

    padding: 8px 14px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--panel-soft);

    color: var(--text);

    font-size: 0.85rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;

}

body.dark-mode .logout-profile-btn {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(24, 35, 53, 0.96));
    border-color: rgba(248, 113, 113, 0.24);
    color: #fef2f2;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25);
}

body.dark-mode .logout-profile-btn:hover {
    background: rgba(127, 29, 29, 0.4);
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
}


.logout-profile-btn:hover {

    background: rgba(220, 38, 38, 0.1);

    border-color: rgba(220, 38, 38, 0.45);

    color: #dc2626;

}