/* static/pages/css/style.css */

/* Для анимаций */
.a-fade-up,
.a-fade-down,
.a-fade-left,
.a-fade-right,
.a-fade,
.a-zoom-in,
.a-stagger,
.a-stagger-r {
    will-change: transform, opacity;
}

/* Основные стили страницы */

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    color: #333;
    /*max-width: 1200px;*/
    margin: 0 auto;
    /*padding: 20px;*/
    background: linear-gradient(to right, #16011a, #350260);
    overflow-x: hidden;
}

@font-face {
    font-family: 'Lemon Tuesday';
    src: url('../fonts/lemon-tuesday.woff2') format('woff2'),
         url('/fonts/lemon-tuesday.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Оптимизация загрузки */
  }

/* Стили шапки */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
    padding-bottom: 10px;
}

/* Основной контент */
.content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.burger-menu-wrap {
    position: relative;
    display: none;
    opacity: 0;
}

.burger-menu {
    position: absolute;
    left: 0;
    top: 80%;
    padding: 30px 50px 30px 50px;
    background: linear-gradient(to right, #3f00ff4a, #ff00ff26);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease;
}

.burger-menu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(15px);
    border-radius: inherit;
    opacity: 1;
    pointer-events: none;
}

.burger-menu ul {
    padding: 0;
}

.burger-menu li {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0 10px 50px; /* Оставляем место для стрелки */
    list-style-type: none;
    text-transform: uppercase;
}

.burger-menu li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.4s;
}

.burger-menu li:hover a {
    color: #ff50ed;
    text-decoration: none;
}

.burger-menu li:hover::before {
    left: 0px;
}

.burger-menu li::before {
    content: ""; /* Можно использовать символ стрелки или любой другой */
    position: absolute;
    left: -10px;
    top: 0;
    width: 35px;
    height: 100%;
    color: #fff; /* Цвет стрелки */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ff00cc'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 50px;
    transition: all 0.4s;
}

.burger-menu-wrap:hover .burger-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

/* Меню в шапке */
.custom-navbar {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 20px;
    margin-right: auto;
    margin-left: auto;
}

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

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 100px;
}

.DUMP___nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 22px;
    border-radius: 23px;
    padding: 5px 20px;
}

.DUMP___nav-link:hover {
    color: #000000;
    background-color: #ffffff;
    transition: color 0.2s;
}

.nav-link {
    display: inline-block;
    padding: 5px 20px;
    background-color: transparent; /* Исходный фон прозрачный */
    color: #ffffff; /* Исходный цвет текста белый */
    text-decoration: none;
    font-size: 22px;
    border-radius: 23px; /* Скругленные углы */
    transition: all 0.3s ease; /* Плавный переход для всех свойств */
    position: relative;
    overflow: hidden; /* Для эффекта волны */
}

.nav-link:hover {
    background-color: #ffffff; /* Белый фон при наведении */
    color: #000000; /* Черный текст при наведении */
    transform: scale(1.05); /* Легкое увеличение */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Свечение */
}

/* Эффект волны */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2); /* Полупрозрачная волна */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-link:hover::before {
    width: 300px; /* Размер волны */
    height: 300px;
}

.nav-link.active {
    background-color: #ffffff; /* Белый фон для активной кнопки */
    color: #000000; /* Черный текст для активной кнопки */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Легкое свечение */
}

.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 28px;
}

.icon-btn:hover, .upload-btn:hover {
    background-color: #1482FA;
    color: #fff;
    cursor: pointer;
}

