/**
 * BeHappy User Profiles - CSS
 */

/* Profile Card */
.behappy-profile-card {
    max-width: 1200px;
    margin: 40px auto;
}

.profile-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.profile-company,
.profile-location {
    margin: 5px 0;
    font-size: 1.1em;
    color: #666;
}

.profile-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-section h2 {
    margin: 0 0 20px 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.profile-list {
    list-style: none;
    padding: 0;
}

.profile-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.profile-list li:last-child {
    border-bottom: none;
}

/* User Directory */
.behappy-directory {
    max-width: 1400px;
    margin: 40px auto;
}

.directory-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.user-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.user-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.user-location {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.user-bio {
    color: #555;
    font-size: 0.9em;
    margin: 15px 0;
    line-height: 1.5;
}

.directory-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Edit Profile */
.behappy-edit-profile {
    max-width: 800px;
    margin: 40px auto;
}

.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #0073aa;
    outline: none;
}

.form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

#save-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
}

#save-message.success {
    background: #d4edda;
    color: #155724;
}

#save-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    background: #005177;
    transform: translateY(-2px);
}

.button-primary {
    background: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}

/* Registration Form */
.behappy-registration-form {
    max-width: 800px;
    margin: 40px auto;
}

.behappy-registration-form h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.behappy-registration-form > p {
    color: #666;
    margin-bottom: 30px;
}

.registration-form .form-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.registration-form .form-section h3 {
    margin: 0 0 20px 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.registration-form input.error,
.registration-form select.error,
.registration-form textarea.error {
    border-color: #dc3232;
}

.registration-form .login-link {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.registration-form .login-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.registration-form .login-link a:hover {
    text-decoration: underline;
}

#registration-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
}

#registration-message.success {
    background: #d4edda;
    color: #155724;
}

#registration-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Password strength indicator */
#password-strength {
    margin-top: 5px;
    font-weight: bold;
}

/* Login Form */
.behappy-login-form {
    max-width: 500px;
    margin: 40px auto;
}

.behappy-login-form h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.behappy-login-form > p {
    color: #666;
    margin-bottom: 30px;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.login-form input:focus {
    border-color: #0073aa;
    outline: none;
}

.login-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.login-links p {
    margin: 10px 0;
}

.login-links a {
    color: #0073aa;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

#login-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
}

#login-message.success {
    background: #d4edda;
    color: #155724;
}

#login-message.error {
    background: #f8d7da;
    color: #721c24;
}


