.container {
    max-width: 777px;
    margin: 20px auto;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
}

.cover-preview {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #18191a;
    object-fit: cover;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.username {
    font-size: 0.95rem;
    color: #858585;
}

form {
    display: flex;
    flex-direction: row;
    gap: 0px;
}

input,
textarea,
select {
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: var(--bg-primary);
    color: #f0f2f5;
    font-size: 1rem;
}

label {
    font-weight: 600;
    color: #ddd;
    font-size: 0.95rem;
}

#msg {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.verified-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.verified-tooltip {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #242526;
    color: #f0f2f5;
    padding: 10px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 99;
    text-align: left;
    max-width: 260px;
    line-height: 1.4;
}

.verified-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #242526 transparent transparent transparent;
}

.verified-tooltip-wrapper:hover .verified-tooltip {
    display: block;
}

.verified-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.verified-color {
    fill: currentColor;
}

/* Estilo general del botón Admin */
.admin-button {
    display: inline-block;
    background-color: #1c1e21;
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #333;
}

/* Sacado de profile.php */

.profile-header-content {
    display: flex;
    margin-top: -85px;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
    order: 1;
}

.profile-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px;
    flex-wrap: wrap;
    align-items: center;
    order: 2;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.profile-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.username {
    color: #b0b3b8;
    font-size: 18px;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -70px;
        padding: 0 10px;
    }

    .cover-preview {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
    }

    .avatar-preview {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 24px;
        margin-top: 10px;
    }

    .username {
        font-size: 16px;
    }

    .profile-buttons-container {
        justify-content: center;
        padding: 15px 10px;
        margin-left: 0;
    }
}

.verified-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
}

.verified-icon {
    width: 1em;
    height: 1em;
    max-width: 20px;
    max-height: 20px;
    vertical-align: middle;
    fill: currentColor;
    display: inline-block;
}

.verified-color {
    fill: currentColor;
}

.verified-tooltip {
    display: none;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #242526;
    color: #f0f2f5;
    padding: 10px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 999;
    text-align: left;
    max-width: 260px;
    line-height: 1.4;
    box-sizing: border-box;
}

.verified-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #242526 transparent;
}

.verified-tooltip-wrapper:hover .verified-tooltip {
    display: block;
}

.delete-avatar-buttons {
    margin: 10px 0;
}

.delete-cover-buttons {
    margin: 10px 0;
}

.edit-button-profile,
.admin-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.edit-button-profile:hover {
    background-color: #0056b3;
}

.admin-button {
    background-color: var(--bg-primary);
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.admin-button:hover {
    background-color: var(--bg-secondary);
    color: #00e0ff;
}

.follow-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.follow-button[data-following="false"] {
    background-color: #3a3b3c;
    color: #e4e6eb;
    border-color: #3a3b3c;
}

.follow-button[data-following="false"]:hover {
    background-color: #555657;
}

.follow-button[data-following="false"] .heart-svg {
    fill: #e4e6eb;
}

.follow-button[data-following="true"] {
    background-color: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
}

.follow-button[data-following="true"]:hover {
    background-color: #0056b3;
}

.follow-button[data-following="true"] .heart-svg {
    fill: #ffffff;
}

.heart-svg {
    width: 16px;
    height: 16px;
    transition: fill 0.2s ease;
}

.followers-count-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    white-space: nowrap;
    cursor: default;
}

.followers-count-button.is-owner {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.followers-count-button.is-owner:hover {
    background-color: #c82333;
}

.profile-auth-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.profile-auth-modal-content {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 350px;
    width: 90%;
}

.profile-auth-modal-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.modal-profile-edit {
    gap: 5px;
    font-size: 18px;
}

.profile-close-modal-profile-mod {
    float: right;
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.auth-button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease;
}

.auth-login-btn {
    background-color: #007BFF;
}

.auth-login-btn:hover {
    background-color: #0056b3;
}

.auth-register-btn {
    background-color: #555657;
}

.auth-register-btn:hover {
    background-color: #6a6b6c;
}

.followers-modal-content {
    background-color: #242526;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.followers-modal-content h3 {
    margin-top: 0;
    text-align: center;
}

#followersList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.follower-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #3a3b3c;
}

.follower-item:last-child {
    border-bottom: none;
}