/* Стили для аватара и всплывающего меню */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-menu {
    position: absolute;
    display: flex;
    right: 0;
    top: 100%;
    width: 426px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.user-menu.none { background: linear-gradient(320deg, #0B1F3E, #4490AD, #58E1B5); }
.user-menu.trial { background: linear-gradient(320deg, #0B1F3E, #4490AD, #58E1B5); }
.user-menu.basic { background: linear-gradient(121deg, rgba(92, 17, 190), rgb(71 147 189)); }
.user-menu.pro { background: linear-gradient(43deg, rgb(190 17 175), rgb(255 248 0)); }

.user-menu::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url(../images/base/а-back.png);
    background-size: auto;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
    border-radius: inherit;
}

.user-menu .left, .user-menu .right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.avatar-wrapper:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.user-menu .user-info {
    margin-bottom: 0px;
    text-align: center;
}

.user-menu .user-info p {
    margin: 0;
    font-size: 22px;
    color: #fff;
    padding-bottom: 0px;
}

.user-menu .user-info p a {
    margin: 0;
    font-size: 16px;
    text-decoration: none;
    color: #cde3ff;
}

.user-menu .user-info p a:hover {
    color: #1482FA;
}

.user-menu .user-info .subscription {
    margin: 0;
    font-size: 16px;
    text-decoration: none;
    color: #dedede;
}

.user-menu .user-info .subscription span {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
}

.user-menu .code {
    position: relative;
    width: 160px;
    height: 84px;
    background-image: url(../images/base/а-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-menu .avatar img {
    border-radius: 10px;
}

.user-menu .acc-button, .user-menu .logout-btn {
    display: block;
    padding: 2px 7px;
    border-radius: 5px;
    background: linear-gradient(320deg, #d6bad996, #bcbcbc78);
    color: #3e3e3e;
    text-decoration: none;
    border: none;
    transition: all 0.5s ease;
}

.user-menu .acc-button:hover, .user-menu .logout-btn:hover {
    background: linear-gradient(320deg, #d6bad9e5, #bcbcbce7);
    padding: 2px 12px;
}

/* Выделенный текст */
.highlight {
    color: #e74c3c;
    font-weight: bold;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-footer {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 35px 0px;
}

.main-footer .footer-buttons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.main-footer .footer-buttons .button-1 {
    background: linear-gradient(to right, #3f00ff, #ff00ff);
    padding: 5px 30px;
    border-radius: 35px;
    font-size: 16px;
    text-align: center;
    position: relative;
    color: #fff;
}

.main-footer .footer-buttons .button-1 p {
    margin: 0px;
}

.main-footer .footer-text {
    text-align: center;
    padding: 30px 0px 10px 0px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

.main-footer .footer-text i.fa-info {
    width: 25px;
    height: 25px;
    font-size: 12px;
    padding: 5px 10px;
    margin-right: 10px;
    color: #ffffff;
    border-radius: 50%;
    border: 1px solid #fff;
    cursor: pointer;
}

.main-footer .footer-text i.fa-info:hover {
    color: #1482fa;
    border: 1px solid #1482fa;
}

.main-footer .footer-text img {
    width: 60px;
}

.main-footer .footer-text p {
    font-size: 16px;
    margin: 0px;
    font-weight: 300;
}

.main-footer .footer-text a {
    color: #ffffff;
    text-decoration: none;
}

.main-footer .footer-text a:hover {
    color: #1482fa;
}

/* Модальное окно */

.modal-content {
    /*background: linear-gradient(344deg, #220088, #000000, #000000, #340034);*/
    /*box-shadow: 0 0 10px rgb(240 0 255 / 40%);*/
    background: linear-gradient(344deg, #2200883b, #00000047, #0000004f, #34003459);
    border-radius: 30px;
    box-shadow: 5px 5px 10px rgb(27 0 29 / 40%);
    border: 1px solid #ffd2e92b;
    backdrop-filter: blur(15px);
}

.modal-header {
    color: #ffffff90;
    border-bottom: 1px solid #572361;
}

.modal-header i {
    font-size: 24px;
}

.modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.modal-body p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
}

.modal-body p a {
    color: #ffffff;
    text-decoration: none;
}

.modal-body p a:hover {
    color: #1482fa;
}

.modal-body h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
}


.modal-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.modal-footer button {
    background-color: transparent;
    border: 1px solid #ffffff90;
    color: #ffffff90;
    border-radius: 25px;
    padding: 8px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.modal-footer button:hover {
    background-color: #572361;
    border: 1px solid #572361;
    color: #cdcdcd;
}

/* Баннер согласия на использование cookies */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-consent-banner--hidden {
    display: none;
}

.cookie-consent-banner__inner {
    background: linear-gradient(344deg, #2200883b, #00000047, #0000004f, #34003459);
    border-radius: 30px;
    box-shadow: 5px 5px 10px rgb(27 0 29 / 40%);
    border: 1px solid #ffd2e92b;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(15px);
}

.cookie-consent-banner__text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    margin: 0;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.cookie-consent-banner__text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-banner__text a:hover {
    color: #1482fa;
}

.cookie-consent-banner__btn {
    background-color: transparent;
    border: 1px solid #ffffff90;
    color: #ffffff90;
    border-radius: 25px;
    padding: 8px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.cookie-consent-banner__btn:hover {
    background-color: #572361;
    border: 1px solid #572361;
    color: #cdcdcd;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-banner__inner {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-consent-banner__text {
        text-align: center;
    }
    
    .cookie-consent-banner__btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Модальное окно техподдержки */

.feedbackModal .modal-content {
    background: linear-gradient(344deg, #c5bcde, #c5a5c9, #d8cef4);
    border-radius: 30px;
    box-shadow: 0 0 10px rgb(240 0 255 / 40%);
    position: relative;
    overflow: hidden;
}

.feedbackModal .modal-content:before {
    background-image: url(../images/base/curves-back.svg);
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-radius: inherit;
    background-size: 194%;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.feedbackModal .modal-header,
.feedbackModal .modal-body,
.feedbackModal .modal-footer {
    position: relative;
    z-index: 1;
    color: #220088;
}

.feedbackModal .modal-header {
    color: #220088;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.feedbackModal .modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    opacity: 0.75;
}

.feedbackModal .modal-body h5 {
    color: #220088;
}

.feedbackModal .modal-body p {
    color: #220088;
}

.feedbackModal .form-label {
    color: #220088 !important;
    font-weight: 600;
}

.feedbackModal .dropdown-toggle {
    background-color: #fbf4ff;
    border: 0;
    color: #220088;
}

.feedbackModal .dropdown-toggle:hover {
    color: #220088;
}

.feedbackModal .dropdown-menu {
    border-radius: 14px;
    background-color: #f8ebff;
    border: 0;
}

.feedbackModal .dropdown-item.active,
.feedbackModal .dropdown-item:active {
    background-color: rgba(81, 0, 255, 0.12);
    color: #ff0000;
}

.feedbackModal .form-control {
    background-color: #fbf4ff;
    color: #220088 !important;
}

.feedbackModal .send-btn {
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    z-index: 1;
    text-transform: uppercase;
    margin: 0 auto;
}

.feedbackModal .send-btn::before {
    background: linear-gradient(to right, #00f, #f0f);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.feedbackModal .send-btn::after {
    background: linear-gradient(to left, #00f, #f0f);
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

.feedbackModal .send-btn:hover::after {
    left: 0;
}

.feedbackModal .send-btn:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Адаптивные стили */
@media (max-width: 999px) {
.custom-navbar .nav-center {
    display: none;
}

}
@media (max-width: 768px) {
    body {
        padding: 0px;
    }
    
    .content {
        padding: 20px;
    }
    
    .custom-navbar .burger-menu-wrap {
    position: relative;
    display: inline-block;
    opacity: 1;
    }
    
    .custom-navbar .nav-right a, .custom-navbar .upload-btn, .custom-navbar .notification-icon {
    display: none;
    }

}

/* Стили для алертов */
.alert {
    border-radius: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@media screen and (max-width: 768px) {    
    .plyr__controls {
        padding-bottom: 32px !important;
    }

    /* Plyr (mobile): play-large видна, когда панель контролов видна */
    .plyr__control--overlaid,
    .plyr__control[data-plyr="play-large"] {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: opacity 0.3s, visibility 0.3s;
    }
    /* Скрывается вместе с plyr__controls при .plyr--hide-controls */
    .plyr--hide-controls .plyr__control--overlaid,
    .plyr--hide-controls .plyr__control[data-plyr="play-large"] {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    /* Небольшой сдвиг иконки паузы влево, когда играет (иконка паузы видна) */
    .plyr--playing .plyr__control--overlaid svg {
        transform: translateX(-2px);
    }

    /* Plyr (mobile): вынести таймлайн под кнопки */
    .plyr--video .plyr__controls {
        display: flex;
        flex-wrap: wrap;
        column-gap: 4px;
    }

    /* Все элементы контролов по умолчанию в первой строке */
    .plyr--video .plyr__controls > * {
        order: 1;
    }

    /* Верхний ряд: время слева, остальные кнопки справа */
    .plyr--video .plyr__time--current.plyr__time {
        order: 0;
        /* margin-right: auto; */
        font-size: 16px;
        font-weight: 500;
        position: absolute;
        bottom: 26px;
        left: 12px;
    }

    /* Нижний ряд: только таймлайн отдельной полосой */
    .plyr--video .plyr__controls__item.plyr__progress__container {
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 4px;
        box-sizing: border-box;
    }
    .plyr--video .plyr__controls__item.plyr__progress__container .plyr__progress {
        max-width: 86%;
        margin: 0 0 0 60px;
        box-sizing: border-box;
    }

    /* Удобнее попадать по громкости на телефоне */
    .plyr--video .plyr__controls__item.plyr__volume {
        min-width: 140px;
    }
    .plyr--video .plyr__controls__item.plyr__volume input[data-plyr="volume"] {
        min-width: 140px;
        touch-action: pan-y;
    }

    /* Чуть увеличить размер всех кнопок в панели */
    .plyr--video .plyr__controls .plyr__control {
        padding: 6px 10px;
        min-width: 36px;
        min-height: 36px;
    }
    .plyr--video .plyr__controls .plyr__control svg {
        width: 22px;
        height: 22px;
    }

    /* Plyr (mobile): flash overlay for double-tap seek */
    .plyr__dblseek-overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50%;
        /* background set per-side (left/right) */
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 3; /* above video, below controls (usually) */
    }
    .plyr__dblseek-overlay--left {
        left: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
    }
    .plyr__dblseek-overlay--right {
        right: 0;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
    }
    .plyr__dblseek-overlay.is-active { opacity: 1; }

    .plyr__dblseek-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateY(6px);
        opacity: 0;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 700;
        font-size: 22px;
        letter-spacing: 0.2px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
        user-select: none;
        white-space: nowrap;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .plyr__dblseek-overlay.is-active .plyr__dblseek-label {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}



@media screen and (max-width: 630px) {
    .plyr--video .plyr__controls__item.plyr__progress__container .plyr__progress {
        max-width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .plyr--video .plyr__time--current.plyr__time {
        line-height: 14px;
	bottom: 34px;
    }

    .plyr--video .plyr__controls__item.plyr__progress__container .plyr__progress {
        max-width: 76%;
    }
}

@media screen and (max-width: 390px) {
    .plyr--video .plyr__controls__item.plyr__volume {
        min-width: 100px;
    }
    .plyr--video .plyr__controls__item.plyr__volume input[data-plyr="volume"] {
        min-width: 100px;
    }

    .plyr--video .plyr__controls .plyr__control {
        padding: 0 4px;
        min-width: auto;
        min-height: auto;
    }

    .plyr--video .plyr__controls__item.plyr__progress__container .plyr__progress {
        max-width: 70%;
    }
}

