/* меню ссылок на настройки и опции*/
.userhead {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 5px;
    background-color: var(--userhead-bg);
    border-bottom: 2px solid var(--modal-border);    
    min-height: 54px;
}




/* переключатель темы*/

/* Стиль для контейнера */
.theme-switcher {
    display: inline-block;
}

/* Скрываем сам чекбокс */
.theme-switcher #theme-toggle {
    display: none;
}

/* Основной стиль переключателя */
.theme-switcher .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: var(--toggle-bg);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid var(--toggle-border);
}

/* Ползунок внутри переключателя */
.theme-switcher .switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--babr-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Активное состояние (темная тема) */
.theme-switcher #theme-toggle:checked+.switch {
    background: var(--dark-toggle-bg);
    /* Темный фон */
    border: 2px solid var(--dark-toggle-border);
}

.theme-switcher #theme-toggle:checked+.switch::before {
    transform: translateX(30px);
    /* Перемещаем ползунок вправо */
}








/* логические наборы данных в форме, попап или настройках*/

.item {
    padding: 16px 24px 0px 24px;
    margin-bottom: 16px;   
}

.item.pro {
    padding: 16px 72px 0px 24px;
    position: relative;
    border: 1px solid rebeccapurple;
    overflow: hidden;
    background-color: var(--modal-bg);
    opacity: 0.7;
}

.pro::before {
    content: "pro";
    width: 50px;
    height: 20px;
    display: flex;
    position: absolute;
    top: 13px;
    right: 0px;
    justify-content: center;
    align-items: center;
    background: rebeccapurple;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 0 5px 5px 0;
    transform: rotate(90deg);
}

.pro * {
    cursor: default;
}


.hint {
    color:var(--secondary-text);    
    font-weight: 400;
    line-height: normal;
    margin-bottom: 16px;
}


ul.hint {
    list-style-type: disc;
}

.settings h2 + .hint, .forms h2 + .hint {
    margin-top: -35px;
}

.settings h3, .forms h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    margin-top: 30px;
    text-transform: uppercase;
    color:var(--secondary-text);
}

.settings h3:first-child, .forms h3:first-child {
    margin-top: 0px;
} 


/* стили блоков форм*/

.forms {
    width: 96vw;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--modal-border);
    border-radius: 8px;
    background-color: var(--modal-bg);
}

/* стили блоков настроек */ 

.settings {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 96vw;
    max-width: 900px;
    margin: 0 auto;
}


/* Стили для приглашения по email */
.settings .invite-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.settings .invite-message {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
}


.settings .line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.settings .line * {
    margin: 0;
}

/* Стили для списка приглашенных пользователей */

.settings .users-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px;
    border-bottom: 1px dotted var(--modal-border);
}

.settings .users-list div * {
    margin: 0;
}
















/* Стили для блока удаления альбома */
.delete-section {
    background-color: var(--danger-bg);
    border-color: var(--danger-bg) !important;
}

.delete-warning {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-danger:hover {
    background-color: var(--danger-bg-hover);
}

.btn-secondary {
    ackground-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: 1px solid var(--modal-border);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}



/* Модальное окно удаления альбома */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.album-modal-content {
    background: var(--background);
    color: var(--text-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.album-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--modal-border);
    ackground: #000000;
}

.album-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.album-modal-body {
    padding: 20px;
}

.album-warning-text {
    color: var(--danger);
    font-weight: 500;
    margin: 15px 0;
    padding: 10px;
    background-color: var(--danger-bg);
    border-radius: 6px;
}

.album-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--modal-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}








/* редактирование профиля */
.content .profile-container {
    margin: 0 auto;
    width: 1200px;
    max-width: 96%;
    padding: 20px 0px 60px 0px;
    display: flex;        
    margin: 0 auto;
    gap: 40px;
}


/* редактирование профиля. Стили для бокового меню */
.content .profile-container .sidebar {
    flex: 0 0 200px;
    border-right: 1px solid var(--modal-border);
}


.profile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu .ttl {
    color: var(--secondary-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.profile-menu li {
    border-bottom: 1px solid var(--modal-border);
}

.profile-menu li:last-child,
.profile-menu li:first-child {
    border-bottom: none;
}

.profile-menu a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.profile-menu a:hover {
    background-color: var(--toggle-bg);
}

.profile-menu a.active {
    background-color: var(--header-bg);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--modal-border);
}


/* редактирование профиля. блок профиль */

.profile-content {
    width: 100%;
    display: grid;
    grid-template-columns: 200px auto;
    column-gap: 20px;
    row-gap: 20px;
}

.profile-content h3 {
    grid-column: span 2;
    padding-top: 20px;
}

.profile-content p {
    margin-bottom: 0px;
    font-weight: 700;
}

.profile-content .edit-section {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--modal-border);
    margin-bottom: 20px;
}

.avatar-container {
    display: flex;
    gap: 20px;
    justify-content: start;
    align-items: center;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-icon {
    font-size: 16px;
    margin-bottom: 15px;
}


.saving-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--text-color);
    color: var(--background);
    padding: 12px 24px;
    border-radius: 6px;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
    pointer-events: none;
}

.saving-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* редактирование профиля. блок альбомы - список */

.profile-albums-container {
    margin: 0 auto;
    width: 1200px;
    max-width: 96%;
    padding: 20px 0px 60px 0px;
    display: block;
    margin: 0 auto;
}

.profile-albums-container>div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;

}

.profile-albums-container .album-card {

    background: none;
    height: auto;
    box-shadow: none;
}


.profile-albums-container .album-card-content {
    display: block;
    position: relative;
    background: none;
    color: var(--text-color);
}

.profile-albums-container .album-title {
    font-size: 0.9rem;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
}



/* редактирование профиля. блок альбомы - один альбом */


/*********/

/* Анимация для модальных окон */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.album-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}



/* Иконка загрузки для кнопки отправки */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}




