/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

<style>
        /* General Styles */
        body {
            background-color: #f0f2f5;
            color: #333;
        }

        header {
            background-color: #4267B2;
            color: white;
            padding: 1rem 2rem;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 2rem;
        }

        .profile-header {
            position: relative;
            text-align: center;
            margin-top: 60px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .cover-photo-container {
            width: 100%;
            height: 200px;
            background-color: #ddd;
            position: relative;
        }

        .cover-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-photo-container {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            border: 3px solid white;
            border-radius: 50%;
            overflow: hidden;
            width: 80px;
            height: 80px;
        }

        .profile-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-details {
            margin-top: 40px;
            padding: 1rem;
        }

        .profile-details h2 {
            margin: 0.5rem 0;
            font-size: 1.5rem;
            color: #333;
        }

        .btn-custom {
            background-color: #4267B2;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
            margin: 10px;
        }

        .btn-custom:hover {
            background-color: #365899;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transform: translateY(-3px);
        }

        .posts, .recent-users {
            margin-top: 20px;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .post {
            padding: 10px;
            border-bottom: 1px solid #ddd;
        }

        .post:last-child {
            border-bottom: none;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .cover-photo-container {
                height: 150px;
            }

            .profile-photo-container {
                width: 60px;
                height: 60px;
                bottom: -30px;
            }

            .profile-details h2 {
                font-size: 1.2rem;
            }
        }
    </style>
/* Header and Navbar */
header {
    background-color: #4267B2;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left h1 {
    margin: 0;
    font-size: 1.8rem;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right button {
    background-color: #4267B2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-left: 10px;
}

.nav-right button:hover {
    background-color: #365899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-nav {
    display: flex;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
}

.nav-profile-photo {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 2px solid red;
}

#navProfileName {
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/background.jpg') no-repeat center center/cover;
}

.hero-section .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .hero-text {
    position: relative;
    color: white;
    z-index: 2;
    text-align: center;
    animation: fadeIn 3s ease-in-out;
}

.hero-section .hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.container {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Post Form */
.post-form {
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-form h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
}

textarea {
    resize: vertical;
}

button {
    background-color: #4267B2;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #365899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-share {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin: 5px;
}

.share-options {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    display: none; /* Inicialmente oculto */
}

.share-options button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px;
    margin: 2px 0;
    cursor: pointer;
}

.share-options button:hover {
    background-color: #e0e0e0;
}

/* Posts Styles */
.posts {
    margin-top: 20px;
}

.post {
    padding: 10px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease-in-out;
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post:hover {
    transform: scale(1.02);
}

/* Ajuste de estilo para el contenedor del post */
.post-content {
    display: flex; /* Utilizar flexbox para organización */
    align-items: center;
    margin-top: 10px;
}

/* Botón de subida de archivos */
.btn-upload {
    display: inline-block;
    background: rgba(66, 103, 178, 0.2);
    border: 2px dashed rgba(66, 103, 178, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    color: #4267B2;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    margin-top: 10px;
}

.btn-upload:hover {
    background: rgba(66, 103, 178, 0.3);
    box-shadow: 0 4px 8px rgba(66, 103, 178, 0.2);
    transform: translateY(-3px);
}

input[type="file"] {
    display: none;
}

/* Estilos de la imagen de perfil dentro del post */
.post .profile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative; /* Cambiar a relativo para evitar problemas de superposición */
    margin-right: 10px;
}

.post .profile img {
    border-radius: 50%;
    width: 40px; /* Ajuste de tamaño para que sea pequeño */
    height: 40px; /* Consistencia con el ancho */
    margin-right: 10px;
    border: 2px solid #BF2323; /* Red border para consistencia */
}

/* Ajustes de imagen en post para dispositivos más grandes */
.post img, .post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

.post .post-file {
    display: block;
    margin-top: 10px;
    color: #4267B2;
    text-decoration: none;
    font-size: 1rem;
}

.post .post-file:hover {
    text-decoration: underline;
}

.delete-btn {
    background-color: #E53E3E;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.delete-btn:hover {
    background-color: #C53030;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cover Photo and Profile Photo Styles */
.profile-header {
    position: relative;
    margin-top: 60px; /* Space for the fixed header */
    height: 200px; /* Height of the cover photo */
    overflow: hidden;
    background-color: #f0f2f5; /* Background color for fallback */
}

.cover-photo-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.cover-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    position: relative;
    text-align: center;
    margin-top: -60px; /* Pull the profile photo up */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-photo-container {
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.profile-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profileName {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

#profileEmail {
    color: #555;
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        height: 150px;
    }

    .profile-photo-container {
        width: 100px;
        height: 100px;
    }

    .profile-details {
        padding: 10px;
    }

    #profileName {
        font-size: 1.2rem;
    }
}

input[type="file"] {
    display: none;
}

/* Auth Forms */
.auth-forms {
    padding: 20px;
    text-align: center;
}

.auth-forms h2 {
    margin-top: 0;
    font-size: 2rem;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #4267B2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .post-form {
        padding: 10px;
    }

    .post img, .post-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
    }

    .post .profile img {
        width: 30px; /* Tamaño reducido para dispositivos móviles */
        height: 30px;
    }

    .profile img {
        width: 30px;
        height: 30px;
        border: 2px solid #E53E3E;
    }

    .profile-photo {
        width: 60px;
        height: 60px;
    }

    .post-content {
        flex-direction: column; /* Asegurar que en móviles sea en columna */
        align-items: flex-start; /* Alinear al inicio en móviles */
    }
}

/* Botones de acción del post */
.post-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.post-buttons .btn {
    margin-left: 10px;
}

.post-buttons .btn-reply {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.post-buttons .btn-edit {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.post-buttons .btn-delete {
    background-color: #d9534f;
    border-color: #d43f3a;
}

/* Estilos para los botones del post */
.post-buttons .btn-like {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.post-buttons .btn-like:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.post-buttons .btn-share {
    background-color: #ff7f50;
    border-color: #ff6347;
    color: white;
}

.post-buttons .btn-share:hover {
    background-color: #ff6347;
    border-color: #ff4500;
}

/* Vista previa de la imagen */
.image-preview {
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.image-preview button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.image-preview button:hover {
    background-color: #c82333;
}

/* Custom button styles */
.btn-custom {
    background-color: #4267B2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    margin: 10px;
}

.btn-custom:hover {
    background-color: #365899;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background-color: #c82333;
}

/* Post stats styles */
.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #555;
}

.post-stats .post-likes, .post-stats .post-comments {
    margin-right: 15px;
}

/* Post buttons and stats */
.post-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.post-buttons .btn {
    margin-left: 10px;
}

.post-buttons .btn-reply {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.post-buttons .btn-edit {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.post-buttons .btn-delete {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.post-buttons .btn-share {
    background-color: #007bff;
    border-color: #0056b3;
}

.post-buttons .btn-share:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.post-buttons .btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.post-buttons .btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.post-likes, .post-comments {
    margin-right: 10px;
}

/* Footer Styles */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
    z-index: 1000;
}

#footer.show {
    transform: translateY(0);
    opacity: 1;
}

#footer i {
    margin: 0 10px;
    font-size: 20px;
    cursor: pointer;
}

#footer i:hover {
    color: #007bff;
}

.profile-photo-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #343a40;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .post-form {
        padding: 10px;
    }

    .post .profile img {
        width: 40px;
        height: 40px;
    }

    .profile-photo-container {
        width: 80px;
        height: 80px;
    }

    .cover-photo-container {
        height: 150px;
    }

    .profile-details h2 {
        font-size: 1.2rem;
    }
}
