body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
    padding-bottom: 70px;
}

.post-feed-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.post-wrapper {
    max-width: 600px;
    width: 100%;
}

.post {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
}

.post .header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post .header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #0d6efd;
    object-fit: cover;
}

.post .name {
    font-weight: 600;
    font-size: 16px;
    color: #343a40;
}

.post .meta-info {
    font-size: 12px;
    color: #6c757d;
}

.content-wrapper {
    position: relative;
    cursor: pointer;
    margin-top: 15px;
}

.content-body {
    transition: max-height 0.5s ease-in-out;
}

.content-body.truncated {
    max-height: 250px;
    overflow: hidden;
}

.read-more-overlay {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    display: none;
    pointer-events: none;
}

.content-body.truncated + .read-more-overlay {
    display: block;
}

.read-more-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-body.truncated ~ .read-more-btn {
    display: block;
}

.post .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.post .post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.post .post-text {
    line-height: 1.7;
    color: #495057;
}

.post .actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.post .btn {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.post .btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.post .likeBtn .like-icon {
    transition: all 0.3s ease;
    stroke-width: 2px;
    fill: none;
    stroke: currentColor;
}

.post .likeBtn.active .like-icon {
    fill: #dc3545;
    stroke: #dc3545;
    transform: scale(1.1);
}

.count {
    display: inline-block;
    position: relative;
    font-variant-numeric: tabular-nums;
}

.count span {
    display: inline-block;
    transition: all 0.2s ease-in;
}

.count.updating span {
    opacity: 0;
    transform: translateY(-10px);
}

.count span.new-count {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(10px);
}

.count.updating span.new-count {
    opacity: 1;
    transform: translateY(0);
}

.post .audioBtn {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    color: white;
    border: none;
}

.post .audioBtn:hover {
    opacity: 0.9;
}

.post .audioBtn .special-tag {
    font-size: 9px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: auto;
}

.post .comment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.post .comment-form {
    position: relative;
}

.post .comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 45px 12px 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    resize: none;
    min-height: 80px;
    outline: none;
    transition: all .2s;
}

.post .comment-form textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.post .send-comment-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #0d6efd;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.post .send-comment-btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.post .send-comment-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.post .comment-list {
    margin-top: 20px;
}

.post .comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.post .comment-item:last-child {
    border-bottom: none;
}

.post .comment-author-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #0d6efd;
}

.post .comment-content .author-name {
    font-weight: 600;
    color: #343a40;
}

.post .comment-content .comment-text {
    color: #495057;
    margin: 4px 0;
    font-size: 14px;
}

.post .comment-content .comment-date {
    font-size: 11px;
    color: #6c757d;
}

.post .audio-player {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.post .audio-player.active {
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.5);
}

.post .audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post .audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0d6efd;
    font-size: 20px;
}

.share-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.share-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
}

.share-modal .modal-body {
    padding: 2rem;
}

.share-modal .post-title-preview {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.share-modal .social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-modal .social-btn {
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-modal .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.share-modal .social-btn.facebook { background-color: #1877F2; }
.share-modal .social-btn.twitter { background-color: #1DA1F2; }
.share-modal .social-btn.whatsapp { background-color: #25D366; }
.share-modal .social-btn.linkedin { background-color: #0A66C2; }

.share-modal .copy-link-wrapper {
    display: flex;
}

.share-modal .copy-link-wrapper .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f8f9fa;
}

.share-modal .copy-link-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.login-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.login-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}
.modal-box {
    width: 90%;
    max-width: 380px;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background: rgba(30, 30, 45, 0.75);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    color: #fff;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.login-modal-overlay.active .modal-box {
    transform: scale(1);
    opacity: 1;
}
.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}
.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}
.close-btn:hover {
    color: #ff4b5c;
    transform: scale(1.2);
}
.modal-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}
.modal-footer {
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.modal-footer .btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #0e273c;
}
.modal-footer .btn-primary:hover {
    box-shadow: 0 0 15px #4facfe;
    transform: translateY(-2px);
}
.modal-footer .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.modal-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.35);
}

.profile-card {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

#profile-picture-preview,
.initials-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0d6efd;
}

.initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #0d6efd;
    font-size: 50px;
    font-weight: bold;
}

#profile-picture-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #0d6efd;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#profile-picture-label:hover {
    transform: scale(1.1);
}

#form-message {
    display: none;
    margin-bottom: 15px;
}

.pagination .page-item .page-link {
    color: #0d6efd;
    box-shadow: none;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.navbar-search-centered .form-control {
    border-right: 0;
}

.navbar-search-centered .btn {
    border-left: 0;
}

.navbar-search-centered .form-control:focus {
    border-color: #86b7fe;
    box-shadow: none;
}

.btn-register {
    color: #212529 !important;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn-register:hover {
    color: #fff !important;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.search-modal-overlay {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1060;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.close-search-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

.close-search-btn:hover {
    color: #fff;
}

.search-modal-content .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    font-size: 1.25rem;
}

.search-modal-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-modal-content .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

body.search-active #main-content,
body.search-active .bottom-nav {
    display: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.bottom-nav.nav-hidden {
    transform: translateY(100%);
}

.bottom-nav-inner {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.nav-item,
.nav-item-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    flex: 1;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 11px;
    margin-top: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: #0d6efd;
}

.nav-item-center {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1;
    transition: top 0.3s ease-in-out;
}

.bottom-nav.nav-hidden .nav-item-center {
    top: 5px;
}

.nav-item-center.active {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.7);
}

.nav-item-center i {
    font-size: 28px;
    color: #fff;
}

.nav-item-placeholder {
    flex: 1.2;
    pointer-events: none;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: 15px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.logout-modal {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logout-modal.active {
    opacity: 1;
    visibility: visible;
}

.profile-menu {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #dee2e6;
    padding: 8px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #495057;
    border-radius: 6px;
    font-weight: 500;
}

.profile-menu-item:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
}

.auth-box {
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    padding: 2rem;
    color: #fff;
}
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-header h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.auth-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}
.auth-box .form-group {
    margin-bottom: 1rem;
}
.auth-box .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.auth-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.auth-box .form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.btn-primary-auth {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.btn-primary-auth:hover {
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
    transform: translateY(-2px);
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.auth-footer a {
    color: #00f2fe;
    font-weight: 500;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .post .btn span {
        display: none;
    }
    .post .btn .count {
        display: inline-block;
    }
    .profile-menu {
        width: calc(100% - 20px);
    }
}