/* =========================================================
   melegek.hu - auth.css
   Belépés, regisztráció, 18+ kapu és auth-specifikus elemek.
   Forrás: korábbi /assets/css/style.css
   Refaktor típusa: moduláris bontás redesign nélkül
   ========================================================= */

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
}

.page-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.page-header {
    margin-bottom: 22px;
    margin-bottom: 22px;
}

.page-header h1 {
    margin: 0 0 8px;
    margin: 0 0 6px;
}

.page-header p {
    margin: 0;
    opacity: .8;
    margin: 0;
    opacity: .8;
}

.auth-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 18px;
    background: rgba(16, 22, 35, 0.92);
    border: 1px solid rgba(115, 140, 255, 0.16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.auth-subtitle {
    margin-top: -4px;
    margin-bottom: 20px;
    opacity: .8;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-btn {
    width: 100%;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    opacity: .9;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(115, 140, 255, 0.18);
    background: rgba(7, 11, 20, 0.9);
    color: #eaf0ff;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.search-age-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.95), rgba(143, 92, 255, 0.95));
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.22),
        0 0 16px rgba(143, 92, 255, 0.18);
}

.message-page-header {
    margin-bottom: 15px;
}

.message-page-title {
    margin: 0;
    font-size: 20px;
}

.message-thread {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    border-radius: 12px;
    background: rgba(20, 25, 35, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-item {
    display: flex;
    display: flex;
}

.message-item.is-mine {
    justify-content: flex-end;
    justify-content: flex-end;
}

.message-item.is-theirs {
    justify-content: flex-start;
    justify-content: flex-start;
}

.message-bubble {
    max-width: min(75%, 680px);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    box-shadow: var(--shadow);
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(40, 50, 70, 0.8);
    box-shadow: 0 0 6px rgba(0, 140, 255, 0.2);
}

.message-item.is-mine .message-bubble {
    background: linear-gradient(135deg, rgba(194,24,91,.18), rgba(123,31,162,.18));
    background: linear-gradient(135deg, #0a84ff, #0066cc);
    color: #fff;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.message-author {
    font-weight: 700;
    margin-bottom: 6px;
    font-weight: 600;
}

.message-body {
    line-height: 1.65;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.message-time {
    margin-top: 8px;
    font-size: .8rem;
    color: var(--muted);
    font-size: 11px;
    opacity: 0.6;
}

.message-item.is-system {
    justify-content: center;
}

.message-system-bubble {
    max-width: 60%;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.message-system-body {
    font-size: 13px;
    opacity: 0.85;
}

.message-system-time {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 4px;
}

.message-empty {
    text-align: center;
    opacity: 0.7;
}

.message-form {
    margin-top: 15px;
}

.message-form textarea {
    resize: none;
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    background: rgba(20, 25, 35, 0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.message-form textarea:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 6px rgba(0, 140, 255, 0.4);
}

.message-form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.profile-age-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
}

.profile-view-age-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
}

.search-age-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.95), rgba(123, 92, 255, 0.95));
    box-shadow:
        0 8px 20px rgba(0, 102, 255, 0.22),
        0 0 16px rgba(123, 92, 255, 0.14);
}

/* =========================================================
   CHAT / ÜZENETEK – UPGRADE
========================================================= */


.messages-page-upgraded {
    display: grid;
    gap: 18px;
}

.message-page-upgraded {
    display: grid;
    gap: 18px;
}

.message-page-subtitle {
    margin: 8px 0 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.95rem;
}

.message-thread-upgraded {
    max-height: 68vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(5, 10, 24, 0.92), rgba(2, 6, 23, 0.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.message-item {
    display: flex;
    margin-bottom: 14px;
}

.message-item.is-mine {
    justify-content: flex-end;
}

.message-item.is-theirs {
    justify-content: flex-start;
}

.message-item.is-system {
    justify-content: center;
}

.message-bubble {
    max-width: min(76%, 680px);
    padding: 14px 16px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25);
}

.message-item.is-mine .message-bubble {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.16));
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-bottom-right-radius: 8px;
}

.message-item.is-theirs .message-bubble {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-bottom-left-radius: 8px;
}

.message-system-bubble {
    max-width: min(80%, 720px);
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    text-align: center;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.message-author {
    font-weight: 700;
    font-size: 0.92rem;
    color: #f8fafc;
}

.message-time,
.message-system-time {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.68);
    white-space: nowrap;
}

.message-body,
.message-system-body {
    color: #e5eefc;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.message-form-upgraded {
    position: relative;
}

.message-composer-card {
    position: relative;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 30, 0.96));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.3);
}

