/* Settings Component Styles - Использует стили из global.css */

/* Основной контейнер настроек */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

/* Контент настроек (скрыт в header, используется как шаблон) */
.settings-content {
    display: none;
}

/* Заголовки секций */
.settings-section-title {

    font-family: var(--sans-secondary);
    font-size: var(--md);
    font-weight: var(--rg);
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Элементы настроек */
.settings-item {
    display: flex;
    align-items: center;
    padding: var(--xs) var(--sm);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--sans-primary);

    min-height: 36px;
    opacity: 0.9;
    width: 100%;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.settings-item.active {
    background: rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.4);
    color: var(--yellow);
}

.settings-item i {
    opacity: 0.8;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.settings-item span {
flex: 1;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: var(--secondary);

  font-weight: var(--sb);
}

/* Кнопки сброса */
.reset-btn {
    background: rgba(255, 0, 0, 0.1) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
}

.reset-btn:hover {
    background: rgba(255, 0, 0, 0.2) !important;
    border-color: rgba(255, 0, 0, 0.5) !important;
}

/* Сетка языков */
.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--xs);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--xs);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--sans-primary);
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.language-option.active {
    background: rgba(0, 181, 194, 0.2);
    border-color: rgba(0, 181, 194, 0.4);
    color: var(--turquoise);
}

/* Уведомления */
.settings-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: var(--sm) var(--lg);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--sans-primary);
    font-size: var(--sm);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.settings-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .settings-card {
        width: 100vw;
    }
    
    .settings-notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}

.language-option.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(255, 204, 0, 0.2);
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--yellow);
}

/* Mobile Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.settings-modal.mobile {
    display: flex;
    flex-direction: column;
}

.settings-modal.open {
    opacity: 1;
    visibility: visible;
}

.settings-modal-header {
    background: rgba(20, 20, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--lg);
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.settings-modal-header h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--lg);
    margin: 0;
}

.settings-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--lg);
    cursor: pointer;
    padding: var(--xs);
    border-radius: 6px;
    transition: all 0.3s;
}

.settings-modal-close:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
}

.settings-modal-body {
    background: rgba(15, 15, 20, 0.95);
    flex: 1;
    overflow-y: auto;
    padding: var(--lg);
}

/* Mobile adjustments */
.language-grid.mobile {
    grid-template-columns: repeat(2, 1fr);
}

.language-option.mobile {
    padding: var(--sm);
    font-size: var(--sm);
}

.settings-item.mobile {
    padding: var(--sm) var(--md);

}

/* Bookmark notification */
.bookmark-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: var(--sm) var(--md);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.bookmark-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Font switching animation */
.font-switching {
    transition: font-family 0.3s ease;
}

/* Mobile settings trigger styles */
.mobile-settings-trigger,
.settings-trigger {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

/* Hide settings on mobile by default, show only when trigger exists */
@media (max-width: 768px) {
    .settings-dropdown {
        display: none;
    }
    
    .mobile-settings-trigger {
        display: block;
    }
    
    .settings-modal.mobile {
        display: flex;
    }
}

/* Планшеты: показываем мобильную кнопку настроек */
@media (min-width: 769px) and (max-width: 1024px) {
    .settings-dropdown {
        display: none;
    }
    
    .mobile-settings-trigger {
        display: block !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        position: relative !important;
    }
    
    .settings-modal.mobile {
        display: flex;
    }
    
    .settings-modal {
        display: none !important;
    }
}

/* Десктоп: скрываем мобильную кнопку, показываем обычную */
@media (min-width: 1025px) {
    .settings-modal {
        display: none !important;
    }
    
    .mobile-settings-trigger {
        display: none;
    }
}