:root {
    --body-color: #ededed;
    --card-color: #f7f7f7;
    --button-color: #dc2626;
    --gray-color: #5f6368;
    --font-color: white;
}

body {
    background-color: var(--body-color);
    font-family: "Inter", sans-serif;
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticky {
    position: sticky;
    top: 0px;
    width: calc(100% - 2px);
    height: 54.4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    padding: 12px 0;
    display: flex;
    justify-content: center;
}

.upload-prompt-top {
    top: 16px;
    height: 48px;
    display: flex;
    justify-content: center;
    margin: 5px;
    margin-left: 5px;
    gap: 5px;
}

.upload-button-top {
    width: 150px;
    height: 48px;
    background-color: var(--button-color);
    color: var(--font-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.15s;
    border: none;
    text-decoration: none;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

    .upload-button-top i {
        font-size: 1.2rem;
    }

    .upload-button-top:hover {
        filter: brightness(90%);
        transform: scale(1.02);
    }

.profile-user {
    position: relative;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc2626, #ff8f8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--font-color);
    font-size: 60px;
    box-shadow: 0px 5px 35px 7px rgba(0, 0, 0, 0.15);
}

.profile-user-name {
    color: var(--button-color);
    font-size: 40px;
}

.profile {
    display: flex;
    flex-direction: column;
}

.profile-card {
    width: 500px;
    scroll-margin-top: 120px;
}


.feed-block {
    width: calc(100% - 30px);
    max-height: 1000px;
    margin: 15px;
    object-fit: cover;
    border-radius: 40px;
    background-color: var(--card-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
    box-shadow: 0px 5px 35px 7px rgba(0, 0, 0, 0.15);
}

.feed-image {
    width: calc(100% - 50px);
    max-height: 840px;
    overflow: hidden;
    margin: 25px;
    object-fit: cover;
    border-radius: 40px;
    background-color: var(--card-color);
    box-shadow: 0px 5px 35px 7px rgba(0, 0, 0, 0.15);
}

.top {
    height: 60px;
    display: flex;
    justify-content: space-between;
}

.user {
    margin-left: 20px;
    font-size: 1.5rem;
}

.avatar-placeholder {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc2626, #ff8f8f);
    align-items: center;
    justify-content: center;
    color: var(--font-color);
    font-size: 1.4rem;
}

.user-name {
    display: inline-flex;
    margin-left: 5px;
    color: var(--button-color);
    font-size: x-large;
}

.time {
    display: inline-flex;
    top: 15%;
    margin-left: 15px;
    color: var(--gray-color);
}

#file_input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file_comment {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.text-input {
    margin-top: 20px;
    margin-left: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 24px;
    resize: vertical;
    transition: 0.1s;
    border: none;
    background: none;
    color: var(--gray-color);
}

    .text-input:focus {
        outline: 2px solid #dc2626;
    }

.upload {
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: end;
    gap: 10px;
}

.file-input-label {
    width: 52px;
    height: 52px;
    color: var(--button-color);
    font-weight: 600;
    padding: 14px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.15s;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
}

    .file-input-label i {
        font-size: 1.2rem;
    }

    .file-input-label:hover {
        filter: brightness(90%);
        transform: scale(1.1);
    }

.text-input-label {
    margin-bottom: 10px;
    height: 52px;
    background: var(--button-color);
    color: var(--font-color);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

    .text-input-label i {
        font-size: 1.2rem;
    }

    .text-input-label:hover {
        filter: brightness(90%);
        transform: scale(1.02);
    }

.copy-section {
    margin-top: 20px;
    margin-right: 20px;
    font-size: 24px;
    color: var(--gray-color);
}

    .copy-section:hover {
        cursor: pointer;
    }

.post-content {
    padding: 10px 10px 10px 10px;
}

.post-text {
    margin: 14px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-color);
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 840px;
    overflow: hidden;
}

.bottom-section {
    position: relative;
    top: -10px;
    height: 50px;
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
}

.buttons {
    display: flex;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    transition: all 0.2s;
    width: fit-content;
}

    .like-button i {
        font-size: 24px;
        transition: all 0.2s;
        color: var(--gray-color);
    }

        .like-button i.liked {
            color: var(--button-color);
            transform: scale(1.1);
        }

.views-section {
    margin-right: 10px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    width: fit-content;
}

    .views-section i {
        font-size: 20px;
        color: var(--gray-color);
    }

.count {
    font-size: 16px;
    color: var(--button-color);
}

.comment {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
    border-top: 2px solid #b91c1c;
    border-bottom: 2px solid #b91c1c;
    margin: 25px;
    padding-top: 20px;
}

.comment-block {
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

.load {
    color: var(--button-color);
    text-align: center;
}

.feature-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px solid #b91c1c;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 12px;
}

span {
    display: flex;
    gap: 5px;
}

.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: var(--font-color);
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(2px);
    animation: slideDown 0.3s ease-out, fadeOut 0.3s ease-in 5.2s forwards;
    max-width: 90vw;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0px 5px 35px 7px rgba(0, 0, 0, 0.15);
}

    .toast-notification i {
        font-size: 1.5rem;
        filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    }

@media (max-width: 600px) {
    .sticky {
        position: fixed;
        width: 100%;
        top: auto;
        bottom: 0px;
    }

    .profile-card {
        width: 100%;
        padding-bottom: 120px;
    }

    .top {
        position: relative;
        top: 10px;
    }

    .user {
        font-size: 0.9rem;
    }

    .time {
        top: 25%;
    }

    .upload-prompt-top {
        width: 100%;
    }

    #add {
        width: calc(50% - 5px);
    }

    #add {
        font-size: 0;
        gap: 6px;
    }

        #add:after {
            content: "Главная";
            font-size: 16px;
        }

    #call {
        width: calc(50% - 5px);
    }

    #call {
        font-size: 0;
        gap: 6px;
    }

        #call:after {
            content: "Звонок";
            font-size: 16px;
        }

    #reg {
        width: calc(50% - 5px);
    }

    #reg {
        font-size: 0;
        gap: 6px;
    }

        #reg:after {
            content: "Аккаунт";
            font-size: 16px;
        }
}

@media (max-width: 400px) {
    .text-input-label {
        font-size: 0;
        gap: 6px;
    }

        .text-input-label:after {
            font-size: 1rem;
            content: "Добавить";
        }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -10px);
        visibility: hidden;
    }
}

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