/* Estilo Azul Lumínico Neon - MAP Community Suite Definitivo */

.map-profile-wrapper, 
.map-community-container {
    max-width: 980px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

/* Barra Superior Navegable */
.map-top-nav-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.map-nav-btn {
    background: #01040a;
    border: 1.5px solid #00c8ff;
    color: #00c8ff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
    transition: all 0.3s ease;
}

.map-nav-btn:hover {
    background: #00c8ff;
    color: #030813 !important;
    box-shadow: 0 0 18px #00c8ff;
}

.map-nav-notifications {
    position: relative;
}

.map-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 10px;
    background: #ff3366;
    color: #ffffff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 800;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.55);
}

.map-lang-switcher {
    text-align: right;
    margin-bottom: 25px;
    font-size: 14px;
    color: #00c8ff;
}

.map-top-nav-bar .map-lang-switcher {
    margin: 0 0 0 auto;
}

.map-lang-btn {
    background: transparent;
    border: none;
    color: #7b8fae;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.map-lang-btn.active, .map-lang-btn:hover {
    color: #00c8ff;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
}

.map-glow-card {
    background: #030813;
    border: 1.5px solid #00c8ff;
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.4), inset 0 0 15px rgba(0, 200, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.map-profile-header {
    background: #030813;
    border: 1.5px solid #00c8ff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.map-cover-container {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #01040a;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}

.map-btn-edit-cover {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(3, 8, 19, 0.9);
    border: 1.5px solid #00c8ff;
    color: #00c8ff;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 0 10px #00c8ff;
    z-index: 10;
}

.map-btn-delete-cover,
.map-btn-delete-avatar {
    background: rgba(255, 51, 102, 0.08) !important;
    border: 1px solid #ff3366 !important;
    color: #ff6688 !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    border-radius: 15px;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: all 0.25s ease;
}

.map-btn-delete-cover {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 11px;
    z-index: 10;
    min-width: 0;
}

.map-btn-delete-cover:hover,
.map-btn-delete-avatar:hover {
    background: #ff3366;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.55);
}

.map-profile-info-bar {
    display: flex;
    align-items: flex-end;
    padding: 20px 25px;
    position: relative;
    margin-top: -65px;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 2;
}

.map-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    z-index: 3;
}

.map-avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00c8ff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.7);
    background: #030813;
}

.map-btn-edit-avatar {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #00c8ff;
    color: #030813;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 0 10px #00c8ff;
    z-index: 10;
}

.map-btn-delete-avatar {
    padding: 5px 9px;
    margin-top: 7px;
    display: inline-block;
}

.map-user-meta {
    flex-grow: 1;
    margin-bottom: 5px;
    padding-top: 10px;
}

.map-user-name {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

.map-user-tag {
    color: #00c8ff;
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}

.map-mention {
    color: #00c8ff !important;
    font-weight: bold;
    text-decoration: none !important;
}

.map-profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.map-action-btn {
    background: rgba(0, 200, 255, 0.08);
    border: 1.5px solid #00c8ff;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: bold;
}

.map-profile-nav {
    display: flex;
    border-top: 1px solid rgba(0, 200, 255, 0.2);
    padding: 12px 20px;
    background: #02050e;
    gap: 12px;
}

.map-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #7b8fae;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
}

.map-tab-btn.active {
    color: #00c8ff;
    border-color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
}

.map-post-textarea, .map-bio-textarea {
    width: 100%;
    height: 95px;
    background: #01040a;
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.map-btn-glow {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid #00c8ff;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.map-btn-glow:hover {
    background: #00c8ff;
    color: #030813;
}

.map-post-item {
    margin-top: 20px;
    scroll-margin-top: 25px;
}

.map-post-item.map-highlight-target {
    box-shadow: 0 0 22px rgba(0, 200, 255, 0.7);
    border-radius: 14px;
}

.map-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.map-post-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00c8ff;
}

.map-post-author-meta strong {
    color: #ffffff;
    display: block;
    font-size: 15px;
}

.map-post-author-meta span {
    color: #00c8ff;
    font-size: 12px;
    opacity: 0.8;
}

.map-post-body p {
    color: #e0e6ed;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.map-external-image {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 650px;
    height: auto;
    margin: 12px 0;
    border-radius: 14px;
    border: 1px solid rgba(0, 200, 255, 0.35);
    box-shadow: 0 0 14px rgba(0, 200, 255, 0.18);
    object-fit: contain;
}

.map-post-actions-bar {
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(0, 200, 255, 0.15);
    padding-top: 12px;
    margin-top: 15px;
}

.map-like-btn, .map-toggle-comments-btn {
    background: transparent;
    border: none;
    color: #00c8ff;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.map-like-btn.liked {
    color: #ff3366;
}

.map-comments-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 200, 255, 0.2);
}

.map-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(1, 4, 10, 0.6);
    padding: 8px 12px;
    border-radius: 10px;
    scroll-margin-top: 25px;
}

.map-comment-item.map-comment-reply {
    margin-left: 42px;
    border-left: 2px solid rgba(0, 200, 255, 0.35);
}

.map-comment-item.map-highlight-target {
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.65);
}

.map-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.map-comment-body {
    min-width: 0;
    flex: 1;
}

.map-comment-body strong {
    color: #00c8ff;
    font-size: 13px;
}

.map-comment-body p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.map-comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.map-reply-comment-btn {
    background: transparent;
    border: none;
    color: #7b8fae;
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    font-weight: bold;
}