.follower-info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.follower-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.follower-name {
    font-weight: bold;
}

.follower-actions {
    display: flex;
    gap: 8px;
}

.remove-follower-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-follower-btn:hover {
    background-color: #5a6268;
}

/* Ocultar en pantallas móviles (menos de 768px) */
@media screen and (max-width: 768px) {
    .admin-button {
        display: none !important;
    }
}


/* Estilos específicos para el profile.php si es necesario */
.profile-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-secondary);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    /* Asegura que esté por encima de otros elementos */
    right: 0;
    border-radius: 8px;
    padding: 10px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    /* Para alinear imagen y texto */
    align-items: center;
    gap: 10px;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background-color: var(--bg-primary);
}

.profile-switcher-dropdown:hover .dropdown-content {
    display: block;
}

.create-page-btn {
    background-color: #2e8b57;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.create-page-btn:hover {
    background-color: #256b43;
}

.profile-switcher-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Estilos para el modal de seguidores */
.modal-followers {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.profile-modal-content {
    background-color: #1e1e1e;
    margin: auto;
    padding: 20px;
    border: 1px solid #444;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.followers-modal-content {
    max-height: 80vh;
    /* Limita la altura del modal de seguidores */
    overflow-y: auto;
    /* Permite scroll si la lista es larga */
}

.follower-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.follower-item:last-child {
    border-bottom: none;
}

.follower-info {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e4e6eb;
    flex-grow: 1;
    /* Permite que la info ocupe espacio */
}

.follower-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.follower-name {
    font-weight: bold;
    margin-right: 5px;
    /* Espacio entre nombre y @usuario */
}

.follower-username {
    color: #b0b3b8;
    /* Color gris para el @usuario */
    font-size: 0.9em;
}

.follower-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    /* Evita que los botones se encojan */
}

.follow-back-btn,
.remove-follower-btn {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    /* Evita que el texto se rompa */
}

.follow-back-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

.follow-back-btn:hover {
    background-color: #0056b3;
}

.follow-back-btn.following {
    background-color: #575757;
    color: white;
}

.follow-back-btn.following:hover {
    background-color: #444;
}

.remove-follower-btn {
    background-color: #dc3545;
    color: white;
    border: none;
}

.remove-follower-btn:hover {
    background-color: #c82333;
}

/* Estilos para el botón de like en el profile */
.like-button-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #424344;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
    background-color: #3a3b3c;
    color: #e4e6eb;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.like-button-profile .heart-icon-profile {
    width: 16px;
    height: 16px;
    fill: #b0b3b8;
    transition: fill 0.2s ease;
}

.like-button-profile.liked-profile {
    background: linear-gradient(135deg, #ff66cc, #cc3399);
    color: white;
    border-color: #cc3399;
}

.like-button-profile.liked-profile .heart-icon-profile {
    fill: white;
    animation: heartBeatProfile 0.5s ease-out;
}

.like-button-profile:hover:not(.liked-profile) {
    background-color: #4e4f50;
    border-color: #5a5b5c;
}

@keyframes heartBeatProfile {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.like-count-profile {
    font-size: 0.9rem;
}

/* Estilo común para todos los botones del modal */
.modal-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #3a3b3c;
    color: white;
    border: 1px solid #424344;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.9rem;
}

.modal-profile-button:last-child {
    margin-bottom: 0;
}

.modal-profile-button:hover {
    background: #4e4f50;
    border-color: #5a5b5c;
}

.modal-profile-button i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* Botón de seguir - estado específico */
.clase-btn-seguir-profile.following-btn-profile {
    background: #3a3b3c;
    border-color: #424344;
}

.clase-btn-seguir-profile.following-btn-profile:hover {
    background: #4e4f50;
}

/* Estilo para el contador de vistas en las tarjetas */
.post-views-count {
    display: inline-block;
    background-color: #3a3b3c;
    /* Gris oscuro */
    color: #e4e6eb;
    /* Texto claro */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    /* Espacio entre título y vistas */
    vertical-align: middle;
    /* Alinea con el texto del título */
}

/* Asegurar que el botón de opciones siempre sea visible */
.post-options {
    background-color: #49494930;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    font-size: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 10px -10px rgb(0 0 0);
}

.post-options:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Efecto hover sutil */
}