@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #fff;
    overflow-y: scroll; /* прокрутка активна */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow-x: hidden; /* запрещаем горизонтальный скролл */
}

html {
    overflow-y: scroll; /* прокрутка активна */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow-x: hidden; /* запрещаем горизонтальный скролл */
}

/* Для Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px; /* убираем видимый скроллбар */
    background: transparent; /* прозрачный фон */
    overflow-x: hidden; /* запрещаем горизонтальный скролл */
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.wrapper {
    background: linear-gradient(180deg,rgba(0, 0, 0, 1) 0%, rgba(54, 68, 77, 1) 100%);
    width: 100%;
    display: flex;
    min-height: 100vh; 
    flex-direction: column;
}

.container {
    max-width: 1800px; /* максимальная ширина */
    width: 90%;        /* или 100%, или процент от окна */
    margin: 0 auto;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100000;
    padding: 50px 0;
}

header .logo {
  text-transform: uppercase;
  font-size: 29px;
  font-weight: 800;
  color: white;              /* белый текст */
  text-decoration: none;     /* убираем подчёркивание */
  cursor: pointer;           /* показываем, что это кликабельно */
  transition: color 0.3s ease; /* плавный переход цвета */
}

header .logo:hover {
  color: #cccccc;            /* цвет при наведении (немного темнее) */
}


header nav {
    float: right;
}

header nav ul {
    display: flex;
    gap: 20px; /* расстояние между кнопками */
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #fff;
}

header nav ul li.btn a {
    background: #2C2C2C;
    padding: 9px 17px;
    border-radius: 8px;
    transition: all 500ms ease;
}

header nav ul li.btn a:hover {
    background: #5a5a5a;
}

.css-text-mask {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 60vh; /* занимает 60% высоты окна */
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: clamp(6rem, 20vw, 45rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 0.9;
    white-space: nowrap;

    color: white; /* 🌟 делаем непрозрачный белый текст */
    overflow: hidden;
    cursor: default;       /* 🚫 курсор не меняется */
    user-select: none;     /* 🚫 запрет выделения текста */
}

/* Видео фоном */
.css-text-mask video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%; /* растягивается на всю высоту блока */
    transform: translate(-50%, -50%);
    object-fit: cover; /* растягиваем по ширине, обрезаем по высоте */
    object-position: center;
    z-index: 0; /* под текстом */
}

/* Текст поверх видео */
.css-text-mask span {
    position: relative;
    z-index: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .css-text-mask {
        height: 60vh;
        font-size: clamp(3rem, 15vw, 15rem);
    }
}

@media (max-width: 480px) {
    .css-text-mask {
        height: 60vh;
        font-size: 18vw;
    }
}




/* Для мобильных устройств */
@media (max-width: 768px) {
    .css-text-mask {
        font-size: clamp(3rem, 20vw, 15rem);
        letter-spacing: 0.01em;
        padding: 15px 2px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .css-text-mask {
        font-size: 18vw; /* Еще больше на мобильных */
        letter-spacing: 0.02em;
    }
}

.post-scroll-container {
    width: 100%;
    max-width: 1200px;
    height: 810px;
    margin: 80px auto;
    position: relative;
    background: transparent;
    /* Границы только сверху и снизу */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* скрываем скроллбар */
    -ms-overflow-style: none; /* для IE 10+ */
}


/* Кастомизация скроллбара */
.post-scroll-container::-webkit-scrollbar {
    width: 0px; /* убираем ширину скроллбара */
    background: transparent; /* прозрачный фон */
}

.post-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.post-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.post-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Сообщение "Пока нет историй" */
.empty-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

/* Контейнер для постов */
.posts-wrapper {
    padding: 20px;
    min-height: 100%;
}

/* Стили для постов (когда они появятся) */
.post {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}


header nav ul li.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav ul li.profile img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

header nav ul li.profile span {
    font-weight: 500;
}

/* Стили для профиля в навигации */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}


.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.profile-details {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.profile-level,
.profile-class {
    font-weight: 500;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .profile-section {
        gap: 10px;
    }
    
    .profile-link {
        padding: 6px 8px;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .profile-name {
        font-size: 13px;
    }
    
    .profile-details {
        font-size: 11px;
    }
    
    .logout-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .profile-info {
        display: none; /* Скрываем текстовую информацию на очень маленьких экранах */
    }
    
    .profile-section {
        gap: 8px;
    }
}

