/* ChessBlock Settings Page - Branded Styling */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* Override body background with ChessBlock gradient */
body {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Settings container with proper spacing for sidebar */
.settings-container {
    padding: 40px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Settings header with Orbitron font */
.settings-header h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px !important;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.settings-header p {
    color: #e0e7ff !important;
    font-size: 15px !important;
}

/* Glassmorphism cards */
.settings-section {
    background: rgba(30, 27, 75, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.settings-section h2 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Form elements with glassmorphism */
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(15, 17, 24, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2),
                0 0 20px rgba(168, 85, 247, 0.3) !important;
}

.form-group label {
    font-weight: 600 !important;
    color: #e0e7ff !important;
    font-size: 14px !important;
}

.form-group small {
    color: #c4b5fd !important;
}

/* Buttons with ChessBlock branding */
.btn {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(45, 46, 58, 0.8) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-secondary:hover {
    background: rgba(58, 59, 74, 0.9) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

/* Wallet info card */
.wallet-info {
    background: rgba(15, 17, 24, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.wallet-icon {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.wallet-address {
    color: #c4b5fd !important;
}

/* Profile picture section with glassmorphism */
.profile-picture-section {
    background: rgba(15, 17, 24, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(5px) !important;
}

.profile-picture-preview {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    border: 3px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.profile-picture-placeholder {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
}

.profile-picture-controls h3 {
    font-family: 'Orbitron', sans-serif !important;
    color: #ffffff !important;
}

.profile-picture-controls p {
    color: #c4b5fd !important;
}

/* Upload button */
.upload-btn-wrapper .btn {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
}

/* Progress bar */
.progress-bar {
    background: rgba(45, 46, 58, 0.6) !important;
    backdrop-filter: blur(5px) !important;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6) !important;
}

/* Notification items with glassmorphism */
.notification-item {
    background: rgba(15, 17, 24, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s !important;
}

.notification-item:hover {
    background: rgba(15, 17, 24, 0.8) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    transform: translateX(4px);
}

.notification-info h4 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.notification-info p {
    color: #c4b5fd !important;
}

/* Toggle switch with ChessBlock colors */
.toggle-slider {
    background-color: rgba(45, 46, 58, 0.8) !important;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
}

.toggle-slider::before {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Success and error messages with glassmorphism */
.success-message {
    background: rgba(16, 185, 129, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.error-message {
    background: rgba(239, 68, 68, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

/* Analysis credits display */
#analysisCredits {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3) !important;
    font-family: 'Orbitron', sans-serif !important;
}

/* HR separator */
hr {
    border: none !important;
    border-top: 1px solid rgba(168, 85, 247, 0.3) !important;
    margin: 24px 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .settings-container {
        padding: 100px 20px 20px !important;
    }

    .settings-header h1 {
        font-size: 28px !important;
    }

    .settings-section {
        padding: 24px !important;
    }

    .profile-picture-section {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 27, 75, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}