.message-composer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.message-composer-label {
    margin: 0;
    font-weight: 700;
    color: #f8fafc;
}

.message-composer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-textarea-wrap textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(2, 6, 23, 0.92);
    color: #f8fafc;
    padding: 14px 16px;
    line-height: 1.55;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.message-textarea-wrap textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.34);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.10);
}

.message-form-actions-upgraded {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.message-form-help {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.88rem;
}

.message-send-btn {
    min-width: 180px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-top: 10px;
}

.consent input {
    margin-top: 4px;
}

.messages-hero-row,
.message-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
}

.messages-subtitle,
.message-page-subtitle {
    max-width: 760px;
    color: rgba(238, 242, 255, 0.72);
}

.message-chat-title-block {
    min-width: 0;
}

.message-back-btn {
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
}

.message-request-panel {
    margin: 20px 20px 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 64, 136, .18);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 0, 153, .14), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.024));
    box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
}

.message-request-panel-muted {
    border-color: rgba(0,174,255,.15);
    background:
        radial-gradient(circle at 0% 0%, rgba(0,174,255,.10), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
}

.message-request-copy {
    display: grid;
    gap: 5px;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
}

.message-request-copy strong {
    color: #fff;
}

.message-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.message-chat-thread {
    margin: 20px;
    border-radius: 24px;
    max-height: 62vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(0,174,255,.12), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(255,0,153,.09), transparent 30%),
        linear-gradient(180deg, rgba(5, 7, 18, .82), rgba(5, 7, 18, .94));
}

.message-bubble {
    border-radius: 22px;
    backdrop-filter: blur(8px);
}

.message-item.is-mine .message-bubble {
    background:
        linear-gradient(135deg, rgba(0, 140, 255, .92), rgba(126, 87, 255, .88));
    border: 1px solid rgba(124, 198, 255, .20);
    box-shadow: 0 14px 34px rgba(0, 104, 255, .20), inset 0 1px 0 rgba(255,255,255,.12);
}

.message-item.is-theirs .message-bubble {
    background:
        linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.035)),
        rgba(22, 24, 38, .94);
    border: 1px solid rgba(255,255,255,.085);
    box-shadow: 0 14px 34px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.05);
}

.message-system-bubble {
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.message-form-upgraded {
    margin: 0 20px 20px;
}

.message-composer-card {
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.085);
    background:
        radial-gradient(circle at 100% 0%, rgba(255,0,153,.09), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(10, 12, 23, .92);
}

.message-textarea-wrap textarea {
    min-height: 118px;
    border-radius: 20px;
    background: rgba(3, 5, 14, .72);
    border-color: rgba(255,255,255,.10);
}

.message-send-btn {
    border-radius: 999px;
    background: linear-gradient(135deg, #ff0f7b, #7b5cff);
    box-shadow: 0 12px 34px rgba(255, 15, 123, .18), 0 0 22px rgba(123, 92, 255, .14);
}

.message-empty-chat {
    align-self: center;
    text-align: center;
    max-width: 420px;
    padding: 34px 18px;
    color: rgba(255,255,255,.72);
}

.message-waiting-panel {
    margin-bottom: 20px;
}

.consent-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

/* GDPR kiemelés - finoman, nem túl tolva */

.highlight-consent {
    background: rgba(123,92,255,0.08);
    border: 1px solid rgba(123,92,255,0.25);
    padding: 12px;
    border-radius: 10px;
}
