/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Темный фон по умолчанию */
    color: #f2f2f2; /* Светлый текст */
    transition: background-color 0.3s, color 0.3s;
    min-width: 360px;
}

/* Общий контейнер для центрирования */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



/* =====================================        Шапка */
header {
    background-color: #2b2b2b;
/*    border-bottom: 1px solid #444;*/
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-side {
    display: flex;
    align-items: center;
}

.logo div {
    height: 100%;
    margin-right: 15px;
    font-size: 25pt;
}

.language-selector select {
    padding: 5px;
    font-size: 16px;
    background-color: #2b2b2b;
    color: #f2f2f2;
    border: none;
}

.lang-value {
    height: 30px;
    min-height: 30px;
    border: none;
}

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

/* =====================================        Меню */
.main-menu {
    display: flex;
    align-items: center;
}

.menu-desktop {
    align-items: center;
}
.menu-mobile{
    display: flex;
    align-items: center;
    margin-left: 10px;
    display: none;
}


.messages-btn {
    position: relative;
}

.messages-btn .message-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 3px 6px;
}

.user-menu {
    position: relative;
}
.menu-dropdown-button{
    outline: none;
    height: 50px;
    width: 50px;
    border: none;
    font-size: 25pt;
    background-color: transparent;
    color: white;
}

.dropdown-menu-not-authenticated {
    width: 70%;
    position: absolute;
    display: none;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index:10;
    margin:0;
    padding:5px;
    top:100px;
    left:0px;
    flex-direction: column;
    padding: 5px;
    border-radius: 0 0 5px 5px;
}
.dropdown-menu-not-authenticated a{
    border-radius: 5px;
}

.dropdown-menu-not-authenticated a:hover{
    background-color: #444;
}

.dropdown-menu a {
    color: #f2f2f2;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #444;
}

.user-menu:hover .dropdown-menu {
    display: block;
}


/* =====================================        Дарк мод */
.right-side .darkmode-toggle {
    margin-left: 20px;
    cursor: pointer;
    color: #f2f2f2;
    border: none;
    background: none;
    transition: color 0.3s;
}

.right-side {
    color: #d4d4d4;
}

.register-btn,
.login-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    color: #fff;
}
.register-btn:hover,
.login-btn:hover {
    color: orange;
    text-decoration: none;
}



/* =====================================        Слайдер */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    background-color: #000;
}

.slider .slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slider .slide {
    min-width: 100%;
    height: 400px;
}

.slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider .dot {
    width: 12px;
    height: 12px;
    background-color: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider .dot.active {
    background-color: #f2f2f2;
}

/* ========================         Секция с карточками пользователей */
/* Секция с карточками пользователей */
.user-cards .container {
    display: flex;
    flex-wrap: wrap; /* Позволяет карточкам переходить на новую строку, если не помещаются */
    justify-content: space-around; /* Распределение карточек с равными отступами */
    gap: 15px; /* Расстояние между карточками */
    padding: 15px; /* Внутренние отступы для секции */
}

.user-cards .user-card {
    width: 250px;
    height: 370px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-cards .user-card:hover {
    transform: scale(1.05);
}

.user-card .user-image {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
}

.user-card .user-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.user-card .status-indicator {
    position: absolute;
    top: 15px;
    left: 13px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-image: url('https://timerfix.com/img/user_offline.png');
/*    border: 3px solid white;*/
}

/*.user-card[data-online="true"] .status-indicator {
    background-image: url('https://timerfix.com/img/user_online.png');
}
.user-card[data-online="false"] .status-indicator {
    background-image: url('https://timerfix.com/img/user_offline.png');
}*/


.user-card .like-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    fill: white;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.user-card .like-icon:hover {
    fill: red;
}

.user-card .user-info {
    padding: 10px;
    background-color: #2b2b2b;
}

.user-card .user-meta {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Распределение ника и возраста по краям */
    gap: 5px;
}

.user-card .verified-badge {
    color: blue;
    font-size: 18px;
    width: 25px;
    height: 25px;
}

.user-card .user-name {
    font-size: 18px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.user-card .user-age {
    font-size: 18px;
    color: #aaa;
    margin-left: 10px;
}

.user-card .user-city {
    margin-top: 5px;
    color: #aaa;
    font-size: 16px;
    text-align: left;
}



/* Анимация сердечка при двойном клике */
@keyframes like-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

.user-card .like-icon.liked {
    animation: like-animation 0.5s ease;
    fill: red;
}


/*.user-cards .user-card,
.user-cards .ad-card {
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
    text-align: center;
}

.user-cards .user-card img {
    width: 100%;
    border-radius: 50%;
    min-width: 100px;
    min-height: 150px;
    max-width: 160px;
}

.user-cards .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.user-cards h3{
    min-width: 250px;
}*/

/* Информативный блок */
.info-block {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    background-color: #1a1a1a;
}

.info-block .info {
    text-align: center;
}

.info-block .counter {
    font-size: 2em;
    color: #f2f2f2;
}

/* Нижний блок (Footer) */
footer {
    background-color: #333;
    color: #f2f2f2;
    padding: 20px 0;
}

footer .footer-section {
    margin-bottom: 20px;
}

footer .footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #444;
}

footer .footer-links a {
    color: #f2f2f2;
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-links a:hover {
    text-decoration: underline;
}



/* Адаптивные стили */
@media (max-width: 768px) {
    /* Скрываем десктопное меню и показываем мобильное на маленьких экранах */
    .menu-desktop {
        display: none;
    }

    .menu-mobile {
        display: flex;
        border: none;
    }

    /* Слайдер */
    .slider {
        height: 200px;
    }

    .slider .slide {
        height: 200px;
    }

    .user-cards .user-card {
        width: 200px;
        height: 310px;
    }
    .user-card .user-image {
        height: 230px;
    }


    .info-block {
        flex-direction: column;
        text-align: center;
    }
    /*
    .user-cards .container {
        flex-direction: column;
    }
    */

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 430px) {
    .titel {
        display: none;
    }
    .menu-mobile {
        width: 40px;
    }
}





/* Темная тема */
body.darkmode {
    background-color: #1a1a1a;
    color: #f2f2f2;
}

body.darkmode header {
    background-color: #2b2b2b;
    border-bottom-color: #444;
}

body.darkmode .slider .dot.active {
    background-color: #f2f2f2;
}
button:hover, .darkmode-toggle:hover{
    color: orange;
    transition: color 0.3s;
}
/*button:focus{
    outline: none;
}*/