/*
    EVE Target Intel - Settings Modal Styles

    Copyright (C) 2025 moregh (https://github.com/moregh/)
    Licensed under AGPL License.
*/

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.active {
    display: flex;
    opacity: 1;
}

.settings-dialog {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--white-1);
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-icon {
    font-size: 1.5rem;
}

.settings-close {
    background: var(--white-05);
    border: 1px solid var(--white-1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: var(--white-08);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.settings-content {
    padding: 2rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.setting-constraint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: normal;
}

.setting-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white-03);
    border: 1px solid var(--white-1);
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.setting-input:focus {
    outline: none;
    background: var(--white-05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.setting-input:hover:not(:focus) {
    border-color: var(--white-2);
}

.setting-input-error {
    border-color: var(--danger-color) !important;
    background: rgba(255, 71, 87, 0.05);
}

.setting-input-error:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15) !important;
}

.setting-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.setting-error::before {
    content: '⚠️';
    font-size: 0.9rem;
}

.setting-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    line-height: 1.4;
}

.setting-default {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.setting-default-value {
    color: var(--primary-color);
    font-weight: 600;
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--white-1);
}

.settings-button {
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.settings-reset {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--danger-color);
}

.settings-reset:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.5);
}

.settings-cancel {
    background: var(--white-05);
    border-color: var(--white-1);
    color: var(--text-primary);
}

.settings-cancel:hover {
    background: var(--white-08);
    border-color: var(--white-2);
}

.settings-save {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.settings-save:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.settings-save:active {
    transform: translateY(0);
}

#settings-button {
    background: var(--white-05);
    border: 1px solid var(--white-1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#settings-button:hover {
    background: var(--white-08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(45deg);
}

#settings-button .settings-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}
