@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Оптимизация загрузки изображений */
img {
    image-rendering: auto;
    max-width: 100%;
    height: auto;
}

/* Только для растровых изображений (PNG, JPG) */
img[src$=".png"],
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".webp"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    background-color: #1E1E1E;
    margin: 0;
    overflow-x: hidden;
}

/* HEADER */
.top-block {
    width: 350px;
    height: 50px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* liquid glass */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 50px;

    border-radius: 100px;

    margin: 0;  
    margin-bottom: 0;
}

.top-block button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-block button img {
    display: block;
}

.top-block button,
.top-block a.btn-home {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-home img,
.btn-menu img {
    width: 20px;
    height: 20px;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: opacity 0.2s ease;
}

.nav-news,
.nav-products {
    font-size: 16px;
    color: #3E3E3E;
    margin: 0;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;      
    text-decoration: none;
}

.nav-news:hover,
.nav-products:hover {
    color: white;
}

.btn-menu img {
    width: 31px;
    height: 31px;
}

.btn-home .icon-hover,
.btn-menu .icon-hover {
    display: none;
}

.btn-home .icon-normal,
.btn-menu .icon-normal {
    display: block;
}

.btn-home:hover .icon-normal,
.btn-menu:hover .icon-normal {
    display: none;
}

.btn-home:hover .icon-hover,
.btn-menu:hover .icon-hover {
    display: block;
}

.menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-dropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 350px;
    height: 194px;
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border-radius: 20px;

    isolation: isolate;
}

.menu-dropdown.menu-dropdown-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-dropdown-link {
    display: block;
    padding: 12px 16px;
    font-size: 32px;
    font-weight: 500;
    color: #3E3E3E;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown-link:hover {
    color: white;
}

.menu-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

/* END HEADER */

/* ============================================
   MAIN BLOCK
   ============================================ */
.posts-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 20px 60px;
    justify-content: center;
    min-height: 100vh;
}

