/* Profile Page Styles */
.content-container {
    padding-top: 64px;
    min-height: 100vh;
    background: var(--bg-color);
}

/* Password Field with Toggle */
.password-field {
    position: relative;
    display: block; /* Changed from flex for better Android compatibility */
    width: 100%;
}

.password-field .form-input {
    padding-right: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 10; /* Higher z-index for Android */
    height: 2rem; /* Explicit height for Android */
    width: 2rem; /* Explicit width for Android */
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.password-toggle i {
    font-size: 1.1rem;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Direct styling for title and subtitle (like status and favorites pages) */
.profile-container > .profile-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.profile-container > .profile-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

.profile-card {
    background: var(--card-background);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.profile-card-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-card-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.profile-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

/* Profile Picture Styles */
.profile-picture-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    background: var(--card-background);
    transition: border-color 0.2s ease;
}

.profile-picture-container:hover .profile-picture {
    border-color: var(--secondary-color);
}

.profile-picture-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 20;
    align-items: center;
    justify-content: center;
}

.profile-picture-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    gap: 0.25rem;
}

.profile-picture-overlay i {
    font-size: 1.5rem;
}

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

/* Form Styles */
.profile-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-background);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background: var(--disabled-background);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}



.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
        padding-bottom: 2rem;
    }
    
    .profile-container > .profile-title {
        font-size: 2.5rem;
    }
    
    .profile-card-header {
        padding: 1rem 1.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-card-title-section {
        width: 100%;
    }
    
    .profile-card-title {
        margin-bottom: 0.25rem;
    }
    
    .profile-card-subtitle {
        margin-top: 0.25rem;
    }
    
    .card-header-actions {
        align-self: flex-end;
        margin-top: 0;
    }
    
    .profile-form {
        padding: 1.5rem;
    }
    
    .profile-picture-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-picture-wrapper {
        padding: 1.5rem;
    }
    
    .form-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding-bottom: 2rem;
    }
    
    .profile-container > .profile-title {
        font-size: 2.5rem;
    }
    
    .profile-card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-card-title-section {
        width: 100%;
    }
    
    .profile-card-title {
        margin-bottom: 0.25rem;
    }
    
    .profile-card-subtitle {
        margin-top: 0.25rem;
    }
    
    .card-header-actions {
        align-self: flex-end;
        margin-top: 0;
    }
    
    .profile-form {
        padding: 1rem;
    }
    
    .profile-picture-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-picture-wrapper {
        padding: 1rem;
    }
} 

/* Dark Mode adjustments for profile page */
[data-theme="dark"] .content-container {
    background: var(--bg-color);
}

/* Removed profile-header styling since we're no longer using that div */

[data-theme="dark"] .profile-title {
    color: var(--text-primary);
}

[data-theme="dark"] .profile-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .profile-card {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-card-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .profile-card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .profile-card-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .profile-card-content {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--input-background);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

[data-theme="dark"] .btn {
    background: var(--surface-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-hover);
}

[data-theme="dark"] .btn-danger {
    background: var(--danger-color);
    color: white;
}

[data-theme="dark"] .btn-danger:hover {
    background: #dc2626;
}

[data-theme="dark"] .profile-picture-container {
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-picture-overlay {
    background: rgba(0, 0, 0, 0.7);
} 