/* Settings Page Styles */
.settings-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 12px;
}

.settings-header {
    margin-bottom: 20px;
    text-align: center;
}

.settings-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    font-family: 'Roboto', sans-serif;
}

.settings-subtitle {
    font-size: 14px;
    color: #b3b3b3;
    font-weight: 400;
    margin: 0;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-section {
    background-color: #1a1a1b;
    border-radius: 8px;
    border: 1px solid #343536;
    overflow: hidden;
}

.settings-section-header {
    padding: 12px 16px;
    border-bottom: 1px solid #343536;
    background-color: #272729;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px 0;
    font-family: 'Roboto', sans-serif;
}

.settings-section-description {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    font-weight: 400;
}

.settings-section-content {
    padding: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: #d7dadc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #343536;
    border-radius: 6px;
    background-color: #1a1a1b;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #157c9b;
    box-shadow: 0 0 0 2px rgba(21, 124, 155, 0.2);
}

.form-input::placeholder {
    color: #818384;
}

.form-input.readonly {
    background-color: #272729;
    color: #818384;
    cursor: not-allowed;
    border-color: #4a4a4a;
}

.form-input.readonly:focus {
    border-color: #4a4a4a;
    box-shadow: none;
}

.bio-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
    line-height: 1.6;
}

.form-help-text {
    font-size: 12px;
    color: #818384;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #343536;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #157c9b;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 14px;
    color: #d7dadc;
    font-weight: 500;
    user-select: none;
}

/* Social Account Styles */
.social-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #343536;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: #272729;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.social-account-item:hover {
    border-color: #4a4a4a;
    background-color: #2d2d2e;
}

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

.social-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-account-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.github-icon {
    background-color: #24292e;
    color: #ffffff;
}

.x-icon {
    background-color: #000000;
    color: #ffffff;
}

.google-icon {
    background-color: #ffffff;
    color: #000000;
}

.social-account-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-account-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.social-account-status {
    font-size: 12px;
    font-weight: 500;
}

.social-account-status.connected {
    color: #00d4aa;
}

.social-account-status.not-connected {
    color: #818384;
}

.social-account-btn {
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.social-account-btn.connect {
    background-color: #157c9b;
    border-color: #157c9b;
    color: #ffffff;
}

.social-account-btn.connect:hover {
    background-color: #12637c;
    border-color: #12637c;
}

.social-account-btn.disconnect {
    background-color: transparent;
    border-color: #e53e3e;
    color: #e53e3e;
}

.social-account-btn.disconnect:hover {
    background-color: #e53e3e;
    color: #ffffff;
}

.social-account-status-display {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

.social-account-status-display.connected-disabled {
    background-color: #4a4a4a;
    color: #818384;
    border: 1px solid #4a4a4a;
    cursor: not-allowed;
}

/* Profile Picture Styles */
.profile-picture-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.current-profile-picture {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #272729;
    border-radius: 8px;
    border: 1px solid #343536;
}

.profile-picture-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #157c9b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.profile-picture-preview:hover {
    transform: scale(1.05);
}

.profile-picture-preview:hover .profile-picture-overlay {
    opacity: 1;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
}

.profile-picture-info {
    flex: 1;
}

.profile-picture-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px 0;
    font-family: 'Roboto', sans-serif;
}

.profile-picture-description {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    font-weight: 400;
}

.profile-picture-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-picture-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    border: 1px solid;
}

.profile-picture-btn.primary {
    background-color: #157c9b;
    border-color: #157c9b;
    color: #ffffff;
}

.profile-picture-btn.primary:hover {
    background-color: #12637c;
    border-color: #12637c;
}

.profile-picture-btn.secondary {
    background-color: transparent;
    border-color: #e53e3e;
    color: #e53e3e;
}

.profile-picture-btn.secondary:hover {
    background-color: #e53e3e;
    color: #ffffff;
}

.profile-picture-btn svg {
    flex-shrink: 0;
}

.profile-picture-requirements {
    padding: 12px;
    background-color: #272729;
    border-radius: 6px;
    border: 1px solid #343536;
}

.requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    font-family: 'Roboto', sans-serif;
}

.requirements-list {
    margin: 0;
    padding-left: 12px;
    list-style: none;
}

.requirements-list li {
    position: relative;
    font-size: 11px;
    color: #b3b3b3;
    margin-bottom: 2px;
    font-weight: 400;
}

.requirements-list li:before {
    content: "•";
    color: #157c9b;
    font-weight: bold;
    position: absolute;
    left: -12px;
}

.requirements-list li:last-child {
    margin-bottom: 0;
}

/* Profile Picture Upload States */
.profile-picture-preview.uploading {
    opacity: 0.7;
    cursor: not-allowed;
}

.profile-picture-preview.uploading .profile-picture-overlay {
    opacity: 1;
    background-color: rgba(21, 124, 155, 0.8);
}

.profile-picture-preview.uploading .profile-picture-overlay svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Profile Picture */
@media (max-width: 768px) {
    .current-profile-picture {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .profile-picture-actions {
        justify-content: center;
    }
    
    .profile-picture-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .profile-picture-actions {
        flex-direction: column;
    }
    
    .profile-picture-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Save Button Styles */
.settings-save-btn {
    background-color: #157c9b;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Roboto', sans-serif;
    margin-top: 8px;
}

.settings-save-btn:hover {
    background-color: #12637c;
}

.settings-save-btn:active {
    background-color: #0d485a;
}

/* NSFW Options Styles */
.nsfw-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nsfw-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid #343536;
    border-radius: 8px;
    background-color: #272729;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nsfw-option:hover {
    border-color: #4a4a4a;
    background-color: #2d2d2e;
}

.nsfw-option input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #157c9b;
}

.nsfw-option input[type="radio"]:checked ~ .nsfw-option-content {
    opacity: 1;
}

.nsfw-option input[type="radio"]:checked {
    accent-color: #157c9b;
}

.nsfw-option:has(input[type="radio"]:checked) {
    border-color: #157c9b;
    background-color: rgba(21, 124, 155, 0.1);
}

.nsfw-option-content {
    flex: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nsfw-option:has(input[type="radio"]:checked) .nsfw-option-content {
    opacity: 1;
}

.nsfw-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.nsfw-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.nsfw-option-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nsfw-option-badge.safe {
    background-color: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

.nsfw-option-badge.semi {
    background-color: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

.nsfw-option-badge.nsfw {
    background-color: rgba(229, 62, 62, 0.2);
    color: #e53e3e;
}

.nsfw-option-description {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
    line-height: 1.5;
}

/* Social Account Status Display for Not Connected */
.social-account-status-display {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    user-select: none;
    background-color: #4a4a4a;
    color: #818384;
    border: 1px solid #4a4a4a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 12px 8px;
    }
    
    .settings-title {
        font-size: 20px;
    }
    
    .settings-section-header {
        padding: 10px 12px;
    }
    
    .settings-section-content {
        padding: 12px;
    }
    
    .social-account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .social-account-btn {
        align-self: flex-end;
    }
    
    .nsfw-option {
        padding: 12px;
    }
    
    .nsfw-option-title {
        font-size: 14px;
    }
    
    .nsfw-option-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .settings-container {
        padding: 8px 6px;
    }
    
    .settings-section-header {
        padding: 8px 10px;
    }
    
    .settings-section-content {
        padding: 10px;
    }
    
    .social-account-info {
        width: 100%;
    }
    
    .social-account-btn {
        width: 100%;
        text-align: center;
    }
    
    .nsfw-option {
        padding: 10px;
    }
}