.label-new {
    width: 138px;
    height: 56px;
    border-radius: 100px;
    border: none;
    background-image: url('../images/news/label-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* --- POST CONTAINERS --- */
.new-post,
.post {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* ============================================
   NEW POST - BRIGHTER (Ярче)
   ============================================ */
.header-new-post {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 100px;
    /* Liquid Glass - BRIGHTER */
    background: hsla(29, 77%, 19%, 0.312);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: flex-start;
    margin: 0 0 10px 0;
    padding: 10px;
}

.avatar-cycle {
    width: 80px;
    height: 80px;
    /* Liquid Glass - BRIGHTER (золотой яркий) */
    background: rgba(201, 142, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 142, 15, 0.5);
    box-shadow: 0 4px 24px rgba(201, 142, 15, 0.3);
    border-radius: 100px;
    cursor: pointer;
    margin-left: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.avatar-photo {
    width: 80px;
    height: 80px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    object-fit: cover;
    display: block;
    margin: 0;
    border: 3px solid rgba(201, 142, 15, 0.7);;
}

.title-new-post,
.subtitle-new-post {
    grid-column: 2;
    text-align: center;
    margin: 0;
}

.title-new-post {
    color: #C98E0F;
    font-size: 28px;
    font-weight: bold;
    max-width: 100%;
    margin: 17px 0 4px 0;
    word-wrap: break-word;
}

.subtitle-new-post {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    margin: -35px 0 0 0;
    word-wrap: break-word;
}

.content-new-post {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 400px;
    /* Liquid Glass - BRIGHTER */
    background: hsla(29, 77%, 19%, 0.312);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

.content-new-post-text,
.line-new-post {
    color: white;
    font-size: 32px;
    font-weight: normal;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.line-new-post-1, .line-new-post-2,
.line-new-post-3, .line-new-post-4 {
    margin-bottom: 30px;
}

.highlight {
    font-weight: 500;
}

.bottom-new-post {
    display: flex;
    align-items: center;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.time-post {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    color: #7a6945c8;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.hashtag {
    font-weight: normal;
    color: #C98D0F;
    margin: 0;
    margin-left: 8px;
    font-size: 25px;
    white-space: nowrap;
}

.btn-supports {
    width: 104px;
    height: 40px;
    /* Liquid Glass - BRIGHTER (фиолетовый яркий) */
    background: rgba(171, 94, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(171, 94, 255, 0.5);
    box-shadow: 0 4px 24px rgba(171, 94, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn-supports {
    width: 20px;
    height: 20px;
}

.label-supports {
    color: #AB5EFF;
    font-size: 25px;
    font-weight: 400;
    white-space: nowrap;
}

.btn-share {
    width: 131px;
    height: 40px;
    /* Liquid Glass - BRIGHTER (зелёный яркий) */
    background: rgba(82, 184, 81, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(82, 184, 81, 0.5);
    box-shadow: 0 4px 24px rgba(82, 184, 81, 0.3);
    border-radius: 100px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn-share {
    width: 20px;
    height: 20px;
}

.label-share {
    color: #52B851;
    font-size: 25px;
    font-weight: 400;
    white-space: nowrap;
}

.separator-new-post {
    width: 100%;
    max-width: 700px;
    height: 1px;
    background: #464646;
    border: none;
    border-radius: 12px;
    margin: 20px auto;
}

.hidden {
    display: none;
}

/* ============================================
   COMMON POSTS - DARKER (Темнее)
   ============================================ */
.post {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.header-post {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 100px;
    /* Liquid Glass - DARKER */
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px 0;
    padding: 10px;
}

.header-author {
    width: 100px;
    height: 100px;
    /* Liquid Glass - DARKER */
    background: rgba(28, 28, 28, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-icon {
    width: 80px;
    height: 80px;
    border-radius: 100px;
    border: 3px solid white;
    cursor: pointer;
    object-fit: cover;
}

.header-title-post {
    width: 100%;
    max-width: 588px;
    height: auto;
    min-height: 100px;
    /* Liquid Glass - DARKER */
    background: rgba(28, 28, 28, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex: 1;
}

.title-post,
.subtitle-post {
    margin: 0;
    text-align: center;
}

.title-post {
    font-size: 30px;
    font-weight: bold;
    color: white;
    word-wrap: break-word;
}

.subtitle-post {
    font-size: 20px;
    font-weight: 400;
    color: #979797;
    word-wrap: break-word;
}

.content-post,
.content-post-vihi {
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 400px;
    /* Liquid Glass - DARKER */
    background: rgba(28, 28, 28, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

.line-post {
    color: white;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.line-post-1, .line-post-2,
.line-post-3, .line-post-4,
.line-post-5 {
    margin-bottom: 30px;
}

.picture,
.picture-volp,
.picture-vihi {
    width: 100%;
    max-width: 658px;
    height: auto;
    min-height: 200px;
    border-radius: 30px;
    border: none;
    margin-bottom: 20px;
    object-fit: cover;
}

.description-picture {
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: #7E7E7E;
    width: 100%;
}

.text-post {
    margin-bottom: 40px;
}

.bottom-post {
    display: flex;
    align-items: center;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-post .time-post {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    color: #6a6a6ac1;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.bottom-post .hashtag {
    font-weight: normal;
    color: #C98D0F;
    margin: 0;
    margin-left: 8px;
    font-size: 25px;
    white-space: nowrap;
}

.bottom-post .btn-supports {
    width: 104px;
    height: 40px;
    /* Liquid Glass - DARKER (фиолетовый тёмный) */
    background: rgba(171, 94, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(171, 94, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.bottom-post .icon-btn-supports {
    width: 20px;
    height: 20px;
}

.bottom-post .label-supports {
    color: #AB5EFF;
    font-size: 25px;
    font-weight: 400;
    white-space: nowrap;
}

.bottom-post .btn-share {
    width: 131px;
    height: 40px;
    /* Liquid Glass - DARKER (зелёный тёмный) */
    background: rgba(82, 184, 81, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(82, 184, 81, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.bottom-post .icon-btn-share {
    width: 20px;
    height: 20px;
}

.bottom-post .label-share {
    color: #52B851;
    font-size: 25px;
    font-weight: 400;
    white-space: nowrap;
}

/* ============================================
   AUTHOR AVATAR INTERACTION STYLES
   ============================================ */
   .author-avatar-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.author-avatar-clickable:hover {
    transform: scale(1.05);
}

.author-avatar-clickable:active {
    transform: scale(0.95);
}

/* Tooltip при наведении */
.author-avatar-clickable::after {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.author-avatar-clickable:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Focus для доступности */
.author-avatar-clickable:focus {
    outline: 2px solid #C98E0F;
    outline-offset: 2px;
}

/* ============================================
   LOADING INDICATOR STYLES
   ============================================ */
.author-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.author-page-loader.active {
    opacity: 1;
    pointer-events: auto;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #C98E0F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* BASEMENT */
.basement {
    width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;      /* растягиваем детей по ширине */
  position: relative;
  margin: 0 auto 0px;
  padding: 0 24px 24px;
}

.basement > * {
    width: min(100%, 1000px);  /* максимум 1000px, но не шире экрана */
    margin-inline: auto;       /* центрируем внутри basement */
}

.footer__list {
  font-size: clamp(10px, 1.2vw, 12px);  /* плавный размер шрифта */
  color: #7F7F7F;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 16px;
}

.footer__list p {
  margin: 4px 0 8px;         /* вертикальный интервал между абзацами */
}

.footer__list p:last-child {
  margin-bottom: 0;
}

.separator {
  height: 1px;
  background-color: #7F7F7F;
  margin-top: 12px;
}

.basement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px; /* чтобы на узких экранах элементы не слипались */
}

.title-copyright,
.title-country {
  font-size: clamp(10px, 1.2vw, 14px);
  color: #7F7F7F;
}

/* ============================================
   MEDIA QUERIES - TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
    .posts-section {
        padding: 90px 15px 50px;
    }

    

    .title-new-post {
        font-size: 24px;
    }

    .title-post {
        font-size: 26px;
    }

    .subtitle-new-post,
    .subtitle-post {
        font-size: 18px;
    }

    .content-new-post-text,
    .line-new-post,
    .line-post {
        font-size: 24px;
    }

    .avatar-cycle,
    .avatar-photo {
        width: 60px;
        height: 60px;
    }

    .header-author {
        width: 80px;
        height: 80px;
    }

    .author-icon {
        width: 60px;
        height: 60px;
    }

    .time-post,
    .hashtag {
        font-size: 20px;
    }

    .label-supports,
    .label-share {
        font-size: 20px;
    }

    .description-picture {
        font-size: 24px;
    }

    /* Basement */
    .separator {
        margin-top: 20px;
    }

    .basement-footer {
        margin-top: 8px;
    }

    .title-copyright,
    .title-country {
        font-size: 10px;
    }
}

/* ============================================
   MEDIA QUERIES - MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .author-avatar-clickable::after {
        font-size: 10px;
        bottom: -25px;
    }

    .posts-section {
        padding: 80px 15px 40px;
    }

    

    /* Posts */
    .new-post,
    .post {
        margin-bottom: 30px;
    }

    .label-new {
        width: 120px;
        height: 48px;
    }

    .header-new-post,
    .header-post {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .header-post {
        flex-direction: column;
        text-align: center;
    }

    .avatar-cycle,
    .avatar-photo {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .header-author {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .author-icon {
        width: 50px;
        height: 50px;
    }

    .title-new-post {
        font-size: 20px;
        margin: 10px 0 4px 0;
    }

    .title-post {
        font-size: 22px;
    }

    .subtitle-new-post {
        font-size: 16px;
        margin: 0;
    }

    .subtitle-post {
        font-size: 16px;
    }

    .content-new-post,
    .content-post,
    .content-post-vihi {
        padding: 15px;
        border-radius: 20px;
        min-height: 300px;
    }

    .content-new-post-text,
    .line-new-post,
    .line-post {
        font-size: 18px;
        line-height: 1.5;
    }

    .line-new-post-1, .line-new-post-2,
    .line-new-post-3, .line-new-post-4,
    .line-post-1, .line-post-2,
    .line-post-3, .line-post-4,
    .line-post-5 {
        margin-bottom: 20px;
    }

    .picture,
    .picture-volp,
    .picture-vihi {
        min-height: 150px;
        border-radius: 20px;
    }

    .description-picture {
        font-size: 16px;
    }

    /* Bottom Post */
    .bottom-new-post,
    .bottom-post {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-top: 20px;
    }

    .time-post {
        position: static;
        transform: none;
        font-size: 18px;
        margin-bottom: 10px;
        width: 100%;
    }

    .hashtag {
        font-size: 18px;
        margin-left: 0;
        text-align: center;
    }

    .btn-supports,
    .btn-share {
        width: 100%;
        max-width: 280px;
        height: 45px;
        margin: 0 auto;
    }

    .label-supports,
    .label-share {
        font-size: 20px;
    }

    .icon-btn-supports,
    .icon-btn-share {
        width: 18px;
        height: 18px;
    }

    .separator-new-post {
        max-width: 100%;
    }

    /* Basement */
    .separator {
        margin-top: 20px;
    }

    .basement-footer {
        margin-top: 8px;
    }

    .title-copyright,
    .title-country {
        font-size: 10px;
    }
}

/* ============================================
   MEDIA QUERIES - SMALL MOBILE (360px)
   ============================================ */
@media (max-width: 360px) {
    .posts-section {
        padding: 70px 10px 30px;
    }

    .label-new {
        width: 100px;
        height: 42px;
    }

    .avatar-cycle,
    .avatar-photo {
        width: 45px;
        height: 45px;
    }

    .header-author {
        width: 60px;
        height: 60px;
    }

    .author-icon {
        width: 45px;
        height: 45px;
    }

    .title-new-post {
        font-size: 18px;
    }

    .title-post {
        font-size: 20px;
    }

    .subtitle-new-post,
    .subtitle-post {
        font-size: 14px;
    }

    .content-new-post-text,
    .line-new-post,
    .line-post {
        font-size: 16px;
    }

    .time-post,
    .hashtag {
        font-size: 16px;
    }

    .label-supports,
    .label-share {
        font-size: 18px;
    }

    .description-picture {
        font-size: 14px;
    }

    .btn-supports,
    .btn-share {
        height: 40px;
    }

    /* Basement */
    .separator {
        margin-top: 20px;
    }

    .basement-footer {
        margin-top: 8px;
    }

    .title-copyright,
    .title-country {
        font-size: 10px;
    }
}