/* Profile Setup/Edit CSS */

/* Container and Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.header h1 {
    margin: 0;
    font-size: 32px;
}

.status {
    margin-top: 10px;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s;
}

.step-dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.step-dot.completed {
    background: #28a745;
}

/* Setup Steps */
.setup-step {
    display: none;
    animation: fadeIn 0.3s;
}

.setup-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.step-header p {
    color: #666;
}

/* Avatar Section */
.avatar {
    width: 100px;
    height: 100px;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    background: #f0f0f0;
    border-radius: 50%;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.avatar-option {
    width: 60px;
    height: 60px;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.avatar-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

/* Age Range Select */
.age-range-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.age-option {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.age-option:hover {
    border-color: #007bff;
}

.age-option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Gender Select */
.gender-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gender-option {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-option:hover {
    border-color: #007bff;
}

.gender-option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Interests Section */
.preference-group {
    margin-bottom: 25px;
}

.preference-group h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.interest-tag:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.interest-tag.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.step-navigation .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn {
    background: #6c757d;
    color: white;
}

.btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gender-select {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .age-range-select {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Edit Mode Additions */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #5a6268;
}

/* Success/Error Messages */
.success-message, .error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message.show, .error-message.show {
    display: block;
}