.map-reply-comment-btn:hover {
    color: #00c8ff;
}

.map-reply-box {
    display: flex;
    gap: 8px;
    margin: 7px 0 12px 42px;
}

.map-reply-box .map-comment-input {
    min-width: 0;
}

.map-add-comment-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.map-comment-input {
    flex-grow: 1;
    min-width: 0;
    background: #01040a;
    border: 1px solid #00c8ff;
    border-radius: 15px;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.map-comment-input:focus {
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

.map-lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.map-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #00c8ff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.map-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px;
    background: linear-gradient(to top, #030813 85%, transparent);
    box-sizing: border-box;
    text-align: center;
}

.map-card-overlay h3 {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.map-btn {
    display: inline-block;
    padding: 6px 22px;
    background: transparent;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    border: 1.5px solid #00c8ff;
    border-radius: 20px;
}

/* Notificaciones */
.map-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-notification-item {
    display: block;
    padding: 12px 14px;
    background: rgba(1, 4, 10, 0.65);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 12px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.map-notification-item:hover {
    border-color: #00c8ff;
    background: rgba(0, 200, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.18);
}

.map-notification-time {
    display: block;
    margin-top: 3px;
    color: #7b8fae;
    font-size: 11px;
}

/* Mensajes */
.map-chat-search {
    width: 100%;
    box-sizing: border-box;
    background: #01040a;
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 15px;
    padding: 9px 14px;
    color: #ffffff;
    outline: none;
    margin-bottom: 10px;
}

.map-chat-search:focus {
    border-color: #00c8ff;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.18);
}

.map-chat-user-list {
    max-height: 430px;
    overflow-y: auto;
}

.map-chat-user {
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-chat-user:hover,
.map-chat-user.active {
    background: rgba(0, 200, 255, 0.1);
}

.map-chat-search-results {
    margin-bottom: 8px;
}

.map-chat-no-results {
    color: #7b8fae;
    font-size: 13px;
    padding: 10px;
    text-align: center;
}

/* Selector de idioma dentro de cualquier página */
.map-global-language {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.map-global-language .map-lang-btn {
    padding: 4px 3px;
}

/* Traducción: elementos ocultos */
.map-lang-en {
    display: none;
}

body.map-language-en .map-lang-es {
    display: none !important;
}

body.map-language-en .map-lang-en {
    display: initial;
}

body.map-language-en .map-global-language .map-lang-en {
    display: inline;
}

body:not(.map-language-en) .map-global-language .map-lang-es {
    display: inline;
}

#map-login-form label {
    color: #00c8ff;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

#map-login-form input[type="text"], 
#map-login-form input[type="password"] {
    width: 100%;
    height: 40px;
    background: #01040a;
    border: 1px solid #00c8ff;
    border-radius: 10px;
    color: #fff;
    padding: 0 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#map-login-form input[type="submit"] {
    background: #00c8ff;
    color: #030813;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* Ajustes móviles */
@media (max-width: 700px) {
    .map-profile-wrapper,
    .map-community-container {
        width: 100%;
        box-sizing: border-box;
    }

    .map-top-nav-bar {
        gap: 7px;
    }

    .map-nav-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .map-top-nav-bar .map-lang-switcher {
        width: 100%;
        text-align: right;
        margin-top: 3px;
    }

    .map-cover-container {
        height: 180px;
    }

    .map-profile-info-bar {
        padding: 15px;
        margin-top: -45px;
        gap: 12px;
    }

    .map-avatar-container,
    .map-avatar-container img {
        width: 95px;
        height: 95px;
    }

    .map-user-name {
        font-size: 21px;
    }

    .map-profile-actions {
        width: 100%;
    }

    .map-comment-item.map-comment-reply {
        margin-left: 20px;
    }

    .map-reply-box {
        margin-left: 20px;
    }

    .map-external-image {
        max-height: 450px;
    }
}

.map-btn-delete-cover span,
.map-btn-delete-avatar span {
    color: inherit !important;
}

.map-btn-delete-cover:hover,
.map-btn-delete-avatar:hover {
    background: #ff3366 !important;
    color: #ffffff !important;
}

.map-lang-btn {
    white-space: nowrap;
}

/* Correcciones finales de navegación y carga de imágenes */
.map-top-nav-bar .map-nav-btn {
    height: auto !important;
    min-height: 42px !important;
    max-height: 60px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    flex: 0 0 auto !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.map-top-nav-bar .map-notification-nav-btn {
    min-width: 0 !important;
}

.map-top-nav-bar .map-lang-switcher {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.map-image-upload-hint {
    color: #7b8fae;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: none;
}

.map-cover-upload-hint {
    position: absolute;
    right: 17px;
    bottom: 2px;
    z-index: 10;
    text-align: right;
}

.map-avatar-upload-hint {
    position: absolute;
    left: 0;
    top: 128px;
    width: 145px;
    text-align: center;
}

/* Los botones de eliminar ya no forman parte de la interfaz. */
.map-btn-delete-cover,
.map-btn-delete-avatar {
    display: none !important;
}

@media (max-width: 700px) {
    .map-top-nav-bar .map-nav-btn {
        min-height: 42px !important;
        max-height: 58px !important;
        padding: 7px 12px !important;
    }

    .map-cover-upload-hint {
        right: 12px;
        bottom: 1px;
        font-size: 9px;
    }

    .map-avatar-upload-hint {
        top: 102px;
        width: 120px;
        font-size: 9px;
    }
}
